+ [[ cinder.backup.drivers.ceph.CephBackupDriver =~ cinder\.backup\.drivers\.ceph ]] ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.3hMPx0OTOq.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.50oPxBd5xS.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: 4837cbf8-4f90-4300-b3f6-726c9b9f89b4 health: HEALTH_WARN 1 pool(s) have no replicas configured services: mon: 1 daemons, quorum instance (age 49m) mgr: instance.ddpiit(active, since 47m) osd: 3 osds: 3 up (since 44m), 3 in (since 45m) rgw: 1 daemon active (1 hosts, 1 zones) data: pools: 10 pools, 121 pgs objects: 246 objects, 112 MiB usage: 319 MiB used, 3.0 TiB / 3.0 TiB avail pgs: 121 active+clean io: client: 1.1 KiB/s rd, 85 B/s wr, 1 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.50oPxBd5xS.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.50oPxBd5xS.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFDWWtBeHEwaGpwR0JBQVhaaDd0R24xVzBocVNEaGttaVIwVEE9PQo= + cat ++ echo QVFDWWtBeHEwaGpwR0JBQVhaaDd0R24xVzBocVNEaGttaVIwVEE9PQo= + kubectl apply --namespace openstack -f /tmp/tmp.3hMPx0OTOq.yaml secret/cinder-backup-rbd-keyring created + cleanup + rm -f /tmp/tmp.3hMPx0OTOq.yaml /tmp/tmp.50oPxBd5xS.keyring