archive_path: /home/teuthworker/archive/gabrioux-2023-07-13_00:38:31-orch:cephadm-cv-refactor-osd-objectstore-distro-default-smithi/7335588 branch: cv-refactor-osd-objectstore description: orch:cephadm/workunits/{0-distro/centos_8.stream_container_tools_crun agent/off mon_election/classic task/test_set_mon_crush_locations} email: gabrioux@redhat.com first_in_suite: false job_id: '7335588' kernel: &id001 kdb: true sha1: distro last_in_suite: false machine_type: smithi name: gabrioux-2023-07-13_00:38:31-orch:cephadm-cv-refactor-osd-objectstore-distro-default-smithi no_nested_subset: false nuke-on-error: true os_type: centos os_version: 8.stream overrides: admin_socket: branch: cv-refactor-osd-objectstore ceph: conf: global: mon election default strategy: 1 mgr: debug mgr: 20 debug ms: 1 mgr/cephadm/use_agent: false 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\) sha1: 3990f91ac125621431ef1b77c2fc96421bec9e51 ceph-deploy: conf: client: log file: /var/log/ceph/ceph-$name.$pid.log mon: osd default pool size: 2 install: ceph: flavor: default sha1: 3990f91ac125621431ef1b77c2fc96421bec9e51 selinux: whitelist: - scontext=system_u:system_r:logrotate_t:s0 workunit: branch: cv-refactor-osd-objectstore sha1: 3990f91ac125621431ef1b77c2fc96421bec9e51 owner: scheduled_gabrioux@teuthology priority: 75 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 sha1: 3990f91ac125621431ef1b77c2fc96421bec9e51 sleep_before_teardown: 0 suite: orch:cephadm suite_branch: cv-refactor-osd-objectstore suite_path: /home/teuthworker/src/git.ceph.com_ceph-c_3990f91ac125621431ef1b77c2fc96421bec9e51/qa suite_relpath: qa suite_repo: https://git.ceph.com/ceph-ci.git suite_sha1: 3990f91ac125621431ef1b77c2fc96421bec9e51 targets: smithi061.front.sepia.ceph.com: ssh-rsa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uFAV0Xdaz9Fm4F5p6KTnvB0/tgGfRT4YBEGmWk= smithi190.front.sepia.ceph.com: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCmNihh2gB+PM3YPsVv12xIoWPbn2s0617Q78pQ9WrGp4GfkVmJeut+p6/bq2t5c0MLGrhhAyXG0b4enWNAdux5DprxWDhmYlyPW3jn/9IyWRc5q1Zw0eimSa4/j0VtMybg2onNsQgKgcjPLCHt7s0CVDmqupf3KyASs5Soou6CeD3Ksr+xujtL0xZ2Xq1eNzyWJp3oh/9S8EikkWFNUdLBy9rek0p99p/ODLBhnRdfMsaE//jMtpRoqkGMp1jiu+jZ67cpJsXPAui6uGb0RctIb0qIt/T1d1R5jq30cxJBWyPLGBRMWf3tJjS2GysNT8Zvp5M+pFkqu7ipgnvcWcbhZRcGRr912HMwPoL/Zg0AphlgbWFKFqce//7VCBvXokHnadxP9k/hmDo8DoQN/pm7V6ljssvINOnPEkuQisPCiZbU/Oa/1vECrXDaAlkZVa7b3FDVvSntHohMf+M1cHdZQS1evY2Jdh8xHg/1IJbVePz0Gyg4NUgpvmHvJSwIebs= tasks: - internal.check_packages: null - internal.buildpackages_prep: null - internal.save_config: null - internal.check_lock: null - internal.add_remotes: null - console_log: null - internal.connect: null - internal.push_inventory: null - internal.serialize_remote_roles: null - internal.check_conflict: null - internal.check_ceph_data: null - internal.vm_setup: null - kernel: *id001 - internal.base: null - internal.archive_upload: null - internal.archive: null - internal.coredump: null - internal.sudo: null - internal.syslog: null - internal.timer: null - pcp: null - selinux: null - ansible.cephlab: null - clock: null - pexec: all: - sudo cp /etc/containers/registries.conf /etc/containers/registries.conf.backup - sudo dnf -y module reset container-tools - sudo dnf -y module install container-tools --allowerasing --nobest - sudo cp /etc/containers/registries.conf.backup /etc/containers/registries.conf - sudo sed -i 's/runtime = "runc"/#runtime = "runc"/g' /usr/share/containers/containers.conf - sudo sed -i 's/#runtime = "crun"/runtime = "crun"/g' /usr/share/containers/containers.conf - 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