+ '[' xrbd == xrbd ']' ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.ZzuuyPGGzJ.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.KxDqN6rmWh.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 35m) mgr: instance.pjhjnd(active, since 33m) osd: 3 osds: 3 up (since 30m), 3 in (since 31m) rgw: 1 daemon active (1 hosts, 1 zones) data: pools: 10 pools, 125 pgs objects: 873 objects, 1.1 GiB usage: 3.6 GiB used, 3.0 TiB / 3.0 TiB avail pgs: 125 active+clean io: client: 127 B/s rd, 1.2 MiB/s wr, 0 op/s rd, 83 op/s wr + 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 11 size to 1 + ceph osd pool set glance.images crush_rule replicated_rule set pool 11 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.KxDqN6rmWh.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.KxDqN6rmWh.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFDWnYyaHEwS25rS1JBQU04aXRZcWI4OFhvT043QVRLRnhoRGc9PQo= + cat + kubectl apply --namespace openstack -f /tmp/tmp.ZzuuyPGGzJ.yaml secret/images-rbd-keyring created + cleanup + rm -f /tmp/tmp.ZzuuyPGGzJ.yaml /tmp/tmp.KxDqN6rmWh.keyring