+ [[ cinder.backup.drivers.ceph.CephBackupDriver =~ cinder\.backup\.drivers\.ceph ]] ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.M0poT0dczS.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.9QZd2l4wvw.keyring + trap cleanup EXIT + set -ex + [[ cinder.backup.drivers.ceph.CephBackupDriver =~ cinder\.backup\.drivers\.swift ]] + [[ cinder.backup.drivers.ceph.CephBackupDriver =~ cinder\.backup\.drivers\.posix ]] + [[ cinder.backup.drivers.ceph.CephBackupDriver =~ cinder\.backup\.drivers\.ceph ]] + ceph -s cluster: id: b9fca731-0dd3-584b-b5ab-76756611664e health: HEALTH_WARN 1 pool(s) have no replicas configured services: mon: 1 daemons, quorum instance (age 27m) mgr: instance.vsqruh(active, since 27m) osd: 3 osds: 3 up (since 23m), 3 in (since 23m) rgw: 1 daemon active (1 hosts, 1 zones) data: pools: 10 pools, 121 pgs objects: 234 objects, 112 MiB usage: 317 MiB used, 3.0 TiB / 3.0 TiB avail pgs: 121 active+clean io: client: 85 B/s rd, 170 B/s wr, 0 op/s rd, 0 op/s wr + ensure_pool cinder.backups 8 cinder-backup + ceph osd pool stats cinder.backups Error ENOENT: unrecognized pool 'cinder.backups' + ceph osd pool create cinder.backups 8 pool 'cinder.backups' created ++ ceph mgr versions ++ awk '/version/{print $3}' ++ cut -d. -f1 + [[ 18 -ge 12 ]] + ceph osd pool application enable cinder.backups cinder-backup enabled application 'cinder-backup' on pool 'cinder.backups' ++ ceph osd pool get cinder.backups nosizechange ++ cut -f2 -d: ++ tr -d '[:space:]' + size_protection=false + ceph osd pool set cinder.backups nosizechange 0 set pool 11 nosizechange to 0 + ceph osd pool set cinder.backups size 1 --yes-i-really-mean-it set pool 11 size to 1 + ceph osd pool set cinder.backups nosizechange false set pool 11 nosizechange to false + ceph osd pool set cinder.backups crush_rule replicated_rule set pool 11 crush_rule to replicated_rule ++ ceph auth get client.cinderbackup Error ENOENT: failed to find client.cinderbackup in keyring + USERINFO= + ceph auth get-or-create client.cinderbackup mon 'profile rbd' osd 'profile rbd pool=cinder.backups' -o /tmp/tmp.9QZd2l4wvw.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.9QZd2l4wvw.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFDTmNqeG5nd0VDRWhBQXBBQW5LQVhJMU9XR0VWVVRpeGtIa0E9PQo= + cat ++ echo QVFDTmNqeG5nd0VDRWhBQXBBQW5LQVhJMU9XR0VWVVRpeGtIa0E9PQo= + kubectl apply --namespace openstack -f /tmp/tmp.M0poT0dczS.yaml secret/cinder-backup-rbd-keyring created + cleanup + rm -f /tmp/tmp.M0poT0dczS.yaml /tmp/tmp.9QZd2l4wvw.keyring