Skip to content
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

Stop remediation when node not found #138

Conversation

mshitrit
Copy link
Member

@mshitrit mshitrit commented Aug 3, 2023

ECOPROJECT-1492

Incorrect Status Conditions in case non existed node in Remediation CR .
When SNR is created for a non existing node Processing condition is True and Reason is RemediationStarted.
Expected values are processing = false, succeeded = false with reason NodeNotFound.

Signed-off-by: Michael Shitrit <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 3, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@mshitrit
Copy link
Member Author

mshitrit commented Aug 3, 2023

/test ?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 3, 2023

@mshitrit: The following commands are available to trigger required jobs:

  • /test 4.11-ci-index-self-node-remediation-bundle
  • /test 4.11-images
  • /test 4.11-openshift-e2e
  • /test 4.11-test
  • /test 4.12-ci-index-self-node-remediation-bundle
  • /test 4.12-images
  • /test 4.12-openshift-e2e
  • /test 4.12-test
  • /test 4.13-ci-index-self-node-remediation-bundle
  • /test 4.13-images
  • /test 4.13-openshift-e2e
  • /test 4.13-test
  • /test 4.14-ci-index-self-node-remediation-bundle
  • /test 4.14-images
  • /test 4.14-openshift-e2e
  • /test 4.14-test

Use /test all to run all jobs.

In response to this:

/test ?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@mshitrit
Copy link
Member Author

mshitrit commented Aug 3, 2023

/test 4.12-openshift-e2e

@mshitrit mshitrit changed the title Stop remediation when node not found [WIP] Stop remediation when node not found Aug 3, 2023
@mshitrit mshitrit changed the title [WIP] Stop remediation when node not found Stop remediation when node not found Aug 3, 2023
@clobrano
Copy link
Contributor

clobrano commented Aug 7, 2023

/lgtm

Giving a chance to get more feedbacks, feel free to unhold
/hold

@openshift-ci openshift-ci bot added the lgtm label Aug 7, 2023
@mshitrit mshitrit marked this pull request as ready for review August 7, 2023 12:00
@openshift-ci openshift-ci bot requested review from razo7 and slintes August 7, 2023 12:00
@mshitrit
Copy link
Member Author

mshitrit commented Aug 8, 2023

/retest

remediationTerminatedByNHC processingChangeReason = "RemediationStoppedByNHC"
remediationFinished processingChangeReason = "RemediationFinished"
remediationStarted processingChangeReason = "RemediationStarted"
remediationTerminatedByNHC processingChangeReason = "RemediationStoppedByNHC"
Copy link
Member

Choose a reason for hiding this comment

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

NIT: I would follow the pattern of the const name match its value by updating the const name to be remediationStoppedByNHC

Copy link
Member

Choose a reason for hiding this comment

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

and NHC is signalling a timeout actually, not stopping or terminating anything 😉

Copy link
Member

Choose a reason for hiding this comment

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

Too many verbs for one action :D

@razo7
Copy link
Member

razo7 commented Aug 14, 2023

NIT: Whenever we use verifyTypeConditions (in the UT file) the expected reason is explicitly written. Why not use the const from selfnoderemediation_controller.go -> Use RemediationStarted const instead of "RemediationStarted"

@slintes
Copy link
Member

slintes commented Aug 15, 2023

NIT: Whenever we use verifyTypeConditions (in the UT file) the expected reason is explicitly written. Why not use the const from selfnoderemediation_controller.go -> Use RemediationStarted const instead of "RemediationStarted"

when you reuse the same const, you don't detect typos in const values

@openshift-ci openshift-ci bot removed the lgtm label Aug 27, 2023
Signed-off-by: Michael Shitrit <[email protected]>
@mshitrit mshitrit force-pushed the stop-remediation-when-node-not-found branch from 56cf0be to ee5818d Compare August 27, 2023 11:13
@mshitrit
Copy link
Member Author

/retest

2 similar comments
@mshitrit
Copy link
Member Author

/retest

@mshitrit
Copy link
Member Author

/retest

@openshift-ci openshift-ci bot added the lgtm label Aug 29, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 29, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mshitrit, slintes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mshitrit
Copy link
Member Author

/unhold

@openshift-merge-robot openshift-merge-robot merged commit a6365cb into medik8s:main Aug 29, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants