ubuntu 22.04 caracal archive
latest version of all services like keystone nova neutron and masakari
config document with this https://docs.openstack.org/masakari-monitors/2024.1/reference/conf-file.html
/etc/masakarimonitors/masakarimonitors.conf
[api]
region = RegionOne
api_version = v3
api_interface = internal
auth_url = http://controller:5000/identity
user_domain_id = default
domain_name = default
project_name = service
username = masakari
password = MASAKARI_PASS
I got this log in masakari-hostmonitor.log file:
2024-05-15 09:36:25.045 5390 INFO masakarimonitors.hostmonitor.host_handler.handle_host [-] Corosync communication using 'ens33' is normal.
2024-05-15 09:36:25.122 5390 INFO masakarimonitors.hostmonitor.host_handler.handle_host [-] 'compute2' is 'offline' (current: 'offline').
2024-05-15 09:36:25.123 5390 ERROR masakarimonitors.hostmonitor.host_handler.handle_host [-] Failed to get params of ipmi RA.
2024-05-15 09:36:25.123 5390 INFO masakarimonitors.ha.masakari [-] Send a notification. {'notification': {'type': 'COMPUTE_HOST', 'hostname': 'compute2', 'generated_time': datetime.datetime(2024, 5, 15, 9, 36, 25, 123170), 'payload': {'event': 'STOPPED', 'cluster_status': 'OFFLINE', 'host_status': 'UNKNOWN'}}}
2024-05-15 09:36:25.147 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:36:35.169 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:36:45.192 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:36:55.214 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:37:05.236 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:37:15.257 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:37:25.280 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:37:35.302 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:37:45.464 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:37:55.487 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:38:05.510 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:38:15.531 5390 WARNING masakarimonitors.ha.masakari [-] Retry sending a notification. (Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped): keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari [-] Exception caught: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped: keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari Traceback (most recent call last):
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python3.10/dist-packages/masakarimonitors/ha/masakari.py", line 66, in send_notification
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari response = self.masakari_client.create_notification(
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python3.10/dist-packages/masakarimonitors/ha/masakari.py", line 35, in masakari_client
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari self._masakari_client = self._make_client()
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/local/lib/python3.10/dist-packages/masakarimonitors/ha/masakari.py", line 46, in _make_client
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari return conn.instance_ha
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/lib/python3/dist-packages/openstack/service_description.py", line 89, in __get__
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari proxy = self._make_proxy(instance)
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/lib/python3/dist-packages/openstack/service_description.py", line 289, in _make_proxy
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari found_version = temp_adapter.get_api_major_version()
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 352, in get_api_major_version
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari return self.session.get_api_major_version(auth or self.auth, **kwargs)
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 1289, in get_api_major_version
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari return auth.get_api_major_version(self, **kwargs)
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py", line 497, in get_api_major_version
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari data = get_endpoint_data(discover_versions=discover_versions)
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py", line 268, in get_endpoint_data
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari service_catalog = self.get_access(session).service_catalog
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py", line 131, in get_access
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari self.auth_ref = self.get_auth_ref(session)
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/lib/python3/dist-packages/keystoneauth1/identity/generic/base.py", line 205, in get_auth_ref
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari return self._plugin.get_auth_ref(session, **kwargs)
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari File "/usr/lib/python3/dist-packages/keystoneauth1/identity/v3/base.py", line 141, in get_auth_ref
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari raise exceptions.AuthorizationFailure(
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari keystoneauth1.exceptions.auth.AuthorizationFailure: Authentication cannot be scoped to multiple targets. Pick one of: project, domain, trust, system or unscoped
2024-05-15 09:38:25.551 5390 ERROR masakarimonitors.ha.masakari
2024-05-15 09:39:30.730 5390 WARNING masakarimonitors.hostmonitor.host_handler.handle_host [-] Corosync communication using 'ens33' is failed.: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
2024-05-15 09:39:30.731 5390 ERROR masakarimonitors.hostmonitor.host_handler.handle_host [-] Corosync communication is failed.
2024-05-15 09:40:00.811 5390 INFO masakarimonitors.hostmonitor.host_handler.handle_host [-] 'compute2' is 'offline' (current: 'offline').
in masakarimonitor s.conf
[api]
user_domain_name = Default
this solution for auth error