Comment 1 for bug 2047693

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

There is a different error when running quota sync for a specific project, note that this need an actual volume to exist for that project in order to trigger the error. Not sure yet if this is related or not.

$ /opt/stack/data/venv/bin/cinder-manage quota sync --project b0bd58002f3141cd90d7066e74cc5c1b
INFO dbcounter [None req-f6f3e9f8-106a-48c0-b377-d1248b03e31f None None] Registered counter for database cinder
DEBUG oslo_db.sqlalchemy.engines [None req-f6f3e9f8-106a-48c0-b377-d1248b03e31f None None] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FO
R_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION {{(pid=412126) _check_effective_sql_mode /opt/stack/data/venv/lib/python3.11/site-packages/oslo_db/sqlalchemy/engines
.py:342}}
DEBUG dbcounter [-] [412126] Writer thread running {{(pid=412126) stat_writer /opt/stack/data/venv/lib/python3.11/site-packages/dbcounter.py:102}}
Processing quota usage for project b0bd58002f3141cd90d7066e74cc5c1b
CRITICAL cinder [None req-f6f3e9f8-106a-48c0-b377-d1248b03e31f None None] Unhandled error: AttributeError: module 'cinder.context' has no attribute 'session' ERROR cinder Traceback (most recent call last): ERROR cinder File "/opt/stack/data/venv/bin/cinder-manage", line 8, in <module>
ERROR cinder sys.exit(main())
ERROR cinder ^^^^^^
ERROR cinder File "/opt/stack/data/venv/lib/python3.11/site-packages/cinder/cmd/manage.py", line 1151, in main
ERROR cinder fn(**fn_kwargs)
ERROR cinder File "/opt/stack/data/venv/lib/python3.11/site-packages/cinder/cmd/manage.py", line 385, in sync
ERROR cinder self._check_sync(project_id, do_fix=True)
ERROR cinder File "/opt/stack/data/venv/lib/python3.11/site-packages/cinder/cmd/manage.py", line 511, in _check_sync
ERROR cinder discrepancy &= self._check_project_sync(
ERROR cinder ^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR cinder File "/opt/stack/data/venv/lib/python3.11/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 1001, in wrapper
ERROR cinder return fn(*args, **kwargs)
ERROR cinder ^^^^^^^^^^^^^^^^^^^
ERROR cinder File "/opt/stack/data/venv/lib/python3.11/site-packages/cinder/cmd/manage.py", line 566, in _check_project_sync
ERROR cinder reservations = self._get_reservations(
ERROR cinder ^^^^^^^^^^^^^^^^^^^^^^^
ERROR cinder File "/opt/stack/data/venv/lib/python3.11/site-packages/cinder/cmd/manage.py", line 440, in _get_reservations
ERROR cinder db_api.model_query(
ERROR cinder File "/opt/stack/data/venv/lib/python3.11/site-packages/cinder/db/sqlalchemy/api.py", line 301, in model_query
ERROR cinder query = context.session.query(model, *args)
ERROR cinder ^^^^^^^^^^^^^^^
ERROR cinder AttributeError: module 'cinder.context' has no attribute 'session'
ERROR cinder