+ '[' xrbd == xrbd ']' ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.18r4x8b77A.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.I5cf85qIFz.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 23m) mgr: instance.tdgooq(active, since 21m) osd: 3 osds: 3 up (since 19m), 3 in (since 19m) rgw: 1 daemon active (1 hosts, 1 zones) data: pools: 9 pools, 89 pgs objects: 244 objects, 458 KiB usage: 113 MiB used, 3.0 TiB / 3.0 TiB avail pgs: 89 active+clean io: client: 2.8 KiB/s rd, 409 B/s wr, 2 op/s rd, 0 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 ++ cut -d. -f1 ++ awk '/version/{print $3}' + [[ 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.I5cf85qIFz.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.I5cf85qIFz.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFEMUtLNXBraHY2TWhBQXpQRTI0bW5nbGRrcWZGcTBJYjk4bkE9PQo= + cat + kubectl apply --namespace openstack -f /tmp/tmp.18r4x8b77A.yaml secret/images-rbd-keyring created + cleanup + rm -f /tmp/tmp.18r4x8b77A.yaml /tmp/tmp.I5cf85qIFz.keyring