Masakari with Consul attribute error

Bug #2058651 reported by James Law
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
masakari
New
Undecided
Unassigned

Bug Description

We are running masakari with consul, but we are getting the below

2024-03-21 13:39:30.097 7 ERROR masakarimonitors.hostmonitor.consul_check.manager [-] Exception when host-monitor by consul: 'NoneType' object has no attribute 'get_health': AttributeError: 'NoneType' object has no attribute 'get_health'
2024-03-21 13:39:30.097 7 ERROR masakarimonitors.hostmonitor.consul_check.manager Traceback (most recent call last):
2024-03-21 13:39:30.097 7 ERROR masakarimonitors.hostmonitor.consul_check.manager File "/var/lib/kolla/venv/lib/python3.10/site-packages/masakarimonitors/hostmonitor/consul_check/manager.py", line 188, in monitor_hosts
2024-03-21 13:39:30.097 7 ERROR masakarimonitors.hostmonitor.consul_check.manager self.update_monitoring_data()
2024-03-21 13:39:30.097 7 ERROR masakarimonitors.hostmonitor.consul_check.manager File "/var/lib/kolla/venv/lib/python3.10/site-packages/masakarimonitors/hostmonitor/consul_check/manager.py", line 107, in update_monitoring_data
2024-03-21 13:39:30.097 7 ERROR masakarimonitors.hostmonitor.consul_check.manager cluster_health = self.consul_manager.get_health(self.sequence)
2024-03-21 13:39:30.097 7 ERROR masakarimonitors.hostmonitor.consul_check.manager File "/var/lib/kolla/venv/lib/python3.10/site-packages/masakarimonitors/hostmonitor/consul_check/consul_helper.py", line 75, in get_health
2024-03-21 13:39:30.097 7 ERROR masakarimonitors.hostmonitor.consul_check.manager agent_health = consul_agent.get_health()
2024-03-21 13:39:30.097 7 ERROR masakarimonitors.hostmonitor.consul_check.manager AttributeError: 'NoneType' object has no attribute 'get_health'
2024-03-21 13:39:30.097 7 ERROR masakarimonitors.hostmonitor.consul_check.manager

consul is configure correctly and working
masakari has been configured to use consul

Regards

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.