yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #57954
[Bug 1394299] Re: Shared image shows as private
Until Ocata, there were only two image visibility values: 'private' and
'public'. Thus a shared image had visibility 'private' because it was
not a public image.
The confusing aspect is that the image-list filter in the Image API v2
that's used to list shared images is: GET v2/images?visibility=shared
... but none of the images in that list actually had 'visibility' ==
'shared'.
This is being changed in Ocata. As part of the community images
implementation, the values for 'visibility' are being expanded to
{'public', 'private', 'shared', 'community'}. So with the Ocata
release, the visibility of a shared image will be 'shared'.
** Changed in: glance
Status: In Progress => Invalid
** Changed in: glance
Assignee: Kanchan Gupta (kanchan-gupta1) => (unassigned)
--
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 Glance:
Invalid
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
References