[launch instance] create volume during launch instance fails

Bug #1454283 reported by Matthias Runge
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Liyingjun

Bug Description

I tried to launch an instance and to create volume (from an image) to boot from:

[Tue May 12 14:23:21.682962 2015] [wsgi:error] [pid 30998] error invoking apiclient
[Tue May 12 14:23:21.683017 2015] [wsgi:error] [pid 30998] Traceback (most recent call last):
[Tue May 12 14:23:21.683026 2015] [wsgi:error] [pid 30998] File "/usr/share/op
enstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/rest/utils.py", line 114, in _wrapped
[Tue May 12 14:23:21.683033 2015] [wsgi:error] [pid 30998] data = function(self, request, *args, **kw)
[Tue May 12 14:23:21.683040 2015] [wsgi:error] [pid 30998] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/rest/nova.py", line 170, in post
[Tue May 12 14:23:21.683047 2015] [wsgi:error] [pid 30998] new = api.nova.server_create(*args, **kw)
[Tue May 12 14:23:21.683053 2015] [wsgi:error] [pid 30998] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 586, in server_create
[Tue May 12 14:23:21.683060 2015] [wsgi:error] [pid 30998] meta=meta), request)
[Tue May 12 14:23:21.683066 2015] [wsgi:error] [pid 30998] File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 907, in create
[Tue May 12 14:23:21.683073 2015] [wsgi:error] [pid 30998] **boot_kwargs)
[Tue May 12 14:23:21.683078 2015] [wsgi:error] [pid 30998] File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 499, in _boot
[Tue May 12 14:23:21.683085 2015] [wsgi:error] [pid 30998] bdm_dict = {'uuid': image.id, 'source_type': 'image',
[Tue May 12 14:23:21.683091 2015] [wsgi:error] [pid 30998] AttributeError: 'unicode' object has no attribute 'id'

Revision history for this message
Matthias Runge (mrunge) wrote :

to mention: unchecking "Create new volume" fixes this issue

Revision history for this message
Matthias Runge (mrunge) wrote :

but obviously doesn't create a volume.

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

The stack trace indicates an error in the novaclient. Can you successfully perform the same operation with the 'nova' command line?

tags: added: nova
Revision history for this message
Matthias Runge (mrunge) wrote :

Gary, this just works in old launch instance dialogue.

Revision history for this message
Travis Tripp (travis-tripp) wrote :

Hi Matthias,

I definitely created many volumes in testing, so might be a version mismatch of some sort in what is expected. Would you be able to capture the exact JSON being sent to Nova from the two different launch instances (original and ng)?

Thanks,
Travis

Revision history for this message
Liyingjun (liyingjun) wrote :

Don't need to specify image since it already specified in block_device_mapping_v2 by 'uuid'.

Changed in horizon:
status: New → Confirmed
assignee: nobody → Liyingjun (liyingjun)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/191716

Changed in horizon:
status: Confirmed → In Progress
Changed in horizon:
importance: Undecided → Critical
importance: Critical → High
Revision history for this message
Lawrance (jing) wrote :
Revision history for this message
Travis Tripp (travis-tripp) wrote :

For what its worth, I believe this stopped working because I was told that in Liberty Nova started rejecting requests that contain extra data. So, that's why this used to work.

Changed in horizon:
status: In Progress → Fix Committed
Matthias Runge (mrunge)
Changed in horizon:
milestone: none → liberty-2
tags: added: kilo-backport-potential
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-2 → 8.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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