When the bundle is deployed, prometheus is in blocked status (loading config failed) because:
error validating: yaml: unmarshal errors:
line 4: field name not found in type rulefmt.RuleNode
line 5: field rules not found in type rulefmt.RuleNode
...
Apparently, when cos tool validation synthesized a tempfile to disk, it created incorrect nesting:
(This PR was split out of #340.)
Issue
When the bundle is deployed, prometheus is in blocked status (loading config failed) because:
Apparently, when cos tool validation synthesized a tempfile to disk, it created incorrect nesting:
Note the double use of
name
andrules
.Solution
_exec
, so that.output
includes errors contentUsing these changes is demonstrated in https://github.com/canonical/cos-configuration-k8s-operator/pull/24.
Context
Load test failed to start after latest releases.
Testing Instructions
Deploy the bundle:
juju deploy --channel=edge cos-lite
Release Notes
Fix alert rule validation logic