Masakari hostmonitor fails beacuse of missing config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
New
|
Undecided
|
Unassigned |
Bug Description
**Bug Report**
What happened:
Hi,
We are trying to implement masakari with hacluster.
After installation and testing the Compute Node HA, there exist ERROR logs on controllers:
"/var/log/
-------
2022-01-31 17:21:51.079 954 INFO masakari.
on thrown: Notification received from host r2-osp-
2022-01-31 17:22:46.351 953 ERROR masakari.
ected exception in API method: masakari.
Traceback (most recent call last):
File "/var/lib/
self.
File "/var/lib/
backend = backends.
File "/var/lib/
backend, conf = misc.extract_
File "/var/lib/
maybe_uri = conf[conf_key]
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/
res = self.dispatcher
File "/var/lib/
return self._do_
File "/var/lib/
result = func(ctxt, **new_args)
File "/var/lib/
raise exception.
-------
This issue has similarities with https:/
We have followed that case and resolved this issue after overriding the "masakari.conf" like below:
/etc/kolla/
-------
[DEFAULT]
notification_driver = taskflow_driver
[taskflow]
connection = mysql+pymysql:
-------
We had to add "notification_
We also had to remove all masakari tables from DB and re-run the "$ masakari-manage db sync" command from the "masakari_api" container.
After that we got the "flowdetails" and other missing DB tables and everything worked.
What you expected to happen: Masakari Installation should work out of the box.
How to reproduce it (minimal and precise): Tried to install hacluster and masakari.
**Environment**:
* OS (e.g. from /etc/os-release): Ubuntu 20.04.2 LTS
* Kernel (e.g. `uname -a`): Linux 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
* Docker version if applicable (e.g. `docker version`): 20.10.7
* Kolla-Ansible version (e.g. `git head or tag or stable branch` or pip package version if using release): pip installation, kolla-ansible=
* Docker image Install type (source/binary): source
* Docker image distribution: DockerHub Images
There also exist a bug on Masakari: https:/ /bugs.launchpad .net/masakari/ +bug/1882656