Glance api fails with Internal Server Error: Access denied for user 'glance'@'<IP>'

Bug #2008000 reported by Bas de Bruijne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Glance Charm
Triaged
Low
Unassigned

Bug Description

Testrun https://solutions.qa.canonical.com/v2/testruns/8d75133c-2076-4fe2-888d-8f3773122ed3 (yoga focal juju 2.9.40) fails because tempest fails to list images:

```
2023-02-21-09:44:02 keystoneauth.session DEBUG GET call to image for https://glance.silo2.lab0.solutionsqa:9292/v2/images used request id req-91d2de16-2333-405a-9af9-62f22746dd64
Traceback (most recent call last):
  File "/usr/local/bin/fce", line 11, in <module>
    load_entry_point('foundationcloudengine', 'console_scripts', 'fce')()
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/main.py", line 217, in entry_point
    sys.exit(main(sys.argv[1:]))
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/main.py", line 208, in main
    opts.func(opts)
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/command.py", line 94, in run
    self.run_per_layer(layer, args)
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/commands/build.py", line 46, in run_per_layer
    build_and_validate_if_needed(
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/commands/build.py", line 109, in build_and_validate_if_needed
    layer.validate()
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/layers/baselayer.py", line 243, in validate
    validator.run()
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/layers/baselayer.py", line 486, in run
    self.pre_run()
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/layers/openstacklayer.py", line 350, in pre_run
    self.cleanup_init()
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/layers/openstacklayer.py", line 322, in cleanup_init
    self.write_tempest_conf()
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/layers/openstacklayer.py", line 267, in write_tempest_conf
    tempest_status = self.configure_tempest()
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/layers/openstacklayer.py", line 250, in configure_tempest
    context = self.get_context()
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/layers/openstacklayer.py", line 230, in get_context
    img_id = get_image_by_series(self._image_series).id
  File "/home/ubuntu/cpe/foundation/foundationcloudengine/foundationcloudengine/layers/openstacklayer.py", line 110, in get_image_by_series
    for image in conn.image.images():
  File "/usr/lib/python3/dist-packages/openstack/resource.py", line 1693, in list
    exceptions.raise_from_response(response)
  File "/usr/lib/python3/dist-packages/openstack/exceptions.py", line 234, in raise_from_response
    raise cls(
openstack.exceptions.HttpException: HttpException: 500: Server Error for url: https://glance.silo2.lab0.solutionsqa:9292/v2/images, Internal Server Error
```

Looking at the glance logs:

