-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(blackbox_exporter): make capability setting idempotent #438
fix(blackbox_exporter): make capability setting idempotent #438
Conversation
@gardar Could this be the culprit task causing Prometheus always to restart, ref. #431 (comment)? |
This wouldn't case Prometheus to restart, only the blackbox_exporter. |
This needs a DCO sign-off. You can use |
Signed-off-by: Sverre H. Huseby <[email protected]>
d4950a9
to
a9bc6d7
Compare
…re this PR) Signed-off-by: Sverre H. Huseby <[email protected]>
171c1a5
to
da3b577
Compare
I noticed some idempotence checks failed. Before this PR, those tests would in effect have I just added PS: The reason it fails on Ubuntu 20.04 is that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The failing CI tests will be fixed with #440 |
Recently, the "Ensure blackbox exporter binary has cap_net_raw capability" task has reported a change for every pipeline run. This PR contains two changes to fix this behavior.
An old bug in
community.general.capabilities
, which is caused by naive comparison between requested state and observed state, will indicate a change if the operation is anything besides=
. This PR changes fromcap_net_raw+ep
tocap_net_raw=ep
to fix this.A recent PR set
changed_when: "'molecule-idempotence-notest' not in ansible_skip_tags"
, which translates tochanged_when: true
, causing this task to appear as changed no matter what. This PR removes this line.With these changes, our pipeline reports no change if the
cap_net_raw
is as wanted, and reports change otherwise.