template for elasticsearch.yaml injects _site_ which is causing elasticsearch to fail to start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Elasticsearch Charm |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
After performing the steps and resolving the issue mentioned in bug https:/
Elasticsearch still fails to start with the error:
---
org.elasticsear
---
This is running on a KVM host and is clustered as part of the standard foundation cloud build ELK stack.
The peer-relation-join hook is explictly what is failing. With ust 1 unit it runs fine, but adding the peer, the playbook.yaml is run and /etc/elasticsea
After several attempts of troubleshooting and various combinations, if we remove the _site_ piece from that line, the service starts fine Wethen changed the template in /var/lib/
Now the relation joins just fine and the service starts up.
elasticsearch-32 charm from charmstore
using the 6.x apt repo
bionic
Changed in charm-elasticsearch: | |
status: | Triaged → Won't Fix |
I encountered this issue again (same customer as Jeff).
It was working previously and then when I imported all new, stable charm versions, it stopped working. This site is an air-gapped deployment and all the charms are local copies.
I removed _site_ from the elasticsearch.yml template and this didn't fix the problem. What looks like is happening is that each unit forms its own cluster and the discovery is not finding each other.
Then I checked the old charm to see if there were any changes and found this for the bind_host:
network. bind_host: ["local", {{ unit_private_ address }}]
After changing the template in the newly imported charm to this, it worked.