Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


List images

[root@overcloud-controller-2 heat-admin]# rbd --id openstack -p images list
119c11d5-99e0-449c-99fe-a9830410e40e
2821e9d3-aefd-42ed-89f8-24137d39f3bc
43f324b8-fa0b-4a8f-add0-2096510a6114
45ceed34-bb04-4281-97da-6d2f6c703717
49c8c730-731b-47ac-82b8-7402d21eca3f
67c70ee0-faf2-4fd2-882d-d9f7da129f9a
7f40bd7f-e6ea-47cb-b814-1f4ee2fa5530
9a61d3b9-4fea-4fc8-91af-b3b3329af08b
a26cb82a-1cd7-487c-b5ec-e01c7c72d37a
bb071a14-3fd7-4806-a5e9-3df6ba64b996
e2a42058-a397-41d2-86a7-2a804df2f908


Check glance versus ceph

#!/bin/bash

ceph_pool=images
ceph_user=openstack

. admin.rc

os_images=$(openstack image list|awk '{print $2}'|grep "-")
obj_list=$(rbd --id openstack -p images list)
f=0

for img in ${os_images}; do
    for obj in ${obj_list}; do
        if [ "${obj}" == "${img}" ]; then
           echo "* ${obj}"
           f=1
        fi
    done
    if [ "${f}" != "1" ]; then
       echo ${img}
    fi
    f=0
done


  • No labels