Nova EC2 /images returned mapping has wrong keys for euca-describe-images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Devin Carlen |
Bug Description
I'm trying to put a new image like described in the documentation on http://
I started glance_registry on port 9191 and used swift as the default storage.
No I get the following error from glance_registry:
DEBUG:routes.
Traceback (most recent call last):
File "/usr/lib64/
result = self.applicatio
File "/usr/lib64/
return resp(environ, start_response)
File "/usr/lib64/
response = self.app(environ, start_response)
File "/usr/lib64/
return resp(environ, start_response)
File "/usr/lib64/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/lib64/
return self.func(req, *args, **kwargs)
File "/usr/lib64/
result = method(**arg_dict)
File "/usr/lib64/
image_data = json.loads(
File "/usr/lib64/
return _default_
File "/usr/lib64/
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
This is the python code I used:
#!/usr/bin/python
from glance.client import Client
c = Client(
print c.get_images()
meta = {'name': 'Ubuntu 10.10 5G',
'type': 'machine',
new_meta = c.add_image(meta, open('/
print 'Stored image. Got identifier: %s' % new_meta['id']
Related branches
- Vish Ishaya (community): Approve
- Jay Pipes (community): Approve
-
Diff: 81 lines (+35/-10)2 files modifiednova/api/ec2/cloud.py (+17/-2)
nova/image/s3.py (+18/-8)
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
Hi!
Could you try using the bin/glance-upload tool and tell me if you get the same error? Thanks!
Also, please specify what version of Glance you are using...
-jay