upgrade-series complete hangs when upgrade from Focal to Jammy due to .erlang.cookie being overwritten
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack RabbitMQ Server Charm |
Fix Released
|
High
|
Alex Kavanagh | ||
rabbitmq-server (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
charm version 3.9/stable #154
upgrade series from Focal to Jammy failed.
Steps:
#juju deploy --series focal --channel 3.9/stable rabbitmq-server -n 3
#juju set-series rabbitmq-server jammy
#juju run-action --wait rabbitmq-server/0 pause
#juju upgrade-series 0 prepare jammy
#juju ssh 0 sudo apt update
#juju ssh 0 sudo apt full-upgrade
#juju ssh 0 sudo do-release-upgrade
#juju upgrade-series 0 complete
"
machine-0 complete phase started
machine-0 start units after series upgrade
rabbitmq-server/0 post-series-upgrade hook running
"
unit-log:
2023-02-07 15:08:33 WARNING unit.rabbitmq-
rabbitmq-
BTW, I can successfully deploy the same charm onto 3 Jammy machines.
Detail steps and output: https:/
Changed in charm-rabbitmq-server: | |
assignee: | nobody → Alex Kavanagh (ajkavanagh) |
summary: |
- upgrade-series complete hangs when upgrade from Focal to Jammy + upgrade-series complete hangs when upgrade from Focal to Jammy due to + .erlang.cookie being overwritten |
Changed in charm-rabbitmq-server: | |
status: | Triaged → In Progress |
I've reproduced the error, or at least I think I have. What seems to be happening during the series-upgrade is that the /var/lib/ rabbitmq/ .erlang. cookie is being overwritten when the new packages were installed.
When the .erlang.cookie doesn't match within the cluster, it won't reform and thus the hook times out. This may be new behaviour in the package, or something different in upstream code.
What I think we need to do, is update the post-series-upgrade hook to ensure that the peer-storage( 'cookie' ) is synced to the .erlang.cookie before attempting to start the service.