← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1394299] [NEW] Shared image shows as private

 

Public bug reported:


image  281d576a-9e4b-4d11-94bb-8b1e89f62a71 is owned by this user and
correctly shows as 'private', however image '795518ca-
13a6-4493-b3a3-91519ad7c067' is not owned by this user, it is a shared
image.


 $ glance --os-image-api-version 2 image-list --visibility shared
 +--------------------------------------+-----------------+
 | ID                                    | Name            |
 +--------------------------------------+-----------------+
 | 795518ca-13a6-4493-b3a3-91519ad7c067 | accepted--image | <<< correct, the shared image is shown
 +--------------------------------------+-----------------+


 $ glance --os-image-api-version 2 image-list --visibility private
 +--------------------------------------+-----------------+
 | ID                                   | Name            |
 +--------------------------------------+-----------------+
 | 281d576a-9e4b-4d11-94bb-8b1e89f62a71 | private-image   |
 | 795518ca-13a6-4493-b3a3-91519ad7c067 | accepted--image |  <<< wrong, I think, this is shared, not private
 +--------------------------------------+-----------------+


 $ glance --os-image-api-version 2 image-show 281d576a-9e4b-4d11-94bb-8b1e89f62a71
 +------------------+--------------------------------------+
 | Property         | Value                                |
 +------------------+--------------------------------------+
 | checksum         | 398759a311bf25c6f1d67e753bb24dae     |
 | container_format | bare                                 |
 | created_at       | 2014-11-18T11:16:33Z                 |
 | disk_format      | raw                                  |
 | id               | 281d576a-9e4b-4d11-94bb-8b1e89f62a71 |
 | min_disk         | 0                                    |
 | min_ram          | 0                                    |
 | name             | private-image                        |
 | owner            | f68be3a5c2b14721a9e0ed2fcb750481     |
 | protected        | False                                |
 | size             | 106                                  |
 | status           | active                               |
 | tags             | []                                   |
 | updated_at       | 2014-11-18T15:51:35Z                 |
 | visibility       | private                              | <<< correct
 +------------------+--------------------------------------+


 (py27)ubuntu in ~/git/python-glanceclient on master*
 $ glance --os-image-api-version 2 image-show 795518ca-13a6-4493-b3a3-91519ad7c067
 +------------------+--------------------------------------+
 | Property         | Value                                |
 +------------------+--------------------------------------+
 | checksum         | 398759a311bf25c6f1d67e753bb24dae     |
 | container_format | bare                                 |
 | created_at       | 2014-11-18T11:14:58Z                 |
 | disk_format      | raw                                  |
 | id               | 795518ca-13a6-4493-b3a3-91519ad7c067 |
 | min_disk         | 0                                    |
 | min_ram          | 0                                    |
 | name             | accepted--image                      |
 | owner            | 2dcea26aa97a41fa9547a133f6c7f5b4     | <<< different owner
 | protected        | False                                |
 | size             | 106                                  |
 | status           | active                               |
 | tags             | []                                   |
 | updated_at       | 2014-11-19T16:32:33Z                 |
 | visibility       | private                              | <<< wrong, I think
 +------------------+--------------------------------------+

** 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/1394299

Title:
  Shared image shows as private

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

Bug description:

  image  281d576a-9e4b-4d11-94bb-8b1e89f62a71 is owned by this user and
  correctly shows as 'private', however image '795518ca-
  13a6-4493-b3a3-91519ad7c067' is not owned by this user, it is a shared
  image.


   $ glance --os-image-api-version 2 image-list --visibility shared
   +--------------------------------------+-----------------+
   | ID                                    | Name            |
   +--------------------------------------+-----------------+
   | 795518ca-13a6-4493-b3a3-91519ad7c067 | accepted--image | <<< correct, the shared image is shown
   +--------------------------------------+-----------------+

  
   $ glance --os-image-api-version 2 image-list --visibility private
   +--------------------------------------+-----------------+
   | ID                                   | Name            |
   +--------------------------------------+-----------------+
   | 281d576a-9e4b-4d11-94bb-8b1e89f62a71 | private-image   |
   | 795518ca-13a6-4493-b3a3-91519ad7c067 | accepted--image |  <<< wrong, I think, this is shared, not private
   +--------------------------------------+-----------------+

  
   $ glance --os-image-api-version 2 image-show 281d576a-9e4b-4d11-94bb-8b1e89f62a71
   +------------------+--------------------------------------+
   | Property         | Value                                |
   +------------------+--------------------------------------+
   | checksum         | 398759a311bf25c6f1d67e753bb24dae     |
   | container_format | bare                                 |
   | created_at       | 2014-11-18T11:16:33Z                 |
   | disk_format      | raw                                  |
   | id               | 281d576a-9e4b-4d11-94bb-8b1e89f62a71 |
   | min_disk         | 0                                    |
   | min_ram          | 0                                    |
   | name             | private-image                        |
   | owner            | f68be3a5c2b14721a9e0ed2fcb750481     |
   | protected        | False                                |
   | size             | 106                                  |
   | status           | active                               |
   | tags             | []                                   |
   | updated_at       | 2014-11-18T15:51:35Z                 |
   | visibility       | private                              | <<< correct
   +------------------+--------------------------------------+

  
   (py27)ubuntu in ~/git/python-glanceclient on master*
   $ glance --os-image-api-version 2 image-show 795518ca-13a6-4493-b3a3-91519ad7c067
   +------------------+--------------------------------------+
   | Property         | Value                                |
   +------------------+--------------------------------------+
   | checksum         | 398759a311bf25c6f1d67e753bb24dae     |
   | container_format | bare                                 |
   | created_at       | 2014-11-18T11:14:58Z                 |
   | disk_format      | raw                                  |
   | id               | 795518ca-13a6-4493-b3a3-91519ad7c067 |
   | min_disk         | 0                                    |
   | min_ram          | 0                                    |
   | name             | accepted--image                      |
   | owner            | 2dcea26aa97a41fa9547a133f6c7f5b4     | <<< different owner
   | protected        | False                                |
   | size             | 106                                  |
   | status           | active                               |
   | tags             | []                                   |
   | updated_at       | 2014-11-19T16:32:33Z                 |
   | visibility       | private                              | <<< wrong, I think
   +------------------+--------------------------------------+

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


Follow ups

References