~mertkirpici/charm-graylog:lp/2003795

Last commit made on 2023-01-26
Get this branch:
git clone -b lp/2003795 https://git.launchpad.net/~mertkirpici/charm-graylog
Only Mert Kirpici can upload to this branch. If you are Mert Kirpici please log in for upload directions.

Branch merges

Branch information

Name:
lp/2003795
Repository:
lp:~mertkirpici/charm-graylog

Recent commits

fac0de5... by Mert Kirpici

layer/graylog/api: dynamic import search path

The file lib/charms/layer/graylog/api.py is both imported by the graylog
charm and the nrpe charm. While running in the nrpe context, we need to
add the graylog charm's site-packages dir to the search path in order
for the import mechanism to work correctly.

Works-on: 2003795

Signed-off-by: Mert Kırpıcı <email address hidden>

694be91... by Marcus Boden

Password change will now be saved in application data.

The new password will be saved in application data and a password change
is only allowed on the leader. If the set-password action is run on a
non-leader, it returns an exception.

Closes-Bug: #2002390

Reviewed-on: https://code.launchpad.net/~marcusboden/charm-graylog/+git/charm-graylog/+merge/435947
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>
Reviewed-by: Erhan Sunar <email address hidden>
Reviewed-by: Ramesh Sattaru <email address hidden>

02aed75... by Marcus Boden

formatting and linting

427d18b... by Marcus Boden

Password change will now be saved in application data.

The new password will be saved in application data and a password change
is only allowed on the leader. If the set-password action is run on a
non-leader, it returns an exception.

505b0b9... by Chi Wai CHAN

Fix minor regression from previous commits.

Reviewed-on: https://code.launchpad.net/~raychan96/charm-graylog/+git/charm-graylog/+merge/435056
Reviewed-by: Eric Chen <email address hidden>
Reviewed-by: Ramesh Sattaru <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>
Reviewed-by: Erhan Sunar <email address hidden>

0f85bc4... by Chi Wai CHAN

Update the unit test to pass the health check when ES is in yellow status.

133fc80... by Chi Wai CHAN

Add ES application to waiting_apps list when not "es_available and es_ready".

e15cf99... by Chi Wai CHAN

Update ES health check: define both yellow and green state as "healthy", since single node ES cluster is also acceptable.

4f92d5b... by Chi Wai CHAN

This patch fixes #1970964 and #1835156 (the two are related).

Reviewed-on: https://code.launchpad.net/~raychan96/charm-graylog/+git/charm-graylog/+merge/434900
Reviewed-by: Eric Chen <email address hidden>
Reviewed-by: JamesLin <email address hidden>
Reviewed-by: 🤖 prod-jenkaas-bootstack <email address hidden>

c4365e4... by Chi Wai CHAN

Add back the simple retry logic in the request because sometimes request can failed temporarily.