← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1207540] Re: glance image-list doesn't show other user's snapshots for admin.

 

Hi Behdad Fariba,

I can not reproduce the bug you submitted. I created a non-admin user
'yuyang' here and captured a new snapshot  'new_snapshot_yuyang' using
this user. And then I used the admin account, and issue the command
"glance image-list" and "nova image-list", I can see all snapshots.

Admin account:


The environment variables I set are:

[root@oc6471321508 neutron]# env | grep OS
HOSTNAME=oc6471321508.ibm.com
OS_REGION_NAME=RegionOne
OS_PASSWORD=1qaz2wsx
OS_AUTH_URL=http://9.123.136.195:5000/v2.0/
OS_USERNAME=admin
OS_TENANT_NAME=service


[root@oc6471321508 neutron]# nova image-list
+--------------------------------------+---------------------+--------+--------------------------------------+
| ID                                   | Name                | Status | Server                               |
+--------------------------------------+---------------------+--------+--------------------------------------+
| 2aeb8f95-31bd-4218-84a7-c64c72cabd7a | cirrors             | ACTIVE |                                      |
| 90ea22c2-d243-4849-b738-a6120c0be01e | new_snapshot_yuyang | ACTIVE | eb9b1460-7501-411f-b406-155d557d501a |
| 1cd4b6b3-ec8e-47f2-861c-084b736ab6c2 | snapshot1           | ACTIVE | e08fdea7-dd8e-44c8-9f55-433e6ac67e85 |
+--------------------------------------+---------------------+--------+--------------------------------------+
[root@oc6471321508 neutron]# glance image-list
+--------------------------------------+---------------------+-------------+------------------+----------+--------+
| ID                                   | Name                | Disk Format | Container Format | Size     | Status |
+--------------------------------------+---------------------+-------------+------------------+----------+--------+
| 2aeb8f95-31bd-4218-84a7-c64c72cabd7a | cirrors             | qcow2       | bare             | 9761280  | active |
| 90ea22c2-d243-4849-b738-a6120c0be01e | new_snapshot_yuyang | qcow2       | bare             | 13959168 | active |
| 1cd4b6b3-ec8e-47f2-861c-084b736ab6c2 | snapshot1           | qcow2       | bare             | 14090240 | active |
+--------------------------------------+---------------------+-------------+------------------+----------+--------+


Non-admin account(yuyang):

[root@oc6471321508 ~]# env | grep OS
HOSTNAME=oc6471321508.ibm.com
OS_REGION_NAME=RegionOne
OS_PASSWORD=1qaz2wsx
OS_AUTH_URL=http://9.123.136.195:5000/v2.0/
OS_USERNAME=yuyang
OS_TENANT_NAME=service
PDHOST=


[root@oc6471321508 ~]# nova boot --flavor 1 --image cirrors new_user_yuyang
+--------------------------------------+--------------------------------------+
| Property                             | Value                                |
+--------------------------------------+--------------------------------------+
| status                               | BUILD                                |
| updated                              | 2013-08-09T09:17:22Z                 |
| OS-EXT-STS:task_state                | scheduling                           |
| key_name                             | None                                 |
| image                                | cirrors                              |
| hostId                               |                                      |
| OS-EXT-STS:vm_state                  | building                             |
| OS-SRV-USG:launched_at               | None                                 |
| flavor                               | m1.tiny                              |
| id                                   | eb9b1460-7501-411f-b406-155d557d501a |
| security_groups                      | [{u'name': u'default'}]              |
| OS-SRV-USG:terminated_at             | None                                 |
| user_id                              | 7119606d1cf8411f836b1ab8e85a0e8d     |
| name                                 | new_user_yuyang                      |
| adminPass                            | uJFxKZ3ff3Q7                         |
| tenant_id                            | 0e6327a0e6b442d4aa840a66e9b81a53     |
| created                              | 2013-08-09T09:17:22Z                 |
| OS-DCF:diskConfig                    | MANUAL                               |
| metadata                             | {}                                   |
| os-extended-volumes:volumes_attached | []                                   |
| accessIPv4                           |                                      |
| accessIPv6                           |                                      |
| progress                             | 0                                    |
| OS-EXT-STS:power_state               | 0                                    |
| OS-EXT-AZ:availability_zone          | nova                                 |
| config_drive                         |                                      |
+--------------------------------------+--------------------------------------+


So I do not think it is a bug, if you still think so, please provide more detail steps to recreate it. Thanks


** Changed in: glance
       Status: New => Invalid

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

Title:
  glance image-list doesn't show other user's snapshots for admin.

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

Bug description:
  run glance image-list as user with admin role, it only shows snapshots created by admin users and does not show snapshots created by other non-admin users.
  nova image-list shows all.

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