ValueError: Field `instance_uuid' cannot be None
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Matt Riedemann | ||
Newton |
In Progress
|
High
|
Matt Riedemann |
Bug Description
I "accidentally" upgraded from Mitaka to Newton a few days ago and I'm still cleaning up "the mess" that introduced (to used to Debian GNU/Linux packages takes care of all that for me).
Anyway, I'm now getting
ValueError: Field `instance_uuid' cannot be None
in the nova-api log.
I've been looking at http://
I've run
nova-manage db online_
=> ERROR nova.db.
nova-manage db sync
=> ERROR: could not access cell mapping database - has api db been created?
nova-manage api_db sync
=> Seems to run ok
nova-manage cell_v2 discover_hosts
=> error: 'module' object has no attribute 'session'
nova-manage cell_v2 map_cell0
=> Seemed like it ran ok
nova-manage cell_v2 simple_cell_setup --transport-url rabbit://blabla/
=> Seemed like it ran ok
nova-manage db null_instance_
=> There were no records found where instance_uuid was NULL.
Other than that, I'm not sure what the problem is.
Changed in nova: | |
assignee: | nobody → Praveen N (praveenn) |
Changed in nova: | |
assignee: | Praveen N (praveenn) → nobody |
Changed in nova: | |
status: | Confirmed → In Progress |
assignee: | nobody → Matt Riedemann (mriedem) |
Changed in nova: | |
status: | In Progress → Fix Released |
Looking through the code, it seems it's not the database that's at fault, but the fact that build_request. py:_from_ db_object( ) is called with a 'None' value for "db_req[ 'instance_ uuid']" , which means that the call by cls._get_ all_from_ db() in build_request. py:get_ all() returns a bogus value somehow/somewhere.
Since I'm admin, I'm assuming that the line in build_request. py:_get_ all_from_ db()
query = context. session. query(api_ models. BuildRequest)
is the problem.. ?