```
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi Traceback (most recent call last):
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 3250, in _wrap_pool_connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return fn()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 310, in connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _ConnectionFairy._checkout(self)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 868, in _checkout
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi fairy = _ConnectionRecord.checkout(pool)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 476, in checkout
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi rec = pool._do_get()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py", line 146, in _do_get
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._dec_overflow()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi compat.raise_(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 207, in raise_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi raise exception
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py", line 143, in _do_get
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self._create_connection()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 256, in _create_connection
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _ConnectionRecord(self)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 371, in __init__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self.__connect()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 666, in __connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi pool.logger.debug("Error on connect(): %s", e)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi compat.raise_(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 207, in raise_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi raise exception
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 661, in __connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self.dbapi_connection = connection = pool._invoke_creator(self)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/create.py", line 590, in connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return dialect.connect(*cargs, **cparams)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/default.py", line 597, in connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self.dbapi.connect(*cargs, **cparams)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 353, in __init__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self.connect()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 633, in connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._request_authentication()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 921, in _request_authentication
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi auth_packet = self._process_auth(plugin_name, auth_packet)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 959, in _process_auth
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _auth.sha256_password_auth(self, auth_packet)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/_auth.py", line 163, in sha256_password_auth
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _roundtrip(conn, data)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/_auth.py", line 120, in _roundtrip
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi pkt = conn._read_packet()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 725, in _read_packet
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi packet.raise_for_error()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/protocol.py", line 221, in raise_for_error
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi err.raise_mysql_exception(self._data)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/err.py", line 143, in raise_mysql_exception
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi raise errorclass(errno, errval)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi pymysql.err.OperationalError: (1045, "Access denied for user 'glance'@'192.168.33.208' (using password: YES)")
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi The above exception was the direct cause of the following exception:
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi Traceback (most recent call last):
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/common/wsgi.py", line 1331, in __call__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi action_result = self.dispatch(self.controller, action,
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/common/wsgi.py", line 1370, in dispatch
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return method(*args, **kwargs)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/api/v2/images.py", line 540, in index
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi images = image_repo.list(marker=marker, limit=limit,
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/domain/proxy.py", line 89, in list
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi items = self.base.list(*args, **kwargs)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/domain/proxy.py", line 89, in list
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi items = self.base.list(*args, **kwargs)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/domain/proxy.py", line 89, in list
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi items = self.base.list(*args, **kwargs)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/db/__init__.py", line 85, in list
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi db_api_images = self.db_api.image_get_all(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/db/sqlalchemy/api.py", line 652, in image_get_all
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi query = _select_images_query(context,
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/db/sqlalchemy/api.py", line 566, in _select_images_query
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi session = get_session()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/db/sqlalchemy/api.py", line 100, in get_session
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi facade = _create_facade_lazily()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/glance/db/sqlalchemy/api.py", line 85, in _create_facade_lazily
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi _FACADE = session.EngineFacade.from_config(CONF)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 1366, in from_config
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return cls(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 1289, in __init__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._factory._start(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 504, in _start
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._setup_for_connection(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 529, in _setup_for_connection
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi engine = engines.create_engine(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/debtcollector/renames.py", line 43, in decorator
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return wrapped(*args, **kwargs)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/engines.py", line 211, in create_engine
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi test_conn = _test_connection(engine, max_retries, retry_interval)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/engines.py", line 386, in _test_connection
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return engine.connect()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 3204, in connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self._connection_cls(self, close_with_result=close_with_result)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 96, in __init__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi else engine.raw_connection()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 3283, in raw_connection
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self._wrap_pool_connect(self.pool.connect, _connection)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 3253, in _wrap_pool_connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi Connection._handle_dbapi_exception_noconnection(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 2098, in _handle_dbapi_exception_noconnection
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi util.raise_(newraise, with_traceback=exc_info[2], from_=e)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 207, in raise_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi raise exception
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 3250, in _wrap_pool_connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return fn()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 310, in connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _ConnectionFairy._checkout(self)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 868, in _checkout
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi fairy = _ConnectionRecord.checkout(pool)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 476, in checkout
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi rec = pool._do_get()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py", line 146, in _do_get
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._dec_overflow()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi compat.raise_(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 207, in raise_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi raise exception
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py", line 143, in _do_get
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self._create_connection()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 256, in _create_connection
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _ConnectionRecord(self)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 371, in __init__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self.__connect()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 666, in __connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi pool.logger.debug("Error on connect(): %s", e)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi compat.raise_(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 207, in raise_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi raise exception
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 661, in __connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self.dbapi_connection = connection = pool._invoke_creator(self)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/create.py", line 590, in connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return dialect.connect(*cargs, **cparams)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/sqlalchemy/engine/default.py", line 597, in connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self.dbapi.connect(*cargs, **cparams)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 353, in __init__
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self.connect()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 633, in connect
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._request_authentication()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 921, in _request_authentication
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi auth_packet = self._process_auth(plugin_name, auth_packet)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 959, in _process_auth
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _auth.sha256_password_auth(self, auth_packet)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/_auth.py", line 163, in sha256_password_auth
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _roundtrip(conn, data)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/_auth.py", line 120, in _roundtrip
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi pkt = conn._read_packet()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 725, in _read_packet
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi packet.raise_for_error()
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/protocol.py", line 221, in raise_for_error
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi err.raise_mysql_exception(self._data)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/python3/dist-packages/pymysql/err.py", line 143, in raise_mysql_exception
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi raise errorclass(errno, errval)
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (1045, "Access denied for user 'glance'@'192.168.33.208' (using password: YES)")
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi (Background on this error at: https://sqlalche.me/e/14/e3q8)
```

The symptom is similar to LP: #1922103, except that this happens after the installation.

Crashdumps and configs can be found here:
https://oil-jenkins.canonical.com/artifacts/8d75133c-2076-4fe2-888d-8f3773122ed3/index.html

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Please could you add :

* ubuntu version
* openstack version

Changed in charm-glance:
status: New → Incomplete
Revision history for this message
Bas de Bruijne (basdbruijne) wrote :

This was seen on yoga-focal. Looking at https://solutions.qa.canonical.com/bugs/bugs/bug/2008000, this is the only occurrence of this bug that we have seen so far. The priority can be low.

Changed in charm-glance:
status: Incomplete → Triaged
importance: Undecided → Low
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.