← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1393837] [NEW] --member-status <STATUS> returns images whose member status is not <STATUS>

 

Public bug reported:


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

** Affects: glance
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1393837

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

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1393837/+subscriptions


Follow ups

References