+ [[ cinder.backup.drivers.ceph.CephBackupDriver =~ cinder\.backup\.drivers\.ceph ]] ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.DVQjwrT7IX.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.n5pXI4es8b.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: 10c82a9a-8b35-5de1-b94e-dedc7105e57d health: HEALTH_WARN 1 pool(s) have no replicas configured services: mon: 1 daemons, quorum instance (age 29m) mgr: instance.weumeu(active, since 28m) osd: 3 osds: 3 up (since 24m), 3 in (since 24m) rgw: 1 daemon active (1 hosts, 1 zones) data: pools: 10 pools, 121 pgs objects: 266 objects, 112 MiB usage: 317 MiB used, 3.0 TiB / 3.0 TiB avail pgs: 121 active+clean + 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.n5pXI4es8b.keyring ++ base64 -w0 ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.n5pXI4es8b.keyring + ENCODED_KEYRING=QVFETlQ0ZG5LdVJwT2hBQUViOGJsMU10Zk56Y041RTNTRUJSVWc9PQo= + cat ++ echo QVFETlQ0ZG5LdVJwT2hBQUViOGJsMU10Zk56Y041RTNTRUJSVWc9PQo= + kubectl apply --namespace openstack -f /tmp/tmp.DVQjwrT7IX.yaml secret/cinder-backup-rbd-keyring created + cleanup + rm -f /tmp/tmp.DVQjwrT7IX.yaml /tmp/tmp.n5pXI4es8b.keyring