resize doesn't work with recent novaclient
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.
However, the code in nova is expecting only ids and not uuids:
(nova.api.
This appears to be because some parts of the API are still calling db.instance_get(), which only accepts ids, instead of self._get_
Related branches
- Brian Waldon (community): Approve
- Johannes Erdfelt (community): Approve
- Dan Prince (community): Approve
-
Diff: 477 lines (+142/-65)7 files modifiednova/compute/api.py (+22/-10)
nova/compute/manager.py (+47/-34)
nova/db/sqlalchemy/api.py (+8/-4)
nova/db/sqlalchemy/migrate_repo/versions/034_change_instance_id_in_migrations.py (+43/-0)
nova/db/sqlalchemy/models.py (+2/-1)
nova/exception.py (+1/-1)
nova/tests/test_compute.py (+19/-15)
Changed in nova: | |
importance: | Undecided → High |
status: | New → Confirmed |
assignee: | nobody → Matt Dietz (cerberus) |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-3 |
Changed in nova: | |
milestone: | diablo-3 → 2011.3 |
status: | Fix Committed → Fix Released |