+ '[' xrbd == xrbd ']' ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.7XjKXxf4kO.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.KezLeQfM92.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_OK services: mon: 1 daemons, quorum instance (age 24m) mgr: instance.kkvfqf(active, since 22m) osd: 3 osds: 3 up (since 20m), 3 in (since 20m) rgw: 1 daemon active (1 hosts, 1 zones) data: pools: 9 pools, 89 pgs objects: 242 objects, 457 KiB usage: 94 MiB used, 3.0 TiB / 3.0 TiB avail pgs: 89 active+clean + ensure_pool glance.images 8 glance-image + ceph osd pool stats glance.images Error ENOENT: unrecognized pool 'glance.images' + ceph osd pool create glance.images 8 pool 'glance.images' created + 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 Error ENOENT: failed to find client.glance in keyring + USERINFO= + ceph auth get-or-create client.glance mon 'profile rbd' osd 'profile rbd pool=glance.images' -o /tmp/tmp.KezLeQfM92.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.KezLeQfM92.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFENE9laHB2ckZrRnhBQTh2Q2VGc3k1SnZEczM3TnM2b0ZPWkE9PQo= + cat + kubectl apply --namespace openstack -f /tmp/tmp.7XjKXxf4kO.yaml secret/images-rbd-keyring created + cleanup + rm -f /tmp/tmp.7XjKXxf4kO.yaml /tmp/tmp.KezLeQfM92.keyring