test: check for failed rhcd service due to el8 bug#280
Merged
Conversation
Due to https://access.redhat.com/solutions/7106551 the test will sometimes fail on EL8 when disabling remediation. Add a check to see if the service has stopped with a failure. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
Reviewer's GuideUpdates the Ansible insights remediation tests to log service facts for yggdrasil/rhcd and to tolerate a specific EL8 bug where stopping the remediation service can leave it in a failed state instead of disabled. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The
no_logparameter on theGet service_factstasks appears to be indented as if it were a module argument; it should be at the same level asservice_factsso Ansible treats it as a task-level attribute. - You now have nearly identical
Get service_facts+ debug blocks for the enabled and disabled checks; consider extracting this into a reusable task (e.g., viainclude_taskswith variables) to avoid duplication and keep future changes to the service lookup logic in one place.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `no_log` parameter on the `Get service_facts` tasks appears to be indented as if it were a module argument; it should be at the same level as `service_facts` so Ansible treats it as a task-level attribute.
- You now have nearly identical `Get service_facts` + debug blocks for the enabled and disabled checks; consider extracting this into a reusable task (e.g., via `include_tasks` with variables) to avoid duplication and keep future changes to the service lookup logic in one place.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Contributor
Author
|
[citest] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Due to https://access.redhat.com/solutions/7106551 the test will sometimes
fail on EL8 when disabling remediation. Add a check to see if the service
has stopped with a failure.
Signed-off-by: Rich Megginson rmeggins@redhat.com
Summary by Sourcery
Handle intermittent EL8 remediation shutdown failures in insights remediation tests by relaxing service status assertions and adding service status debugging.
Bug Fixes:
Tests: