[wallaby]nova, oslo.db or SQLAlchemy bug? "no attribute statement"

tjoen tjoen at dds.nl
Tue May 18 11:54:45 UTC 2021


Python-3.9.4
nova-23.0.1
oslo.db-8.5.0
SQLAlchemy-1.4.15

docs.openstack.org/install-guide/launch-instance-provider.html
$ openstack server list
Status is SHUTDOWN
$ openstack server start provider-instance
results in
site-packages/oslo_db/sqlalchemy/update_match.py", line 489, in
   _update_context.statement.froms[0]
ERROR nova.api.openstack.wsgi AttributeError: 'QueryContext' object
          has no attribute 'statement'

site-packages/oslo_db/sqlalchemy/update_match.py  line 488 and 489:
     context = query._compile_context()
     primary_table = context.statement.froms[0]

site-packages/sqlalchemy/orm/query.py
     def _compile_context(self, for_statement=False):
         compile_state = self._compile_state(for_statement=for_statement)
         context = QueryContext(
         context = QueryContext(
             compile_state,
             compile_state.statement,
             self._params,
             self.session,
             self.load_options,
         )
         return context

nova, oslo.db or SQLAlchemy bug?



More information about the openstack-discuss mailing list