-
Notifications
You must be signed in to change notification settings - Fork 24
fix: idempotence issue when binding fails to be added #196
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
Conversation
4b58797 to
bfe9bee
Compare
bfe9bee to
3ff4294
Compare
|
[citest] |
3ff4294 to
443fddb
Compare
|
[citest] |
443fddb to
a2eaa12
Compare
richm
left a comment
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 - how will we test this to ensure idempotence?
@sergio-correia do you want to merge this now and work on testing later? |
|
@sergio-correia what should we do with this PR? |
17b161c to
6a5c5da
Compare
6a5c5da to
3f25326
Compare
|
for the otherwise, lgtm |
Sometimes, the role will not be able to add the required bindings, in which case it is expected to rollback and undo any change it has done. In certain cases, the rollback was not performed correctly, and caused idempotence issues. We fix that by performing a backup of the LUKS header before doing the operations, so that we can properly restore it in the case the operation cannot be completed successfully. Signed-off-by: Sergio Correia <[email protected]>
3f25326 to
5015473
Compare
Thanks for taking another look. I updated the vars to include |
The format is one package per line in alphanum order - so just add it in a line between
Yeah :-( working on it |
|
[citest] |
|
tests are failing because some test is not cleaning up after itself, causing the tests_bind_high_availability.yml to fail |
|
[citest] |
|
[citest] |
Co-authored-by: Richard Megginson <[email protected]>
|
[citest] |
Enhancement:
Fix idempotence issue when binding fails to be added
Reason:
Sometimes, the role will not be able to add the required bindings, in which case it is expected to rollback and undo any change it has done.
In certain cases, the rollback was not performed correctly, and caused idempotence issues. We fix that by performing a backup of the LUKS header before doing the operations, so that we can properly restore it in the case the operation cannot be completed successfully.
Result:
The role now performs correctly and maintains the idempotence property in the cases where the binding failed to be added.
Issue Tracker Tickets (Jira or BZ if any): https://issues.redhat.com/browse/RHEL-84891