Install hook fails with error `Ansible playbook failed`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Elasticsearch Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
To reproduce,
```
juju deploy elasticsearch
```
The install hook will fail with the following logs in unit's /var/log/juju:
2023-03-28 11:07:58 ERROR unit.elasticsea
2023-03-28 11:07:58 ERROR unit.elasticsea
config file = /etc/ansible/
configured module search path = ['/root/
ansible python module location = /usr/lib/
executable location = /usr/bin/
python version = 3.8.10 (default, Mar 13 2023, 10:26:41) [GCC 9.4.0]
Using /etc/ansible/
host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin
statically imported: /var/lib/
statically imported: /var/lib/
statically imported: /var/lib/
PLAYBOOK: playbook.yaml *******
1 plays in playbook.yaml
PLAY [localhost] *******
TASK [Gathering Facts] *******
task path: /var/lib/
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.
<localhost> Attempting python interpreter discovery
<localhost> EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/
<localhost> EXEC /bin/sh -c '/usr/bin/python3 && sleep 0'
Using module file /usr/lib/
<localhost> PUT /root/.
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /root/.
<localhost> EXEC /bin/sh -c 'rm -f -r /root/.
ok: [localhost]
Changed in charm-elasticsearch: | |
status: | New → Invalid |