+ '[' xrbd == xrbd ']' ++ mktemp --suffix .yaml + SECRET=/tmp/tmp.TwM4YnqvO2.yaml ++ mktemp --suffix .keyring + KEYRING=/tmp/tmp.IgX0yskc7q.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 2 pool(s) have no replicas configured services: mon: 1 daemons, quorum instance (age 25m) mgr: instance.nmhcpu(active, since 22m) osd: 3 osds: 3 up (since 20m), 3 in (since 20m) data: pools: 11 pools, 122 pgs objects: 20 objects, 452 KiB usage: 82 MiB used, 3.0 TiB / 3.0 TiB avail pgs: 122 active+clean io: client: 5.6 KiB/s rd, 3.4 KiB/s wr, 6 op/s rd, 5 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 12 size to 1 + ceph osd pool set glance.images crush_rule replicated_rule set pool 12 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.IgX0yskc7q.keyring ++ sed -n 's/^[[:blank:]]*key[[:blank:]]\+=[[:blank:]]\(.*\)/\1/p' /tmp/tmp.IgX0yskc7q.keyring ++ base64 -w0 + ENCODED_KEYRING=QVFBZjhHSnFHcWhBRWhBQU9CZEh1VmFiWGV2Z080ekowcGY3dGc9PQo= + cat + kubectl apply --namespace openstack -f /tmp/tmp.TwM4YnqvO2.yaml secret/images-rbd-keyring created + cleanup + rm -f /tmp/tmp.TwM4YnqvO2.yaml /tmp/tmp.IgX0yskc7q.keyring