+ '[' xcinder.volume.drivers.rbd.RBDDriver == xcinder.volume.drivers.rbd.RBDDriver ']' ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.F7ecLiU4vx.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.69vL0uRmr3.keyring + trap cleanup EXIT + set -ex + '[' xcinder.volume.drivers.rbd.RBDDriver == xcinder.volume.drivers.rbd.RBDDriver ']' + ceph -s cluster: id: 4837cbf8-4f90-4300-b3f6-726c9b9f89b4 health: HEALTH_WARN 3 pool(s) have no replicas configured services: mon: 1 daemons, quorum instance (age 98m) mgr: instance.tvhprl(active, since 95m) osd: 3 osds: 3 up (since 93m), 3 in (since 93m) rgw: 1 daemon active (1 hosts, 1 zones) data: pools: 12 pools, 185 pgs objects: 864 objects, 3.9 GiB usage: 4.1 GiB used, 3.0 TiB / 3.0 TiB avail pgs: 185 active+clean + '[' -n '' ']' + ensure_pool cinder.volumes 8 cinder-volume + ceph osd pool stats cinder.volumes pool cinder.volumes id 12 nothing is going on ++ ceph mgr versions ++ awk '/version/{print $3}' ++ cut -d. -f1 + [[ 18 -ge 12 ]] + ceph osd pool application enable cinder.volumes cinder-volume enabled application 'cinder-volume' on pool 'cinder.volumes' ++ ceph osd pool get cinder.volumes nosizechange ++ cut -f2 -d: ++ tr -d '[:space:]' + size_protection=false + ceph osd pool set cinder.volumes nosizechange 0 set pool 12 nosizechange to 0 + ceph osd pool set cinder.volumes size 1 --yes-i-really-mean-it set pool 12 size to 1 + ceph osd pool set cinder.volumes nosizechange false set pool 12 nosizechange to false + ceph osd pool set cinder.volumes crush_rule replicated_rule set pool 12 crush_rule to replicated_rule + OSD_CAPS='profile rbd' ++ ceph auth get client.cinder Cephx user client.cinder already exist. Update its cephx caps + USERINFO='[client.cinder] key = AQD6MgNrC6EALxAA8nPghwlA/NTKh5JImCsHFQ== caps mon = "profile rbd" caps osd = "profile rbd"' + echo 'Cephx user client.cinder already exist.' + echo 'Update its cephx caps' + ceph auth caps client.cinder mon 'profile rbd' osd 'profile rbd' updated caps for client.cinder + ceph auth get client.cinder -o /tmp/tmp.69vL0uRmr3.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.69vL0uRmr3.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFENk1nTnJDNkVBTHhBQThuUGdod2xBL05US2g1SkltQ3NIRlE9PQo= + cat ++ echo QVFENk1nTnJDNkVBTHhBQThuUGdod2xBL05US2g1SkltQ3NIRlE9PQo= + kubectl apply --namespace openstack -f /tmp/tmp.F7ecLiU4vx.yaml secret/cinder-volume-rbd-keyring unchanged + cleanup + rm -f /tmp/tmp.F7ecLiU4vx.yaml /tmp/tmp.69vL0uRmr3.keyring