+ '[' xcinder.volume.drivers.rbd.RBDDriver == xcinder.volume.drivers.rbd.RBDDriver ']' ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.aVFofy9rEL.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.znYrNLIcQ1.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 100m) mgr: instance.hpfzxf(active, since 97m) osd: 3 osds: 3 up (since 95m), 3 in (since 95m) rgw: 1 daemon active (1 hosts, 1 zones) data: pools: 12 pools, 185 pgs objects: 896 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 + USERINFO='[client.cinder] key = AQAzfQNrkUUzLxAAKdeQSvnTGOom3GMEtD7zCg== 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' Cephx user client.cinder already exist. Update its cephx caps updated caps for client.cinder + ceph auth get client.cinder -o /tmp/tmp.znYrNLIcQ1.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.znYrNLIcQ1.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFBemZRTnJrVVV6THhBQUtkZVFTdm5UR09vbTNHTUV0RDd6Q2c9PQo= + cat ++ echo QVFBemZRTnJrVVV6THhBQUtkZVFTdm5UR09vbTNHTUV0RDd6Q2c9PQo= + kubectl apply --namespace openstack -f /tmp/tmp.aVFofy9rEL.yaml secret/cinder-volume-rbd-keyring unchanged + cleanup + rm -f /tmp/tmp.aVFofy9rEL.yaml /tmp/tmp.znYrNLIcQ1.keyring