]>
git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/cephadm: fix test_set_mon_crush_locations test
This test appears to have been expecting a now
outdated output from `ceph mon dump --format json`.
This commit modifies the test script to handle
the current format as of writing this on main
{
"rank": 1,
"name": "b",
"public_addrs": {
"addrvec": [
{
"type": "v2",
"addr": "10.20.193.146:3300",
"nonce": 0
},
{
"type": "v1",
"addr": "10.20.193.146:6789",
"nonce": 0
}
]
},
"addr": "10.20.193.146:6789/0",
"public_addr": "10.20.193.146:6789/0",
"priority": 0,
"weight": 0,
"time_added": "2026-02-19T17:19:05:089735+0000",
"crush_location": [
{
"key": "datacenter",
"val": "b"
},
{
"key": "rack",
"val": "2"
}
]
},
indexed under the "mons" key in the json output. The old
format would just have k/v pairs as strings e.g. "datacenter=a"
as the command still does currently when a format flag is not
provided.
Signed-off-by: Adam King <adking@redhat.com>