ovn-chassis workload status lists deferred events for another charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-ovn-chassis |
New
|
Undecided
|
Unassigned |
Bug Description
This was detected in gate tests for: https:/
ovn-chassis workload status lists deferred events for another charm that is deployed on the same machine (in this case neutron-
Unit Workload Agent Machine Public address Message
nova-compute/0* active idle 8 10.5.3.226 Unit is ready
neutron-
ovn-chassis/1 active idle 10.5.3.226 Services queued for stop: ovs-record-
where:
ubuntu@
charm-neutron-
ubuntu@
action: stop
policy_
policy_
reason: Package update
service: ovsdb-server.
timestamp: 1678971478
action: stop
policy_
policy_
reason: Package update
service: ovs-vswitchd.
timestamp: 1678971479
action: stop
policy_
policy_
reason: Package update
service: ovs-record-
timestamp: 1678971479
charm-helpers code:
get_deferred_
This gets all deferred files regardless of file name including service:
52 deferred_
53 '{}/*.deferred'
which is probably find since the contents of the files contains the service name:
37 {
38 action: restart,
39 policy_
40 policy_
41 reason: 'Pkg update',
42 service: rabbitmq-server,
43 time: 1614328743
44 }
New: I proposed a fix in charm-helpers.
Old: This can probably be fixed in custom_
132 def custom_
133 """Report deferred events in charm status message."""
134 state = None
135 message = None
136 deferred_
137 events = collections.
138 for e in deferred_
# add a check here
139 events[
https:/ /github. com/juju/ charm-helpers/ pull/760