grafana agent config not rendered completely

Bug #2052140 reported by Nishant Dash
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kubernetes Control Plane Charm
Fix Released
High
Mateo Florido

Bug Description

when deployed charmed k8s control plane, we notice that after adding the grafana-agent and k-c-p integration, grafana agent gets properly rendered only on some units. (sometimes 1/3, or sometimes 2/3).

The mterics config section is missing a lot information. The authorization section is not present. The charm seems to only do [1] once? Or rather, there no clear retry logic for that/ So if it ever gets an invalid token from cos or cos token isnt ready, it never gets to a point where it seems to retry rendering that config.

Workaround is to just remove and re-add the integration until all 3 k-c-p unit's grafana-agent.yaml are configured.

[1] https://github.com/charmed-kubernetes/charm-kubernetes-control-plane/blob/aae31b5f02d0a5761d5b14b472b01381efa63edb/src/charm.py#L58

Revision history for this message
Mateo Florido (mateoflorido) wrote :
Changed in charm-kubernetes-master:
assignee: nobody → Mateo Florido (mateoflorido)
importance: Undecided → High
status: New → Fix Committed
Changed in charm-kubernetes-master:
milestone: none → 1.29+ck1
tags: added: backport-needed
Changed in charm-kubernetes-master:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.