@Sylvain Bauza Sorry! please ignore the trace. I updated the issue description and the problem should belong to nova component. Please have a look. Thanks a lot!
** Changed in: nova Status: Invalid => New ** Description changed: - In our code we invoke the code as following: + When invoke objects.InstanceList.get_all(context, ['metadata','system_metadata']) - It throw the error said: - 2015-05-19 21:52:31.222 22676 TRACE nova.scheduler.ibm.ego.ego_manager strat = self._get_strategy(loader.strategy) - 2015-05-19 21:52:31.222 22676 TRACE nova.scheduler.ibm.ego.ego_manager File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/interfaces.py", line 452, in _get_strategy - 2015-05-19 21:52:31.222 22676 TRACE nova.scheduler.ibm.ego.ego_manager cls = self._strategy_lookup(*key) - 2015-05-19 21:52:31.222 22676 TRACE nova.scheduler.ibm.ego.ego_manager File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/interfaces.py", line 507, in _strategy_lookup - 2015-05-19 21:52:31.222 22676 TRACE nova.scheduler.ibm.ego.ego_manager raise Exception("can't locate strategy for %s %s" % (cls, key)) - 2015-05-19 21:52:31.222 22676 TRACE nova.scheduler.ibm.ego.ego_manager Exception: can't locate strategy for <class 'sqlalchemy.orm.properties.ColumnProperty'> (('lazy', 'joined'),) - 2015-05-19 21:52:31.222 22676 TRACE nova.scheduler.ibm.ego.ego_manager - The original used: db.instance_get_all(context, - ['metadata','system_metadata']) can worked well. - - Did some investigation and found the nova/objects/instance.py function - _expected_cols(expected_attrs): + Then found the nova/objects/instance.py function _expected_cols(expected_attrs): will return list ['metadata','system_metadata', 'extra', 'extra.flavor'], then in the db query it throw the error: can't locate strategy for <class 'sqlalchemy.orm.properties.ColumnProperty'> (('lazy', 'joined'),) Could anyone can help have a look? Thanks! -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1456871 Title: objects.InstanceList.get_all(context, ['metadata','system_metadata']) return error can't locate strategy for %s %s" % (cls, key) Status in OpenStack Compute (Nova): New Bug description: When invoke objects.InstanceList.get_all(context, ['metadata','system_metadata']) Then found the nova/objects/instance.py function _expected_cols(expected_attrs): will return list ['metadata','system_metadata', 'extra', 'extra.flavor'], then in the db query it throw the error: can't locate strategy for <class 'sqlalchemy.orm.properties.ColumnProperty'> (('lazy', 'joined'),) Could anyone can help have a look? Thanks! To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1456871/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp