Installing stable/ocata using expand/migrate/contract for the first time raises TypeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Unassigned |
Bug Description
If you are installing stable/ocata branch for the first time using the latest zero-down time database upgrade method, then it gives following error when you run "db migrate" command.
$glance-manage db migrate
Output:
2017-10-19 02:31:26.550 CRITICAL glance [-] TypeError: 'function' object has no attribute '__getitem__'
2017-10-19 02:31:26.550 TRACE glance Traceback (most recent call last):
2017-10-19 02:31:26.550 TRACE glance File "./glance-manage", line 10, in <module>
2017-10-19 02:31:26.550 TRACE glance sys.exit(main())
2017-10-19 02:31:26.550 TRACE glance File "/opt/stack/
2017-10-19 02:31:26.550 TRACE glance return CONF.command.
2017-10-19 02:31:26.550 TRACE glance File "/opt/stack/
2017-10-19 02:31:26.550 TRACE glance if data_migrations
2017-10-19 02:31:26.550 TRACE glance File "/opt/stack/
2017-10-19 02:31:26.550 TRACE glance return any([x.
2017-10-19 02:31:26.550 TRACE glance File "/opt/stack/
2017-10-19 02:31:26.550 TRACE glance rows_with_
2017-10-19 02:31:26.550 TRACE glance TypeError: 'function' object has no attribute '__getitem__'
2017-10-19 02:31:26.550 TRACE glance
Reason: https:/
Actual line: rows_with_
Expected line: rows_with_
Steps to reproduce:
1. Clone glance stable/ocata branch.
2. CREATE DATABASE glance CHARACTER SET utf8;
3. glance-manage db expand
4. glance-manage db migrate
A patch to fix this issue is already up for ocata branch but it is abandon now. /review. openstack. org/#/c/ 440876/ 6
Please refer, https:/
If we could restore this patch then there is no need to submit the new patch to fix this issue. Otherwise we need to submit a new patch directly to stable/ocata branch.