← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1673025] [NEW] Function object has no attribute __getitem__ around database contraction

 

Public bug reported:

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

** Affects: glance
     Importance: Undecided
     Assignee: Dai Dang Van (daidv)
         Status: New


** Tags: contract

** Changed in: glance
     Assignee: (unassigned) => Dai Dang Van (daidv)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1673025

Title:
  Function object has no attribute __getitem__ around database
  contraction

Status in Glance:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1673025/+subscriptions