aodh-api in openstack victoria doesn't work on ubuntu 20.04 TLS

Asked by Yu Wei on 2021-04-08

Hi,
Deployed openstack Victoria on ubuntu 20.04 TLS.
Then installed aodh by following document https://docs.openstack.org/aodh/victoria/install/install-ubuntu.html.
Then tried command `aodh alram list` and got following errors from /var/log/apache2/aodh_error.log.

```
2021-04-07 09:12:07.082120 2021-04-07 09:12:07.081 1740925 WARNING stevedore.named [-] can not find : {b''}\x1b[00m
2021-04-07 09:12:07.082208 mod_wsgi (pid=1740925): Failed to exec Python script file '/usr/share/aodh/app.wsgi'.
2021-04-07 09:12:07.082239 mod_wsgi (pid=1740925): Exception occurred processing WSGI script '/usr/share/aodh/app.wsgi'.
2021-04-07 09:12:07.084186 Traceback (most recent call last):
2021-04-07 09:12:07.084277 File "/usr/share/aodh/app.wsgi", line 23, in <module>
2021-04-07 09:12:07.084284 application = app.build_wsgi_app(argv=[])
2021-04-07 09:12:07.084295 File "/usr/lib/python3/dist-packages/aodh/api/app.py", line 87, in build_wsgi_app
2021-04-07 09:12:07.084301 return load_app(service.prepare_service(argv=argv))
2021-04-07 09:12:07.084312 File "/usr/lib/python3/dist-packages/aodh/api/app.py", line 72, in load_app
2021-04-07 09:12:07.084318 return deploy.loadapp("config:" + cfg_path,
2021-04-07 09:12:07.084329 File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 253, in loadapp
2021-04-07 09:12:07.084334 return loadobj(APP, uri, name=name, **kw)
2021-04-07 09:12:07.084345 File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 278, in loadobj
2021-04-07 09:12:07.084351 return context.create()
2021-04-07 09:12:07.084362 File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 715, in create
2021-04-07 09:12:07.084367 return self.object_type.invoke(self)
2021-04-07 09:12:07.084378 File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 148, in invoke
2021-04-07 09:12:07.084384 return fix_call(context.object,
2021-04-07 09:12:07.084394 File "/usr/lib/python3/dist-packages/paste/deploy/util.py", line 55, in fix_call
2021-04-07 09:12:07.084400 val = callable(*args, **kw)
2021-04-07 09:12:07.084411 File "/usr/lib/python3/dist-packages/paste/urlmap.py", line 31, in urlmap_factory
2021-04-07 09:12:07.084417 app = loader.get_app(app_name, global_conf=global_conf)
2021-04-07 09:12:07.084428 File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 355, in get_app
2021-04-07 09:12:07.084606 return self.app_context(
2021-04-07 09:12:07.084626 File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 715, in create
2021-04-07 09:12:07.084632 return self.object_type.invoke(self)
2021-04-07 09:12:07.084643 File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 209, in invoke
2021-04-07 09:12:07.084649 app = context.app_context.create()
2021-04-07 09:12:07.084682 File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 715, in create
2021-04-07 09:12:07.084687 return self.object_type.invoke(self)
2021-04-07 09:12:07.084698 File "/usr/lib/python3/dist-packages/paste/deploy/loadwsgi.py", line 152, in invoke
2021-04-07 09:12:07.084703 return fix_call(context.object, context.global_conf, **context.local_conf)
2021-04-07 09:12:07.084713 File "/usr/lib/python3/dist-packages/paste/deploy/util.py", line 55, in fix_call
2021-04-07 09:12:07.084719 val = callable(*args, **kw)
2021-04-07 09:12:07.084737 File "/usr/lib/python3/dist-packages/aodh/api/app.py", line 83, in app_factory
2021-04-07 09:12:07.084743 return setup_app(root=local_conf.get('root'), **appconfig)
2021-04-07 09:12:07.084753 File "/usr/lib/python3/dist-packages/aodh/api/app.py", line 46, in setup_app
2021-04-07 09:12:07.084758 storage.get_connection_from_config(conf)),
2021-04-07 09:12:07.084769 File "/usr/lib/python3/dist-packages/aodh/storage/__init__.py", line 62, in get_connection_from_config
2021-04-07 09:12:07.084774 mgr = driver.DriverManager(_NAMESPACE, connection_scheme)
2021-04-07 09:12:07.084784 File "/usr/lib/python3/dist-packages/stevedore/driver.py", line 53, in __init__
2021-04-07 09:12:07.084790 super(DriverManager, self).__init__(
2021-04-07 09:12:07.084800 File "/usr/lib/python3/dist-packages/stevedore/named.py", line 89, in __init__
2021-04-07 09:12:07.084805 self._init_plugins(extensions)
2021-04-07 09:12:07.084815 File "/usr/lib/python3/dist-packages/stevedore/driver.py", line 112, in _init_plugins
2021-04-07 09:12:07.084821 raise NoMatches('No %r driver found, looking for %r' %
2021-04-07 09:12:07.084842 stevedore.exception.NoMatches: No 'aodh.storage' driver found, looking for b''
```

It seems that /etc/aodh/aodh.conf was not read by aodh-api. Other aodh related services are working well and aodh-dbsyncs also works.

Any advice to debug or workaround this problem?

Thanks,
Jared

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu aodh Edit question
Assignee:
No assignee Edit question
Last query:
2021-04-08
Last reply:
2021-04-08

Can you help with this problem?

Provide an answer of your own, or ask Yu Wei for more information if necessary.

To post a message you must log in.