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

Follow up for WFFC test suite adjustments #2633

Merged
merged 2 commits into from
Mar 21, 2023

Conversation

akalenyu
Copy link
Collaborator

@akalenyu akalenyu commented Mar 9, 2023

What this PR does / why we need it:
Previous PR does not make our test suite completely WFFC-friendly,
as it turns out more follow-ups were needed.
This continues the work in #2610

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

Release note:

NONE

@kubevirt-bot kubevirt-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Mar 9, 2023
@kubevirt-bot kubevirt-bot requested review from maya-r and mhenriks March 9, 2023 12:43
@awels
Copy link
Member

awels commented Mar 9, 2023

/lgtm
/approve

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 9, 2023
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: awels

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 9, 2023
@akalenyu
Copy link
Collaborator Author

akalenyu commented Mar 9, 2023

/hold

testing the changes

@kubevirt-bot kubevirt-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 9, 2023
@akalenyu akalenyu force-pushed the wffc-test-suite-fixes-2 branch from 9d832c6 to 30d8720 Compare March 9, 2023 15:26
@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 9, 2023
@akalenyu akalenyu force-pushed the wffc-test-suite-fixes-2 branch 4 times, most recently from e5edd1d to 000285b Compare March 13, 2023 11:15
Copy link
Collaborator

@alromeros alromeros left a comment

Choose a reason for hiding this comment

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

Nice!
/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 13, 2023
@akalenyu akalenyu force-pushed the wffc-test-suite-fixes-2 branch from 000285b to 02cdc10 Compare March 13, 2023 19:23
@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 13, 2023
Copy link
Contributor

@ShellyKa13 ShellyKa13 left a comment

Choose a reason for hiding this comment

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

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 14, 2023
@akalenyu akalenyu force-pushed the wffc-test-suite-fixes-2 branch from 02cdc10 to 2817f46 Compare March 14, 2023 13:04
@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 14, 2023
@@ -370,7 +370,6 @@ func (f *Framework) NewPodWithPVC(podName, cmd string, pvc *k8sv1.PersistentVolu
Spec: k8sv1.PodSpec{
// this may be causing an issue
TerminationGracePeriodSeconds: &[]int64{10}[0],
RestartPolicy: k8sv1.RestartPolicyNever,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason to remove this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I am trying to find out why we have it in the first place, seems to date back 5+ years
basically means verifier won't attempt to restart on transient errs

I have some tests where the verifier pod regularly hits an error without much context,
and does not recover from it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Changed to OnFailure so it only restarts if it exits with a return code other than 0
(default is Always - pod must always be running)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@alromeros @awels I put this change in a separate commit, think it deserves it.
I wanted to have your thoughts on this one as it is not trivial

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it makes perfect sense to change it to RestartPolicyOnFailure, but like you, I lack some context on why we had RestartPolicyNever before. If it's not breaking anything I'm for the change.

Copy link
Member

Choose a reason for hiding this comment

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

What transient errors are we thinking. we would like to know if the verifier pod errors (like maybe the file we are looking for doesn't exist). This would simply restart the failed command, which may or may not fail again depending on if the error is transient or a real issue. If we do this, we need to make sure there are some time limits on the commands we run in the verifier pod.

Copy link
Collaborator Author

@akalenyu akalenyu Mar 16, 2023

Choose a reason for hiding this comment

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

I am hitting errors in container startup (not in executing commands on it)
Seems to be related to quick recreation of the deleted verifier pod, but not sure, error does not say much,
the container just fails to spin up and doesn't retry.

Is there a reason to go with RestartPolicyNever? If you feel this is too offensive I will remove the second commit
and we can proceed with this PR without this change

Copy link
Member

Choose a reason for hiding this comment

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

We can try with the on failure policy, we will know if something breaks due to it, there is an overall suite timeout anyway.

@akalenyu akalenyu force-pushed the wffc-test-suite-fixes-2 branch from 2817f46 to 3f076f3 Compare March 14, 2023 13:56
@akalenyu
Copy link
Collaborator Author

/hold

testing the changes

Just a clarification, I am testing this change against an external cluster with LVM Storage

Previous PR does not make our test suite completely WFFC-friendly,
as it turns out more follow ups were needed.

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
This dates back a long time ago (5yrs), it seems that we may
want to restart on intermediate errs

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
@akalenyu akalenyu force-pushed the wffc-test-suite-fixes-2 branch from 3f076f3 to fc2eb5d Compare March 15, 2023 12:31
@akalenyu
Copy link
Collaborator Author

/hold cancel

@kubevirt-bot kubevirt-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 15, 2023
@awels
Copy link
Member

awels commented Mar 20, 2023

/test pull-containerized-data-importer-fossa

@awels
Copy link
Member

awels commented Mar 20, 2023

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 20, 2023
@akalenyu
Copy link
Collaborator Author

/test pull-containerized-data-importer-fossa

@akalenyu
Copy link
Collaborator Author

/retest

@kubevirt-bot kubevirt-bot merged commit 9b6921b into kubevirt:main Mar 21, 2023
@akalenyu
Copy link
Collaborator Author

/cherrypick release-v1.56

@kubevirt-bot
Copy link
Contributor

@akalenyu: new pull request created: #2649

In response to this:

/cherrypick release-v1.56

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.

@akalenyu
Copy link
Collaborator Author

/cherrypick release-v1.55

@kubevirt-bot
Copy link
Contributor

@akalenyu: #2633 failed to apply on top of branch "release-v1.55":

Applying: Follow up for WFFC test suite adjustments
Using index info to reconstruct a base tree...
M	tests/cloner_test.go
M	tests/csiclone_test.go
M	tests/datavolume_test.go
A	tests/external_population_test.go
M	tests/import_test.go
M	tests/smartclone_test.go
Falling back to patching base and 3-way merge...
Auto-merging tests/smartclone_test.go
Auto-merging tests/import_test.go
CONFLICT (modify/delete): tests/external_population_test.go deleted in HEAD and modified in Follow up for WFFC test suite adjustments. Version Follow up for WFFC test suite adjustments of tests/external_population_test.go left in tree.
Auto-merging tests/datavolume_test.go
Auto-merging tests/csiclone_test.go
Auto-merging tests/cloner_test.go
CONFLICT (content): Merge conflict in tests/cloner_test.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Follow up for WFFC test suite adjustments
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherrypick release-v1.55

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.

akalenyu added a commit to akalenyu/containerized-data-importer that referenced this pull request Mar 21, 2023
* Follow up for WFFC test suite adjustments

Previous PR does not make our test suite completely WFFC-friendly,
as it turns out more follow ups were needed.

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

* Change restartpolicy on testing pods to rerun on failure

This dates back a long time ago (5yrs), it seems that we may
want to restart on intermediate errs

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

---------

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
kubevirt-bot pushed a commit that referenced this pull request Mar 22, 2023
* Follow up for WFFC test suite adjustments

Previous PR does not make our test suite completely WFFC-friendly,
as it turns out more follow ups were needed.



* Change restartpolicy on testing pods to rerun on failure

This dates back a long time ago (5yrs), it seems that we may
want to restart on intermediate errs



---------

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants