Incoherent use of is_public creates havoc when using euca-describe-images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Vish Ishaya |
Bug Description
Glance Rev 100 and Nova Rev 930
I upload images via Nova API to Glance:
nova-manage image all_register ami-tty/image aki-tty/image ari-tty/image admin "ttylinux"
which returns:
machine {'is_public': True, 'properties': {'image_location': 'local', 'image_state': 'available', 'architecture': 'x86_64', 'is_public': True, 'type': 'machine', 'owner_id': 'admin'}, 'disk_format': 'ami', 'name': 'ttylinux', 'container_format': 'ami'}
A glance details then shows all images uploaded with "Public: Yes".
Based on the return from nova-manage I would also expect to see a "Property 'is_public': True" however this is not present.
I now run an euca-describe-
I change my user to a non-admin user named testuser1 running under project test1 and run an euca-describe-
UnknownError: An unknown error has occurred. Please try your request again.
The Nova API debug output is as follows:
2011-04-02 00:00:12,134 ERROR nova.api [Q-I2YGJ4DUHY42
(nova.api): TRACE: Traceback (most recent call last):
(nova.api): TRACE: File "/opt/nova/
(nova.api): TRACE: result = api_request.
(nova.api): TRACE: File "/opt/nova/
(nova.api): TRACE: result = method(context, **args)
(nova.api): TRACE: File "/opt/nova/
(nova.api): TRACE: images = self.image_
(nova.api): TRACE: File "/opt/nova/
(nova.api): TRACE: return self._filter(
(nova.api): TRACE: File "/opt/nova/
(nova.api): TRACE: if not cls._is_
(nova.api): TRACE: File "/opt/nova/
(nova.api): TRACE: or image['
(nova.api): TRACE: KeyError: 'is_public'
Related branches
- Rick Harris (community): Approve
- Brian Lamar (community): Needs Information
- Devin Carlen (community): Approve
- termie (community): Needs Fixing
-
Diff: 560 lines (+123/-122)12 files modifiedbin/nova-manage (+20/-20)
nova/api/ec2/cloud.py (+38/-16)
nova/api/openstack/servers.py (+1/-1)
nova/image/fake.py (+3/-3)
nova/image/glance.py (+4/-27)
nova/image/local.py (+13/-3)
nova/image/s3.py (+6/-36)
nova/image/service.py (+27/-0)
nova/tests/api/openstack/test_image_metadata.py (+0/-2)
nova/tests/api/openstack/test_servers.py (+7/-9)
nova/tests/image/test_glance.py (+4/-4)
nova/virt/libvirt_conn.py (+0/-1)
description: | updated |
Changed in nova: | |
status: | Triaged → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
Could you post the contents of your nova.conf file, and in particular the value of the --image_service flag, if any ?