Glance api fails with Internal Server Error: Access denied for user 'glance'@'<IP>'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Glance Charm |
Triaged
|
Low
|
Unassigned |
Bug Description
Testrun https:/
```
2023-02-21-09:44:02 keystoneauth.
Traceback (most recent call last):
File "/usr/local/
load_
File "/home/
sys.
File "/home/
opts.func(opts)
File "/home/
self.
File "/home/
build_
File "/home/
layer.
File "/home/
validator.run()
File "/home/
self.pre_run()
File "/home/
self.
File "/home/
self.
File "/home/
tempest_status = self.configure_
File "/home/
context = self.get_context()
File "/home/
img_id = get_image_
File "/home/
for image in conn.image.
File "/usr/lib/
exceptions.
File "/usr/lib/
raise cls(
openstack.
```
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/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _ConnectionFair
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi fairy = _ConnectionReco
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._dec_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self._create_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _ConnectionReco
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi pool.logger.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self.dbapi_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return dialect.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self.dbapi.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._request_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi auth_packet = self._process_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _auth.sha256_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi packet.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi err.raise_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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.
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi action_result = self.dispatch(
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi images = image_repo.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi items = self.base.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi items = self.base.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi items = self.base.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi db_api_images = self.db_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi query = _select_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi facade = _create_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi _FACADE = session.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._factory.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._setup_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi engine = engines.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi test_conn = _test_connectio
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self._connectio
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi else engine.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self._wrap_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi Connection.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi util.raise_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _ConnectionFair
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi fairy = _ConnectionReco
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._dec_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self._create_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _ConnectionReco
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi pool.logger.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self.dbapi_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return dialect.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return self.dbapi.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi self._request_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi auth_packet = self._process_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi return _auth.sha256_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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/
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/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi packet.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi err.raise_
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi File "/usr/lib/
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.
2023-02-21 09:44:02.505 157120 ERROR glance.common.wsgi (Background on this error at: https:/
```
The symptom is similar to LP: #1922103, except that this happens after the installation.
Crashdumps and configs can be found here:
https:/
Changed in charm-glance: | |
status: | Incomplete → Triaged |
importance: | Undecided → Low |
Please could you add :
* ubuntu version
* openstack version