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

Fix VA Deletion Check in E2E Testing #75

Closed
wants to merge 1 commit into from

Conversation

razo7
Copy link
Member

@razo7 razo7 commented Aug 14, 2023

Check with Consistently instead of Eventually and use offset

Check with Consistently instead of Eventually and use offset
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 14, 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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 14, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: razo7

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

@razo7 razo7 changed the title Fix VA deletion check in E2E testing Fix VA Deletion Check in E2E Testing Aug 14, 2023
@razo7
Copy link
Member Author

razo7 commented Aug 15, 2023

/test 4.13-openshift-e2e
/test 4.14-openshift-e2e

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 15, 2023

@razo7: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/4.14-openshift-e2e 6a8cb31 link true /test 4.14-openshift-e2e

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@@ -405,7 +405,7 @@ func wasNodeRebooted(nodeName string, nodeBootTimeBefore time.Time) {

// checkVaDeleted verifies if the va has already been deleted due to resource deletion
func checkVaDeleted(va *storagev1.VolumeAttachment) {
EventuallyWithOffset(1, func() bool {
ConsistentlyWithOffset(1, func() bool {
Copy link
Member

Choose a reason for hiding this comment

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

Why this change? For waiting until something happens, Eventually is the right tool 🤔

By("checking if old pod has been deleted")
checkPodDeleted(pod)

By("checking if old volume attachment has been deleted")
Copy link
Member

Choose a reason for hiding this comment

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

Why the change in order? AFAIK in a real world the pod won't be deleted before its related VA is deleted (that's why we delete the VA actually). So first checking the VA makes more sense to me.

@razo7
Copy link
Member Author

razo7 commented Oct 31, 2023

Closing the PR as it is not needed anymore:

  1. Marc's remarks are correct
  2. VA deletion by FAR could interfere with the process of detaching the VAs by kube-control-manager (Remove volumeAttachment deletion #102 ).

@razo7 razo7 closed this Oct 31, 2023
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.

2 participants