Skip to content

fix: sort redfish_exporter_targets to avoid config changes#2183

Merged
priteau merged 1 commit intostackhpc/2025.1from
redfish-sort
Feb 27, 2026
Merged

fix: sort redfish_exporter_targets to avoid config changes#2183
priteau merged 1 commit intostackhpc/2025.1from
redfish-sort

Conversation

@jackhodgkiss
Copy link
Contributor

When templating redfish_exporter_targets in 60-redfish.yml the groups are written randomly and as a result can cause unnecessary updates to the templated file which can lead to reboots of prometheus as well as polluting configuration diff.

When templating `redfish_exporter_targets` in `60-redfish.yml` the
groups are written randomly and as a result can cause unnecessary
updates to the templated file which can lead to reboots of prometheus
as well as polluting configuration diff.

Signed-off-by: Jack Hodgkiss <jack@stackhpc.com>
@jackhodgkiss jackhodgkiss requested a review from a team as a code owner February 27, 2026 11:08
Copy link
Member

@dougszumski dougszumski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks Jack!

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request addresses a non-idempotency issue in 60-redfish.yml by sorting the redfish_exporter_targets group, which prevents unnecessary configuration changes. The change is correct. A similar idempotency issue exists in etc/kayobe/kolla/inventory/group_vars/prometheus, where groups.get() is used without a sort filter to build the prometheus_blackbox_exporter_endpoints_custom variable. This can result in a non-deterministic order of endpoints. Applying the sort filter to the loops in that file would resolve this and improve overall configuration stability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants