series upgrade fails with a hook error in the prepare step
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack HA Cluster Charm |
Fix Released
|
Undecided
|
Liam Young |
Bug Description
All referenced files in the following will be attached to this bug
## Do a series upgrade!
juju set-series keystone bionic
# Pause the non-leader's hacluster units
juju run-action keystone-
juju run-action keystone-
# pause the keystone units
juju run-action keystone/0 pause
juju run-action keystone/1 pause
juju show-action-status > action-status.txt
# all of the action statuses should be "completed"
juju status keystone> juju-status-
# The juju status should now show Paused for the non-leader keystone units as well as their hacluster subordinates
# Call upgrade series - note that I'm doing 1 and 2 in parallel, and then I wait to do the leader (0)
juju upgrade-series 6 prepare bionic -y &
juju upgrade-series 7 prepare bionic -y &
# machine-6 started upgrade series from "xenial" to "bionic"
# machine-7 started upgrade series from "xenial" to "bionic"
#
# keystone/1 pre-series-upgrade hook running
# keystone/0 pre-series-upgrade hook running
#
# keystone/1 pre-series-upgrade completed
# keystone-
# keystone/0 pre-series-upgrade completed
# keystone-
# keystone-
# keystone-
# machine-7 binaries and service files written
#
# Juju is now ready for the series to be updated.
# Perform any manual steps required along with "do-release-
# When ready, run the following to complete the upgrade series process:
#
# juju upgrade-series 7 complete
# machine-6 binaries and service files written
#
# Juju is now ready for the series to be updated.
# Perform any manual steps required along with "do-release-
# When ready, run the following to complete the upgrade series process:
#
# juju upgrade-series 6 complete
juju status keystone > juju-mid-
# Notice that keystone-
# keystone-
# Wait until it's idle again
juju upgrade-series 8 prepare bionic -y
# This looks like it gets part way in and then hangs:
# machine-8 started upgrade series from "xenial" to "bionic"
# keystone/2 pre-series-upgrade hook running
# keystone/2 pre-series-upgrade completed
# keystone-
If I leave it up (why stop it) and jump to another temrinal, I can
see that there's a hook error on this hacluster unit:
juju status keystone-
Model Controller Cloud/Region Version SLA Timestamp
icey icey-serverstack serverstack/
App Version Status Scale Charm Store Rev OS Notes
keystone 13.0.2 blocked 1 keystone jujucharms 494 ubuntu
keystone-hacluster error 1 hacluster jujucharms 131 ubuntu
Unit Workload Agent Machine Public address Ports Message
keystone/2* blocked idle 8 10.5.0.19 5000/tcp Ready for # -release-upgrade and reboot. Set complete when finished., Unit paused.
keystone-
Machine State DNS Inst id Series AZ Message
8 started 10.5.0.19 50685221-
On that unit, the agent log shows:
2020-05-11 06:53:30 DEBUG pre-series-upgrade ERROR: running cibadmin -Ql: Signon to CIB failed: Transport endpoint is not connected
2020-05-11 06:53:30 DEBUG pre-series-upgrade Init failed, could not perform requested operations
2020-05-11 06:53:30 DEBUG pre-series-upgrade ERROR: juju-467145-icey-8: node name not recognized
2020-05-11 06:53:30 DEBUG pre-series-upgrade Traceback (most recent call last):
2020-05-11 06:53:30 DEBUG pre-series-upgrade File "/var/lib/
2020-05-11 06:53:30 DEBUG pre-series-upgrade hooks.execute(
2020-05-11 06:53:30 DEBUG pre-series-upgrade File "/var/lib/
2020-05-11 06:53:30 DEBUG pre-series-upgrade self._hooks[
2020-05-11 06:53:30 DEBUG pre-series-upgrade File "/var/lib/
2020-05-11 06:53:30 DEBUG pre-series-upgrade pause_unit()
2020-05-11 06:53:30 DEBUG pre-series-upgrade File "/var/lib/
2020-05-11 06:53:30 DEBUG pre-series-upgrade enter_standby_
2020-05-11 06:53:30 DEBUG pre-series-upgrade File "/var/lib/
2020-05-11 06:53:30 DEBUG pre-series-upgrade subprocess.
2020-05-11 06:53:30 DEBUG pre-series-upgrade File "/usr/lib/
2020-05-11 06:53:30 DEBUG pre-series-upgrade raise CalledProcessEr
2020-05-11 06:53:30 DEBUG pre-series-upgrade subprocess.
2020-05-11 06:53:30 ERROR juju.worker.
Changed in charm-hacluster: | |
assignee: | nobody → Liam Young (gnuoy) |
Changed in charm-hacluster: | |
milestone: | none → 20.05 |
Changed in charm-hacluster: | |
status: | Fix Committed → Fix Released |
This bundle should be sufficient to reproduce this on serverstack