archive_path: /home/teuthworker/archive/yuriw-2023-07-03_15:28:45-rados-wip-yuri-testing-2023-06-23-0831-distro-default-smithi/7324854 branch: wip-yuri-testing-2023-06-23-0831 description: rados/cephadm/workunits/{0-distro/centos_8.stream_container_tools_crun agent/on mon_election/connectivity task/test_set_mon_crush_locations} email: null first_in_suite: false job_id: '7324854' kernel: kdb: true sha1: distro last_in_suite: false machine_type: smithi name: yuriw-2023-07-03_15:28:45-rados-wip-yuri-testing-2023-06-23-0831-distro-default-smithi no_nested_subset: false nuke-on-error: true os_type: centos os_version: 8.stream overrides: admin_socket: branch: wip-yuri-testing-2023-06-23-0831 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\) sha1: f424ac457fa02811c2a787afcb876dab43bd0065 ceph-deploy: conf: client: log file: /var/log/ceph/ceph-$name.$pid.log mon: osd default pool size: 2 install: ceph: flavor: default sha1: f424ac457fa02811c2a787afcb876dab43bd0065 selinux: whitelist: - scontext=system_u:system_r:logrotate_t:s0 workunit: branch: wip-yuri-testing-2023-06-23-0831 sha1: f424ac457fa02811c2a787afcb876dab43bd0065 owner: scheduled_yuriw@teuthology priority: 75 repo: https://github.com/ceph/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: 6532 sha1: f424ac457fa02811c2a787afcb876dab43bd0065 sleep_before_teardown: 0 subset: 111/120000 suite: rados suite_branch: wip-yuri-testing-2023-06-23-0831 suite_path: /home/teuthworker/src/github.com_ceph_ceph-c_f424ac457fa02811c2a787afcb876dab43bd0065/qa suite_relpath: qa suite_repo: https://github.com/ceph/ceph-ci.git suite_sha1: f424ac457fa02811c2a787afcb876dab43bd0065 targets: smithi003.front.sepia.ceph.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PVXrS+ugVvUggXK9NrbBjooIoRo3fkYNqFRe2xy4ppdlE= smithi089.front.sepia.ceph.com: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDUUZ7madBgwX9FRXE4VkY5vWHPU+LkEPGoiJ7cj646vMduJ1q2UH19RQP+wVpfT0ka7z8PKHY7FsDXLy63CwLnZJeY7N6NaWu/v/QFC7kt630079Iq+fO0vPuAtrHdXRErmQ5g4wtVAx2UGMqv5iKDkzFOa+5m+98fN2Rid8XbSUq07mklKoJQePvS2WXyEk0MrOfnzkm9ZWMs7RbukJ5B96Zu4Zd7llYuxaQ4A6d8lyP9TM5+z2KhDCXIfA51r97buqKb95rR/LzOQs+g4SlbUaWNcFVRrNTCP+1SsEPvEFKYeUhnztgZNmr2+TsPE4d9HELgMwGDOMix3eoEIyAT0M8KLSiM7JahGqcoHXc2AhZ9nLlGPXSWO/QAbiysrSo+zWwa9x9hGSC+NoWT+Wy982npLW1vQo1jC0G0nTrE6qlO9KDtMUbK+7ncacZG7pxr8hW+E4oCxkaCJqm7BLsCcQ3dvZkUShIP2yhclZyCdhFvUvkXXOqVreuo0QHVA+E= tasks: - 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