It seems will try to get the connection from settings database/connection; but not api_database/connection. Is this wrong by considering the Aggregates were migrated to API database?
See the following stack
File "/opt/stack/nova/nova/objects/aggregate.py", line 541, in get_by_host
_get_by_host_from_db(context, host, key=key)]
File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 992, in wrapper
with self._transaction_scope(context):
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 1042, in _transaction_scope
context=context) as resource:
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 647, in _session
bind=self.connection, mode=self.mode)
File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 402, in _create_session
self._start()
File "/usr/local/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 477, in _start
traceback.print_stack(file=f)
conf is not None: conf=<oslo_config.cfg.ConfigOpts object at 0x7f279c064950>
I tried to print the stack in enginefacade.py. /github. com/openstack/ oslo.db/ blob/master/ oslo_db/ sqlalchemy/ enginefacade. py#L471 register_ opts(options. database_ opts, 'database')
Checking source code:
https:/
conf.
It seems will try to get the connection from settings database/ connection; but not api_database/ connection. Is this wrong by considering the Aggregates were migrated to API database?
See the following stack
File "/opt/stack/ nova/nova/ objects/ aggregate. py", line 541, in get_by_host by_host_ from_db( context, host, key=key)] lib/python2. 7/dist- packages/ oslo_db/ sqlalchemy/ enginefacade. py", line 992, in wrapper on_scope( context) : python2. 7/contextlib. py", line 17, in __enter__ lib/python2. 7/dist- packages/ oslo_db/ sqlalchemy/ enginefacade. py", line 1042, in _transaction_scope context) as resource: python2. 7/contextlib. py", line 17, in __enter__ lib/python2. 7/dist- packages/ oslo_db/ sqlalchemy/ enginefacade. py", line 647, in _session self.connection , mode=self.mode) lib/python2. 7/dist- packages/ oslo_db/ sqlalchemy/ enginefacade. py", line 402, in _create_session lib/python2. 7/dist- packages/ oslo_db/ sqlalchemy/ enginefacade. py", line 477, in _start print_stack( file=f) config. cfg.ConfigOpts object at 0x7f279c064950>
_get_
File "/usr/local/
with self._transacti
File "/usr/lib/
return self.gen.next()
File "/usr/local/
context=
File "/usr/lib/
return self.gen.next()
File "/usr/local/
bind=
File "/usr/local/
self._start()
File "/usr/local/
traceback.
conf is not None: conf=<oslo_
url_args= {'connection' : None, 'slave_connection': None}