`placement-status upgrade check` fails

Bug #1812829 reported by Tetsuro Nakamura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
High
Tetsuro Nakamura

Bug Description

Description
===========

https://review.openstack.org/#/c/631604/ added a new command to placement:
`placement-status upgrade check`

However, it fails locally logging that it finds no database connection.

$ placement-status upgrade check
Error:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/oslo_upgradecheck/upgradecheck.py", line 189, in main
    return conf.command.action_fn()
  File "/usr/local/lib/python3.6/dist-packages/oslo_upgradecheck/upgradecheck.py", line 98, in check
    result = func(self)
  File "/opt/stack/placement/placement/cmd/status.py", line 60, in _check_incomplete_consumers
    missing_consumer_count = self._count_missing_consumers(self.ctxt)
  File "/usr/local/lib/python3.6/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 1011, in wrapper
    with self._transaction_scope(context):
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.6/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 1061, in _transaction_scope
    context=context) as resource:
  File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__
    return next(self.gen)
  File "/usr/local/lib/python3.6/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 659, in _session
    bind=self.connection, mode=self.mode)
  File "/usr/local/lib/python3.6/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 418, in _create_session
    self._start()
  File "/usr/local/lib/python3.6/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 510, in _start
    engine_args, maker_args)
  File "/usr/local/lib/python3.6/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 532, in _setup_for_connection
    "No sql_connection parameter is established")
oslo_db.exception.CantStartEngineError: No sql_connection parameter is established

Revision history for this message
Tetsuro Nakamura (tetsuro0907) wrote :
Changed in nova:
importance: Undecided → High
assignee: nobody → Tetsuro Nakamura (tetsuro0907)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/placement 1.0.0.0rc1

This issue was fixed in the openstack/placement 1.0.0.0rc1 release candidate.

Revision history for this message
Christian Rohmann (christian-rohmann) wrote :

could this be closed then?

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.