nova-manage db online_data_migrations can fail when upgrading to newton under certain conditions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Reproduceable under conditions:
* Mitaka upgraded to Newton
* online_
* One or more of the datetime-fields (created_at, updated_at, deleted_at) are set.
** Because a custom flavor has been created
** Because a flavor has been updated
** Because a flavor has been deleted (deleted flavors are probably not relevant, as the new table have no deleted flag, it just removes them altogether)
Steps to reproduce:
* Run 'nova-manage db online_
It throws an error message like:
Error attempting to run <function migrate_flavors at 0x488f398>
Workaround:
* Set created_
* Run migration
I have done quite a bit of troubleshooting, but haven't managed to write a patch so far. As far as I can tell, inserting a flavor or aggregate to the new tables fail due to the datetime fields including a timezone. There exists code for stripping away the timezone in nova/db/
Could you please provide more details about at least the stacktrace ?