+ '[' xrbd == xrbd ']' ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.3jmG9Oa8Yt.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.eE8ehdinIc.keyring + trap cleanup EXIT + SCHEME=http + [[ http == \h\t\t\p\s ]] + set -ex + '[' xrbd == xpvc ']' + '[' xrbd == xswift ']' + '[' xrbd == xrbd ']' + 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 90m) mgr: instance.rlmouk(active, since 88m) osd: 3 osds: 3 up (since 85m), 3 in (since 85m) 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 + ensure_pool glance.images 8 glance-image + ceph osd pool stats glance.images pool glance.images id 10 nothing is going on + local test_version ++ ceph mgr versions ++ awk '/version/{print $3}' ++ cut -d. -f1 + [[ 18 -ge 12 ]] + ceph osd pool application enable glance.images glance-image enabled application 'glance-image' on pool 'glance.images' + ceph osd pool set glance.images size 1 --yes-i-really-mean-it set pool 10 size to 1 + ceph osd pool set glance.images crush_rule replicated_rule set pool 10 crush_rule to replicated_rule ++ ceph auth get client.glance + USERINFO='[client.glance] key = AQBggQJrHbPTBRAAmuGDthHr6W/y3MyMPj85mA== caps mon = "profile rbd" caps osd = "profile rbd pool=glance.images"' + echo 'Cephx user client.glance already exist.' Cephx user client.glance already exist. Update its cephx caps + echo 'Update its cephx caps' + ceph auth caps client.glance mon 'profile rbd' osd 'profile rbd pool=glance.images' updated caps for client.glance + ceph auth get client.glance -o /tmp/tmp.eE8ehdinIc.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.eE8ehdinIc.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFCZ2dRSnJIYlBUQlJBQW11R0R0aEhyNlcveTNNeU1Qajg1bUE9PQo= + cat + kubectl apply --namespace openstack -f /tmp/tmp.3jmG9Oa8Yt.yaml secret/images-rbd-keyring unchanged + cleanup + rm -f /tmp/tmp.3jmG9Oa8Yt.yaml /tmp/tmp.eE8ehdinIc.keyring