Closed esunar closed 1 year ago
(by rgildein) PR: https://github.com/canonical/juju-verify/pull/14
Actual output if action failed:
$ juju-verify shutdown --units ceph-osd-g1/0
WARNING: The function to get the number of free units from 'ceph df' is in WIP and returns only 1. See LP#1921121 for more information.
WARNING: The function to get the number of free units from 'ceph df' is in WIP and returns only 1. See LP#1921121 for more information.
WARNING: The function to get the number of free units from 'ceph df' is in WIP and returns only 1. See LP#1921121 for more information.
Checks:
[WARN] ceph-osd-g1/0 has units running on child machines: ceph-mon-g1/0*
[FAIL] ceph-mon-g1/2: Ceph cluster is unhealthy
[FAIL] check_replication_number check failed with error: ceph-mon-g1/2: action `list-pools format=json` failed with errors:
validation failed: (root) : additional property "format" is not allowed, given {"format":"json"}
[FAIL] check_availability_zone check failed with error: ceph-osd-g1/0: action `get-availability-zone` failed with errors:
action "get-availability-zone" not defined on unit "ceph-osd-g1/0"
Overall result: Failed
We need to capture the falling action and provide the user a better report of what happened.
Example: I was trying to verify that it is safe to shutdown the ceph-osd unit, where one of the checks will use the
list-pools
action with another parameterformat
. However this additional parameter is not an part of thelist-pools
action in ceph-mon unit.What I get:
What would I expect:
juju output:
Imported from Launchpad using lp2gh.
date created: 2021-07-09T07:02:15Z
owner: rgildein
assignee: rgildein
the launchpad url