+ '[' xrbd == xrbd ']' ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.0ohVH8ma93.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.W9EUebUmZA.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 1 pool(s) have no replicas configured services: mon: 1 daemons, quorum instance (age 17m) mgr: instance.bfvyzp(active, since 15m) osd: 3 osds: 3 up (since 13m), 3 in (since 14m) data: pools: 2 pools, 9 pgs objects: 2 objects, 449 KiB usage: 81 MiB used, 3.0 TiB / 3.0 TiB avail pgs: 9 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 3 size to 1 + ceph osd pool set glance.images crush_rule replicated_rule set pool 3 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.W9EUebUmZA.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.W9EUebUmZA.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFEVmgrRnBXb0FSTHhBQUdzekY2dTNCdEd4Ukt3WE5PRHlKa1E9PQo= + cat + kubectl apply --namespace openstack -f /tmp/tmp.0ohVH8ma93.yaml secret/images-rbd-keyring created + cleanup + rm -f /tmp/tmp.0ohVH8ma93.yaml /tmp/tmp.W9EUebUmZA.keyring