[Openstack] The project of an image or images have a project

严超 yanchao727 at gmail.com
Wed Apr 16 03:31:47 UTC 2014


#export -p
or read /etc/profile to find which tenant/project you are in.
Try to check env variables.
On Apr 16, 2014 11:20 AM, "Carlos Miguel Hernández Romero" <
miguel2hermanas at gmail.com> wrote:

> if I put private not get the project :
> From command if the project goes " owner" :
> vagrant at precise64:~$ glance image-show
> '415fe371-14c1-42d7-9b4f-dd1d1921ef0b'
> +------------------+--------------------------------------+
> | Property         | Value                                |
> +------------------+--------------------------------------+
> | checksum         | d972013792949d0d3ba628fbe8685bce     |
> | container_format | bare                                 |
> | created_at       | 2014-04-16T03:10:44                  |
> | deleted          | False                                |
> | disk_format      | qcow2                                |
> | id               | 415fe371-14c1-42d7-9b4f-dd1d1921ef0b |
> | is_public        | False                                |
> | min_disk         | 0                                    |
> | min_ram          | 0                                    |
> | name             | imagen_prueba2                       |
> | owner            | ebbc8d489c30426a8e5ed067b8d6ea20     |
> | protected        | False                                |
> | size             | 13147648                             |
> | status           | active                               |
> | updated_at       | 2014-04-16T03:10:44                  |
> +------------------+--------------------------------------+
>
> And Python API do not get it :
> url = '/v2/images/415fe371-14c1-42d7-9b4f-dd1d1921ef0b'
> print glance.images.http_client.json_request('GET', url)
>
> (<httplib.HTTPResponse instance at 0x2bfdb48>, {u'status': u'active',
> u'name': u'imagen_prueba2', u'tags': [], u'container_format': u'bare',
> u'created_at': u'2014-04-16T03:10:44Z', u'disk_format': u'qcow2',
> u'updated_at': u'2014-04-16T03:10:44Z', u'visibility': u'private', u'id':
> u'415fe371-14c1-42d7-9b4f-dd1d1921ef0b', u'protected': False, u'min_ram':
> 0, u'file': u'/v2/images/415fe371-14c1-42d7-9b4f-dd1d1921ef0b/file',
> u'checksum': u'd972013792949d0d3ba628fbe8685bce', u'min_disk': 0,
> u'schema': u'/v2/schemas/image', u'self':
> u'/v2/images/415fe371-14c1-42d7-9b4f-dd1d1921ef0b', u'size': 13147648})
>
>
> Can you help?
>
> Best Regards!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140416/d49e9fc1/attachment.html>


More information about the Openstack mailing list