nb db migration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DragonFlow |
In Progress
|
High
|
Unassigned |
Bug Description
The following error can be observed when restart df-local-controller after updating code recently. It is because the a new field name unique_key was added to lswitch[1] recently. However, old data in nb db will not have such field, because the old data was created before the code.
The workaround might be re-create all data in nb db, which is not a good way for a legacy user. A feasible fix will be adding unique_key to lswitch when found it is missing, other feasible fix might be provide script to update the nb db.
[1] https:/
2016-11-23 15:14:33.231 ERROR dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
2016-11-23 15:14:33.231 TRACE dragonflow.
Changed in dragonflow: | |
assignee: | nobody → Hong Hui Xiao (xiaohhui) |
summary: |
- TypeError: object of type 'NoneType' has no len() + nb db migration |
Changed in dragonflow: | |
assignee: | Hong Hui Xiao (xiaohhui) → nobody |
Fix proposed to branch: master /review. openstack. org/401210
Review: https:/