[jammy] ActionFailed: Run of action "update-ring" with parameters "{'i-really-mean-it': True}" on "hacluster/0" failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack HA Cluster Charm |
Fix Committed
|
High
|
Felipe Reyes |
Bug Description
Running the action 'update-ring' fails when one (or more) nodes are in maintenance mode, this is because on jammy the list of nodes is retrieved using "crm node show" which includes the properties set on a node, making the function pcmk.list_nodes() fail to return the correct information due to a failure in the parsing of the output.
See https:/
$ juju run-action --wait hacluster/0 update-ring i-really-
unit-hacluster-0:
UnitId: hacluster/0
id: "76"
message: "Removing \tstandby=off maintenance=true from the cluster failed. Command
'['crm', '-w', '-F', 'node', 'maintenance', 'standby=off', 'maintenance=
returned non-zero exit status 1. output=b'ERROR: node.maintenance: Expected ([node]),
takes at most 1 arguments (2 given)\\n'"
results: {}
status: failed
timing:
completed: 2022-08-25 14:59:49 +0000 UTC
enqueued: 2022-08-25 14:59:47 +0000 UTC
started: 2022-08-25 14:59:48 +0000 UTC
2022-08-24 18:04:24 [INFO] =======
2022-08-24 18:04:24 [INFO] ERROR: test_930_scaleback (zaza.openstack
2022-08-24 18:04:24 [INFO] Remove one unit, recalculate quorum and re-add one unit.
2022-08-24 18:04:24 [INFO] -------
2022-08-24 18:04:24 [INFO] Traceback (most recent call last):
2022-08-24 18:04:24 [INFO] File "/home/
2022-08-24 18:04:24 [INFO] zaza.model.
2022-08-24 18:04:24 [INFO] File "/home/
2022-08-24 18:04:24 [INFO] return run(_run_it())
2022-08-24 18:04:24 [INFO] File "/home/
2022-08-24 18:04:24 [INFO] return task.result()
2022-08-24 18:04:24 [INFO] File "/home/
2022-08-24 18:04:24 [INFO] return await f(*args, **kwargs)
2022-08-24 18:04:24 [INFO] File "/home/
2022-08-24 18:04:24 [INFO] raise ActionFailed(
2022-08-24 18:04:24 [INFO] zaza.model.
2022-08-24 18:04:24 [INFO] -------
Changed in charm-hacluster: | |
assignee: | nobody → Felipe Reyes (freyes) |
importance: | Undecided → High |
status: | New → In Progress |
Fix proposed to branch: master /review. opendev. org/c/openstack /charm- hacluster/ +/854651
Review: https:/