[kolla-ansible][wallaby][masakari] - Instance HA is not working [ERROR] - Host with name <xxxx> could not be found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari-monitors |
New
|
Undecided
|
Unassigned |
Bug Description
* Configured Maskari on kolla-ansible
```
(venv) root@09a465c6cb
ansible 2.10.17
config file = /etc/ansible/
configured module search path = ['/root/
ansible python module location = /root/templates
executable location = /root/templates
python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
(venv) root@09a465c6cb
```
```
venv) root@09a465c6cb
### Masakari
enable_masakari: "yes"
enable_
(venv) root@09a465c6cb
```
* Ran the deploy
```
kolla-ansible -i /root/templates
```
* Container are running on both control and compute node.
```
(venv) root@09a465c6cb
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
192.168.122.92 | CHANGED | rc=0 >>
22e7467e0b39 kolla/centos-
32f317ea486a kolla/centos-
166f9a9d3a74 kolla/centos-
192.168.122.61 | CHANGED | rc=0 >>
e48591f9328a kolla/centos-
548256891d39 kolla/centos-
45858f2fd020 kolla/centos-
192.168.122.67 | CHANGED | rc=0 >>
76d72c44175e kolla/centos-
dd170de0e235 kolla/centos-
13b674758c01 kolla/centos-
(venv) root@09a465c6cb30:
```
```
(venv) root@09a465c6cb
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
192.168.122.76 | CHANGED | rc=0 >>
a85f569112c3 kolla/centos-
192.168.122.68 | CHANGED | rc=0 >>
3d82da299042 kolla/centos-
192.168.122.87 | CHANGED | rc=0 >>
b2553ccfe8c8 kolla/centos-
(venv) root@09a465c6cb
```
* Pacemaker is also running well.
```
Cluster Summary:
* Stack: corosync
* Current DC: punit-infra-node-1 (version 2.1.4-5.
* Last updated: Wed Sep 28 14:01:38 2022
* Last change: Wed Sep 28 14:01:35 2022 by root via cibadmin on punit-infra-node-0
* 6 nodes configured
* 3 resource instances configured
Node List:
* Online: [ punit-infra-node-0 punit-infra-node-1 punit-infra-node-2 ]
* RemoteOnline: [ punit-compute-
Active Resources:
* punit-compute-
* punit-compute-
* punit-compute-
```
* Launched instance. ### already set ``--property HA_Enabled=True``
```
(venv) root@09a465c6cb
+------
| Field | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| addresses | private=2.2.2.145 |
| config_drive | |
| created | 2022-09-
| flavor | m1.med (7162050e-
| hostId | b53f514659a9536
| id | 835fe77f-
| image | centos7 (d6714905-
| key_name | None |
| name | centos-
| progress | 0 |
| project_id | 0ac5ebe03752463
| properties | HA_Enabled='True' |
| security_groups | name='secgroup1' |
| status | ACTIVE |
| updated | 2022-09-
| user_id | 705da7af68e6453
| volumes_attached | |
+------
```
* On compute node forcefully crashed the VM,
```
(nova-libvirt)
Id Name State
-------
6 instance-0000000c running
(nova-libvirt)
```
* Instance shutdown and didnt not migrated to other node or did not started.
++++++
ERROR:
++++++
```
2022-09-28 16:14:41.276 7 WARNING masakarimonitor
```
```
(venv) root@09a465c6cb
| cefe25db-
| 9ca98abe-
| fe1d68b4-
(venv) root@09a465c6cb
```
* Tried to set host and hostname manually did not worked.
```
[root@punit-
[DEFAULT]
debug = true
log_dir = /var/log/
host = punit-compute-
[api]
region = RegionOne
auth_url = http://
user_domain_id = default
project_name = service
project_domain_id = default
username = masakari
password = 65JaR623pXSk6Vh
cafile =
api_interface = internal
[libvirt]
connection_uri = qemu+tcp:
[root@punit-
```
++++++++++++
Expectation:
++++++++++++
* Masakari should gets to work restarting the service and up the VM:
* Any help would be appreciated.
Hi Matthew,
THanks for the reply, Can you be more specfific, where do I need to change that, Any example. please
For Masakari and HACluster to work properly, the hostnames used
in HACluster need to match with the hostnames used in Nova.