resize doesn't work with recent novaclient

Bug #808949 reported by Johannes Erdfelt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Matt Dietz

Bug Description

It appears the recent UUID work has left some inconsistencies. Trying to resize and instance with novaclient will result in a 400 error. novaclient will convert ids to uuids when calling the openstack API:

2011-07-11 18:43:21,191 INFO nova.api.openstack.wsgi [-] POST http://192.168.1.149:8774/v1.0/servers/749357ab-6bab-4597-a39d-78dc850627fb/action

However, the code in nova is expecting only ids and not uuids:

(nova.api.openstack.servers): TRACE: InstanceNotFound: Instance 749357ab-6bab-4597-a39d-78dc850627fb could not be found.

This appears to be because some parts of the API are still calling db.instance_get(), which only accepts ids, instead of self._get_instance(), which accepts both uuids and ids.

Related branches

Matt Dietz (cerberus)
Changed in nova:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Matt Dietz (cerberus)
Matt Dietz (cerberus)
Changed in nova:
status: Confirmed → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-3
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-3 → 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.