Function object has no attribute __getitem__ around database contraction

Bug #1673025 reported by Dai Dang Van
This bug report is a duplicate of:  Bug #1670409: Experimental E-M-C migrations broken. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
In Progress
Undecided
Dai Dang Van

Bug Description

2017-03-15 14:37:33.346 CRITICAL glance [-] TypeError: 'function' object has no attribute '__getitem__'

2017-03-15 14:37:33.346 TRACE glance Traceback (most recent call last):
2017-03-15 14:37:33.346 TRACE glance File "/usr/local/bin/glance-manage", line 10, in <module>
2017-03-15 14:37:33.346 TRACE glance sys.exit(main())
2017-03-15 14:37:33.346 TRACE glance File "/opt/stack/glance/glance/cmd/manage.py", line 459, in main
2017-03-15 14:37:33.346 TRACE glance return CONF.command.action_fn(*func_args, **func_kwargs)
2017-03-15 14:37:33.346 TRACE glance File "/opt/stack/glance/glance/cmd/manage.py", line 174, in contract
2017-03-15 14:37:33.346 TRACE glance if data_migrations.has_pending_migrations(db_api.get_engine()):
2017-03-15 14:37:33.346 TRACE glance File "/opt/stack/glance/glance/db/sqlalchemy/alembic_migrations/data_migrations/__init__.py", line 61, in has_pending_migrations
2017-03-15 14:37:33.346 TRACE glance return any([x.has_migrations(engine) for x in migrations])
2017-03-15 14:37:33.346 TRACE glance File "/opt/stack/glance/glance/db/sqlalchemy/alembic_migrations/data_migrations/ocata_migrate01_community_images.py", line 43, in has_migrations
2017-03-15 14:37:33.346 TRACE glance rows_with_pending_shared = (select[images.c.id]
2017-03-15 14:37:33.346 TRACE glance TypeError: 'function' object has no attribute '__getitem__'
2017-03-15 14:37:33.346 TRACE glance

Tags: contract
Dai Dang Van (daikk115)
Changed in glance:
assignee: nobody → Dai Dang Van (daidv)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/445987

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance (master)

Change abandoned by Dai Dang Van (<email address hidden>) on branch: master
Review: https://review.openstack.org/445987
Reason: https://review.openstack.org/#/c/440875

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.