Comment 4 for bug 1394299

Revision history for this message
Kanchan Gupta (kanchan-gupta1) wrote :

I debugged the glanceclient code and found that response from glance sends image list based on its status whether private or public. It doesnot have shared status. Now when we try: 'glance --os-image-api-version 2 image-list --visibility private', it checks for all images that are private and displays them.

Like,
I have two tenants:

admin and test

admin have one private image i.e. admin_private

test have one private image i.e. test_private

>>source openrc admin admin
>>glance member-create <admin_private_id> <test_id>

Now, 'glance --os-image-api-version 2 image-list --visibility private' will show all the private images that admin tenant can access, as the image that is shared is also a private image so it is listed under the private category.