nova-manage image convert is broken

Bug #821708 reported by Vish Ishaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Vish Ishaya

Bug Description

image convert is throwing a traceback. Looks like _lookup was not passing in context correctly.

Command failed, please check log for more info
2011-08-05 14:58:50,660 CRITICAL nova [-] 'module' object has no attribute 'auth_token'
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/home/jakedahn/nova/nova/bin/nova-manage", line 1493, in <module>
(nova): TRACE: main()
(nova): TRACE: File "/home/jakedahn/nova/nova/bin/nova-manage", line 1481, in main
(nova): TRACE: fn(*fn_args, **fn_kwargs)
(nova): TRACE: File "/home/jakedahn/nova/nova/bin/nova-manage", line 1302, in convert
(nova): TRACE: self._convert_images(machine_images)
(nova): TRACE: File "/home/jakedahn/nova/nova/bin/nova-manage", line 1271, in _convert_images
(nova): TRACE: meta = self._old_to_new(image_metadata)
(nova): TRACE: File "/home/jakedahn/nova/nova/bin/nova-manage", line 1263, in _old_to_new
(nova): TRACE: new['properties']['kernel_id'] = self._lookup(old['kernelId'])
(nova): TRACE: File "/home/jakedahn/nova/nova/bin/nova-manage", line 1242, in _lookup
(nova): TRACE: image = self.image_service.show_by_name(context, old_image_id)
(nova): TRACE: File "/home/jakedahn/nova/nova/nova/image/glance.py", line 174, in show_by_name
(nova): TRACE: image_metas = self.detail(context)
(nova): TRACE: File "/home/jakedahn/nova/nova/nova/image/glance.py", line 108, in detail
(nova): TRACE: image_metas = self._get_images(context, **params)
(nova): TRACE: File "/home/jakedahn/nova/nova/nova/image/glance.py", line 129, in _get_images
(nova): TRACE: self._set_client_context(context)
(nova): TRACE: File "/home/jakedahn/nova/nova/nova/image/glance.py", line 88, in _set_client_context
(nova): TRACE: self.client.set_auth_token(context.auth_token)
(nova): TRACE: AttributeError: 'module' object has no attribute 'auth_token'

Related branches

Changed in nova:
status: New → In Progress
assignee: nobody → Vish Ishaya (vishvananda)
importance: Undecided → Medium
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-4
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-4 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.