OpenSearch services are restarted when no configuration change is made
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
kolla-ansible | Status tracked in Bobcat | |||||
Antelope |
Fix Committed
|
Medium
|
Sven Kieske | |||
Bobcat |
Fix Committed
|
Medium
|
Doug Szumski | |||
Yoga |
Fix Committed
|
Medium
|
Sven Kieske | |||
Zed |
Fix Committed
|
Medium
|
Sven Kieske |
Bug Description
When deploying current master (Rocky 9 host), I noticed that on consecutive runs OpenSearch services are restarted, even though no config change has been made. This is caused by the 'Check opensearch containers' task returning that opensearch-
```
ok: [controller0] => (item={'key': 'opensearch', 'value': {'container_name': 'opensearch', 'group': 'opensearch', 'enab
led': True, 'image': '192.168.
OPTS': '-Xms1g -Xmx1g -Dlog4j2.
es/', '/etc/localtime
mensions': {'ulimits': {'nofile': {'soft': 1048576, 'hard': 1048576}}}, 'healthcheck': {'interval': '30', 'retries': '3
', 'start_period': '5', 'test': ['CMD-SHELL', 'healthcheck_curl http://
: {'opensearch': {'enabled': True, 'mode': 'http', 'external': False, 'port': '9200', 'frontend_
ontlog-
changed: [controller0] => (item={'key': 'opensearch-
group': 'opensearch-
mage': '192.168.
ashboards/
mensions': {'ulimits': {'nofile': {'soft': 1048576, 'hard': 1048576}}}, 'healthcheck': {'interval': '30', 'retries': '3
', 'start_period': '5', 'test': ['CMD-SHELL', 'healthcheck_curl http://
: {'opensearch-
ch', 'auth_pass': 'foo'}, 'opensearch_
e': 'http', 'external': True, 'port': '5601', 'auth_user': 'opensearch', 'auth_pass': 'foo'}}}})
```
Then:
```
RUNNING HANDLER [opensearch : Restart opensearch container] *******
changed: [controller0]
RUNNING HANDLER [opensearch : Restart opensearch-
changed: [controller0]
```
Even if something /has/ changed with OpenSearch Dashboards, we shouldn't restart OpenSearch.
Changed in kolla-ansible: | |
assignee: | nobody → Doug Szumski (dszumski) |
Here's the root cause: /review. opendev. org/c/openstack /kolla- ansible/ +/889189
https:/
The remaining fix is to prevent both OpenSearch and OpenSearch Dashboards getting restarted, when a configuration change is only made to one of them.