charm-elasticsearch:stable/20.05

Last commit made on 2020-05-22
Get this branch:
git clone -b stable/20.05 https://git.launchpad.net/charm-elasticsearch
Members of Llama (LMA) Charmers can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
stable/20.05
Repository:
lp:charm-elasticsearch

Recent commits

b41d566... by Xav Paice

change listen address to 0.0.0.0

Reviewed-on: https://code.launchpad.net/~xavpaice/charm-elasticsearch/+git/charm-elasticsearch/+merge/384414
Reviewed-by: Alvaro Uria <email address hidden>
Reviewed-by: Xiyue Wang <email address hidden>

79d19bd... by Xav Paice

change listen address to 0.0.0.0

ba0e53a... by Celia Wang

Reorder series to put focal as default for release 20.05

Reviewed-on: https://code.launchpad.net/~ziyiwang/charm-elasticsearch/+git/charm-elasticsearch/+merge/384316
Reviewed-by: Xav Paice <email address hidden>

04968a7... by Celia Wang <email address hidden>

Reorder series to put focal as default for release 20.05

Signed-off-by: Celia Wang <email address hidden>

5cdb843... by Joe Guo

ignore errors while killing gpg-agent

In the task to kill gpg-agent, it's possible that there is no gpg agent running.
So the task will fail and cause playbook to exit.

Ignore errors for this task, so playbook will continue even this task failed.

LP: #1864894

Reviewed-on: https://code.launchpad.net/~guoqiao/charm-elasticsearch/+git/charm-elasticsearch/+merge/381158
Reviewed-by: Jeremy Lounder <email address hidden>

de885cc... by Joe Guo

ignore errors while killing gpg-agent

In the task to kill gpg-agent, it's possible that there is no gpg agent running.
So the task will fail and cause playbook to exit.

Ignore errors for this task, so playbook will continue even this task failed.

LP: #1864894

Signed-off-by: Joe Guo <email address hidden>

dc6ec17... by Joe Guo

1. remove unneeded dependency to http module
2. switch Makefile to python3

LP: #1868241

Reviewed-on: https://code.launchpad.net/~guoqiao/charm-elasticsearch/+git/charm-elasticsearch/+merge/380943
Reviewed-by: Alvaro Uria <email address hidden>
Reviewed-by: Jose Guedez <email address hidden>

94c96fa... by Joe Guo

kill gpg-agent before adding gpg key

while adding key with apt_key, task may fail with:

    gpg: can't connect to the agent: IPC connect call failed

This is normally because a gpg-agent is already running, but current process can not connect to it.

According to `man gpg-agent`:
1. The agent is automatically started on demand by gpg, gpgsm, gpgconf, or gpg-connect-agent. Thus there is no reason to start it manually.
2. If you want to manually terminate the currently-running agent, you can safely do so with: gpgconf --kill gpg-agent

So it's safe to kill the agent before apt_key, to avoid potential gpg connection issue.

LP: #1864894

Reviewed-on: https://code.launchpad.net/~guoqiao/charm-elasticsearch/+git/charm-elasticsearch/+merge/380940
Reviewed-by: Jeremy Lounder <email address hidden>
Reviewed-by: David O Neill <email address hidden>

21e0dfb... by Joe Guo

Fix/Add nagios checks

The original code was trying to add a cluster health check with local ansible role `nrpe`, but it's not working properly since it doesn't pass required info to relation.

This patch bypass ansible and use python hook directly to add checks with minimal changes. So far 2 checks added:

1. check_elasticsearch_cluster_health
2. check_elasticsearch_systemd_service

More checks can be added by this strategy later.

LP: #1738078

Reviewed-on: https://code.launchpad.net/~guoqiao/charm-elasticsearch/+git/charm-elasticsearch/+merge/377614
Reviewed-by: Jeremy Lounder <email address hidden>
Reviewed-by: Peter Sabaini <email address hidden>
Reviewed-by: Jose Guedez <email address hidden>

9a41ed2... by Joe Guo

Makefile: switch to python3

Signed-off-by: Joe Guo <email address hidden>