pre-series-upgrade fails with 'swift-account didn't stop cleanly'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Swift Storage Charm |
New
|
Undecided
|
Unassigned |
Bug Description
I am upgrading a trusty machine to xenial, the swift storage charm is 20.05.
The upgrade-series prepare step hangs forever.
The charm logs show:
2020-10-02 19:20:23 DEBUG pre-series-upgrade stop: Unknown instance:
2020-10-02 19:20:23 DEBUG pre-series-upgrade Traceback (most recent call last):
2020-10-02 19:20:23 DEBUG pre-series-upgrade File "/var/lib/
2020-10-02 19:20:23 DEBUG pre-series-upgrade main()
2020-10-02 19:20:23 DEBUG pre-series-upgrade File "/var/lib/
2020-10-02 19:20:23 DEBUG pre-series-upgrade hooks.execute(
2020-10-02 19:20:23 DEBUG pre-series-upgrade File "/var/lib/
2020-10-02 19:20:23 DEBUG pre-series-upgrade self._hooks[
2020-10-02 19:20:23 DEBUG pre-series-upgrade File "/var/lib/
2020-10-02 19:20:23 DEBUG pre-series-upgrade raise Exception("{} didn't stop cleanly.
2020-10-02 19:20:23 DEBUG pre-series-upgrade Exception: swift-account didn't stop cleanly.
2020-10-02 19:20:23 ERROR juju.worker.
I suspect this happens because swift-account is stopped more than once. In fact if I try to manually stop an upstart service that is already stopped I get the following:
# stop swift-account; echo $?
stop: Unknown instance:
1
Workaround: comment out the if not stopped / raise in swift_storage_