archive_path: /home/teuthworker/mnt/teuthology/shraddhaag-2026-02-19_09:54:34-orch:cephadm-main-distro-default-trial/58052 branch: main description: orch:cephadm/workunits/{0-distro/ubuntu_22.04 agent/on mon_election/connectivity task/test_set_mon_crush_locations} email: null first_in_suite: false flavor: default job_id: '58052' kernel: branch: distro kdb: true sha1: distro ktype: distro last_in_suite: false machine_type: trial name: shraddhaag-2026-02-19_09:54:34-orch:cephadm-main-distro-default-trial no_nested_subset: false os_type: ubuntu os_version: '22.04' overrides: admin_socket: branch: main ceph: conf: global: mon election default strategy: 3 mgr: debug mgr: 20 debug ms: 1 mgr/cephadm/use_agent: true mon: debug mon: 20 debug ms: 1 debug paxos: 20 osd: debug ms: 1 debug osd: 20 flavor: default log-ignorelist: - \(MDS_ALL_DOWN\) - \(MDS_UP_LESS_THAN_MAX\) - MON_DOWN - POOL_APP_NOT_ENABLED - mon down - mons down - out of quorum - CEPHADM_FAILED_DAEMON log-only-match: - CEPHADM_ sha1: 941b42cabfa3c4e4d30b96a58cbe2fa653f560ec ceph-deploy: conf: client: log file: /var/log/ceph/ceph-$name.$pid.log mon: {} install: ceph: flavor: default sha1: 941b42cabfa3c4e4d30b96a58cbe2fa653f560ec workunit: branch: main sha1: 172f796f82d7d43ae7fabdf5a2e00c9e376def86 owner: scheduled_shraddhaag@soko04.front.sepia.ceph.com priority: 69 repo: https://git.ceph.com/ceph-ci.git roles: - - host.a - osd.0 - mon.a - mgr.a - - host.b - osd.1 - mon.b - mgr.b - - host.c - osd.2 - mon.c seed: 9368 sha1: 941b42cabfa3c4e4d30b96a58cbe2fa653f560ec sleep_before_teardown: 0 subset: 1/8 suite: orch:cephadm suite_branch: main suite_path: /home/teuthworker/src/github.com_ceph_ceph_172f796f82d7d43ae7fabdf5a2e00c9e376def86/qa suite_relpath: qa suite_repo: https://github.com/ceph/ceph.git suite_sha1: 172f796f82d7d43ae7fabdf5a2e00c9e376def86 targets: trial023.front.sepia.ceph.com: ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBK1rWLoI582E9RCnaBmHC91i8/Ey2m0NQ9/pYQkcBR/TlFeIOWZkPJoPAE7vRUxLWAxDu0PiX3dmzEgbp8xjhCo= trial095.front.sepia.ceph.com: ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIK9sIuvcufBdML17hyCewJv+OiFNvtX2Bqu64sbzXi/dpR8qRi5MW3Q3d086JxMOXHou2oF0CSHZKOZtbiRdMQ= trial109.front.sepia.ceph.com: ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGK2IOPTnF3amrynGdhc3VGBqrEx73JjyXAU+L3vU81xnWjOMtdS8vNEZLBdjSFKok3lLYlP69MQcU1BgHUeCZY= tasks: - install: null - cephadm: null - cephadm.apply: specs: - placement: count: 3 service_id: foo service_type: mon spec: crush_locations: host.a: - datacenter=a host.b: - datacenter=b - rack=2 host.c: - datacenter=a - rack=3 - cephadm.shell: host.a: - "set -ex\n# since we don't know the real hostnames before the test, the next\n\ # bit is in order to replace the fake hostnames \"host.a/b/c\" with\n# the actual\ \ names cephadm knows the host by within the mon spec\nceph orch host ls --format\ \ json | jq -r '.[] | .hostname' > realnames\necho $'host.a\\nhost.b\\nhost.c'\ \ > fakenames\necho $'a\\nb\\nc' > mon_ids\necho $'{datacenter=a}\\n{datacenter=b,rack=2}\\\ n{datacenter=a,rack=3}' > crush_locs\nceph orch ls --service-name mon --export\ \ > mon.yaml\nMONSPEC=`cat mon.yaml`\necho \"$MONSPEC\"\nwhile read realname\ \ <&3 && read fakename <&4; do\n MONSPEC=\"${MONSPEC//$fakename/$realname}\"\ \ndone 3 mon.yaml\ncat mon.yaml\n\ # now the spec should have the real hostnames, so let's re-apply\nceph orch\ \ apply -i mon.yaml\nsleep 90\nceph orch ps --refresh\nceph orch ls --service-name\ \ mon --export > mon.yaml; ceph orch apply -i mon.yaml\nsleep 90\nceph mon dump\n\ ceph mon dump --format json\n# verify all the crush locations got set from \"\ ceph mon dump\" output\nwhile read monid <&3 && read crushloc <&4; do\n ceph\ \ mon dump --format json | jq --arg monid \"$monid\" --arg crushloc \"$crushloc\"\ \ -e '.mons | .[] | select(.name == $monid) | .crush_location == $crushloc'\n\ done 3