charm-ceph-mon:feature/grafana-agent-integration

Last commit made on 2024-04-23
Get this branch:
git clone -b feature/grafana-agent-integration https://git.launchpad.net/charm-ceph-mon

Branch merges

Branch information

Name:
feature/grafana-agent-integration
Repository:
lp:charm-ceph-mon

Recent commits

90d8d4d... by Luciano Lo Giudice

Improve MDS key rotation

Instead of adding a new field that also requires deleting it
when it's not needed, simply reset the already-passed key and
let ceph-fs handle the rest.

Change-Id: I5a9adff9777ab1441ea50eb881a5334a69b087d2

27c01fe... by Luciano Lo Giudice

Implement key rotation for MDS daemons

This patchset implements key rotation for MDS daemons, which
essentially involves the ceph-fs charm. It works in a very
similar fashion to RGW units.

Change-Id: I06570d9602137b804af56e358cabf552d6f1e9fd

446d17f... by Luciano Lo Giudice

Implement key rotation for RadosGW daemons

This patchset implements the needed functionality on the ceph-mon
charm to rotate the key of a specified RadosGW daemon.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1195
Change-Id: I6dbbf6ca1292a34f5d3b4ff8f2966c8b77f53f48

0572504... by Luciano Lo Giudice

Implement the 'rotate-key' action for managers

This patchset implements key rotation for managers only. The user
can specified either the full entity name (i.e: 'mgr.XXXX') or
simply 'mgr', which stands for the local manager.

After the entity's directory is located, a new pending key is
generated, the keyring file is mutated to include the new key and
then replaced in situ. Lastly, the manager service is restarted.

Note that Ceph only has one active manager at a certain point,
so it only makes sense to call this action on _every_ mon unit.

Change-Id: Ie24b3f30922fa5be6641e37635440891614539d5
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/1195

3805321... by Luciano Lo Giudice

Implement the 'list-entities' action

This action is the first step needed to implement key rotation
in charmed Ceph.

Change-Id: I59012621a0d9a2a1197fd7f8f0155cf85a37a056

945c958... by Zuul <email address hidden>

Merge "Don't expect a static job name"

fb32621... by Nobuto Murata

Don't expect a static job name

A job name passed via the prometheus_scrape library doesn't end up as a
static job name in the prometheus configuration file in the COS world
even though COS expects a fixed string. Practically we cannot have a
static job name like job=ceph in any of the alert rules in COS since the
charms will convert the string "ceph" into:

> juju_MODELNAME_ID_APPNAME_prometheus_scrape_JOBNAME(ceph)-N

Let's give up the possibility of the static job name and use "up{}" so
it will be annotated with the model name/ID, etc. without any specific
job related condition. It will break the alert rules when one unit have
more than one scraping endpoint because there will be no way to
distinguish multiple scraping jobs. Ceph MON only has one prometheus
endpoint for the time being so this change shouldn't cause an immediate
issue. Overall, it's not ideal but at least better than the current
status, which is an alert error out of the box.

The following alert rule:
> up{} == 0
will be converted and annotated as:
> up{juju_application="ceph-mon",juju_model="ceph",juju_model_uuid="UUID"} == 0

Closes-Bug: #2044062

Change-Id: I0df8bc0238349b5f03179dfb8f4da95da48140c7

762ad83... by Peter Sabaini

Fix: defer cos-prometheus for bootstrap

If a COS prometheus changed event is processed but bootstrap hasn't
completed yet, we need to retry the event at a later time.

Closes-bug: #2042891

Change-Id: I3d274c09522f9d7ef56bc66f68d8488150c125d8

35f9af8... by Peter Sabaini

Fixup: multisite alert rule help texts

Change-Id: I558804c8bbd162a15bd97a023ac612d32fd96b02

6ae78a6... by Zuul <email address hidden>

Merge "Add alerting rules for RGW multisite deployments"