--member-status <STATUS> returns images whose member status is not <STATUS>

Bug #1393837 reported by Stuart McLaren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
In Progress
Undecided
Unassigned

Bug Description

Note: the cirros-* images are public, 'private-image' is private, 'share-test' is shared with this user (in pending state):

Standard image list works ok:

 $ glance --os-image-api-version 2 image-list
 +--------------------------------------+---------------------------------+
 | ID | Name |
 +--------------------------------------+---------------------------------+
 | 281d576a-9e4b-4d11-94bb-8b1e89f62a71 | private-image |
 | 3def22ed-e2eb-4575-b242-8704517e95d7 | cirros-0.3.2-x86_64-uec |
 | 32d53b24-5498-469e-a27a-328f87213738 | cirros-0.3.2-x86_64-uec-ramdisk |
 | ca34f1b7-a839-474f-a16b-34779c65905c | cirros-0.3.2-x86_64-uec-kernel |
 +--------------------------------------+---------------------------------+

Filtering on status 'rejected' includes images which do not have status 'rejected' (a bug -- I think no images should be listed here):

 $ glance --os-image-api-version 2 image-list --member-status rejected
 +--------------------------------------+---------------------------------+
 | ID | Name |
 +--------------------------------------+---------------------------------+
 | 281d576a-9e4b-4d11-94bb-8b1e89f62a71 | private-image |
 | 3def22ed-e2eb-4575-b242-8704517e95d7 | cirros-0.3.2-x86_64-uec |
 | 32d53b24-5498-469e-a27a-328f87213738 | cirros-0.3.2-x86_64-uec-ramdisk |
 | ca34f1b7-a839-474f-a16b-34779c65905c | cirros-0.3.2-x86_64-uec-kernel |
 +--------------------------------------+---------------------------------+

Filtering on status 'accepted' includes images which do not have status 'accepted' (a bug -- I think no images should be listed here):

 $ glance --os-image-api-version 2 image-list --member-status accepted
 +--------------------------------------+---------------------------------+
 | ID | Name |
 +--------------------------------------+---------------------------------+
 | 281d576a-9e4b-4d11-94bb-8b1e89f62a71 | private-image |
 | 3def22ed-e2eb-4575-b242-8704517e95d7 | cirros-0.3.2-x86_64-uec |
 | 32d53b24-5498-469e-a27a-328f87213738 | cirros-0.3.2-x86_64-uec-ramdisk |
 | ca34f1b7-a839-474f-a16b-34779c65905c | cirros-0.3.2-x86_64-uec-kernel |
 +--------------------------------------+---------------------------------+

Filtering on status 'pending' includes images which do not have status 'pending' (a bug I think):

 $ glance --os-image-api-version 2 image-list --member-status pending
 +--------------------------------------+---------------------------------+
 | ID | Name |
 +--------------------------------------+---------------------------------+
 | 281d576a-9e4b-4d11-94bb-8b1e89f62a71 | private-image |
 | 795518ca-13a6-4493-b3a3-91519ad7c067 | share-test | <<< I think only this should be listed
 | 3def22ed-e2eb-4575-b242-8704517e95d7 | cirros-0.3.2-x86_64-uec |
 | 32d53b24-5498-469e-a27a-328f87213738 | cirros-0.3.2-x86_64-uec-ramdisk |
 | ca34f1b7-a839-474f-a16b-34779c65905c | cirros-0.3.2-x86_64-uec-kernel |
 +--------------------------------------+---------------------------------+

The API request is:

 GET /v2/images?limit=20&member_status=pending

Changed in glance:
assignee: nobody → Stuart McLaren (stuart-mclaren)
Erno Kuvaja (jokke)
Changed in glance:
status: New → Confirmed
Revision history for this message
Yamini Sardana (yamini-sardana) wrote :

Hello Stuart,

Due to the inactivity on the bug, I am assigning the bug to myself.

Changed in glance:
assignee: Stuart McLaren (stuart-mclaren) → Yamini Sardana (yamini-sardana)
status: Confirmed → In Progress
Changed in glance:
assignee: Yamini Sardana (yamini-sardana) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.