+ [[ cinder.backup.drivers.ceph.CephBackupDriver =~ cinder\.backup\.drivers\.ceph ]] ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.mPTpAv0Byg.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.DMlYeRbuo6.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: 43b3d09d-04f9-54e7-99e3-ae2c464c59e3 health: HEALTH_WARN 1 pool(s) have no replicas configured services: mon: 1 daemons, quorum instance (age 27m) mgr: instance.lhmhnq(active, since 26m) osd: 3 osds: 3 up (since 22m), 3 in (since 23m) rgw: 1 daemon active (1 hosts, 1 zones) data: pools: 10 pools, 121 pgs objects: 235 objects, 118 MiB usage: 260 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.DMlYeRbuo6.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.DMlYeRbuo6.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFDRWNqeG5lZEI1RVJBQWlsMS9kZk1zMHpFUTd2cElPNm9EWFE9PQo= + cat ++ echo QVFDRWNqeG5lZEI1RVJBQWlsMS9kZk1zMHpFUTd2cElPNm9EWFE9PQo= + kubectl apply --namespace openstack -f /tmp/tmp.mPTpAv0Byg.yaml secret/cinder-backup-rbd-keyring created + cleanup + rm -f /tmp/tmp.mPTpAv0Byg.yaml /tmp/tmp.DMlYeRbuo6.keyring