-
Notifications
You must be signed in to change notification settings - Fork 554
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
Added e2e test for driver version upgrade #213
Conversation
Hi @jqmichael. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
ea7fec0
to
0b57ae6
Compare
/ok-to-test |
df0b742
to
a9c0dd8
Compare
/retest |
a9c0dd8
to
fd76b8c
Compare
fd76b8c
to
a376379
Compare
@@ -71,7 +71,7 @@ dns_name_suffix = sc2s.sgov.gov | |||
[mount-watchdog] | |||
enabled = true | |||
poll_interval_sec = 1 | |||
unmount_grace_period_sec = 30 | |||
unmount_grace_period_sec = 5 |
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.
What are the implications of changing this? I'm OK with changing it for a test, but it seems wrong to change it for everyone.
return makePVCWithPV(pv, namespace, name) | ||
} | ||
|
||
func makePVCWithPV(pv *v1.PersistentVolume, namespace, name string) (*v1.PersistentVolumeClaim, *v1.PersistentVolume) { |
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.
This function name is confusing. "With" could mean "make a PVC along with a PV".
I suggest separating the binding code below (setting volumeName of a given PVC and claimRef of a given PV) to a separate function.
validatePodVolumeAccessible(f, pod) | ||
}) | ||
|
||
ginkgo.It("[efs] [github] [tls] [upgrade] should continue reading/writing after the driver pod is upgraded from stable version", func() { |
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.
What is the meaning of the new tags? It's not necessary to have an [efs] tag because everything is already tagged "[efs-csi] EFS CSI"
command := fmt.Sprintf("touch /mnt/volume1/%s-%s && trap exit TERM; while true; do sleep 1; done", f.Namespace.Name, time.Now().Format(time.RFC3339)) | ||
|
||
isPrivileged := false | ||
var nodeSelector map[string]string |
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.
nodeSelector is not set correctly, something got lost in the refactoring.
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.
It seems like nodeSelector was never set correctly?
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.
Yeah I never set it: https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/test/e2e/e2e.go#L225 so with 3 nodes we had a 1/3 chance of actually running the test as intended.
I wouldn't use nodeSelector anyway ,I would rather just set pod.spec.Nodename
framework.ExpectNoError(err, "deleting driver pod") | ||
} | ||
|
||
func createPvPvcWithPv(f *framework.Framework, pv *v1.PersistentVolume) (*v1.PersistentVolume, *v1.PersistentVolumeClaim) { |
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.
Sorry but I hate this function name
return createEFSPVPVC(c, namespace, pvc, pv) | ||
} | ||
|
||
func createEFSPVPVC(c clientset.Interface, namespace string, pvc *v1.PersistentVolumeClaim, pv *v1.PersistentVolume) (*v1.PersistentVolumeClaim, *v1.PersistentVolume, error) { |
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.
createEFSPVCPV vs createEFSPVPVC?
@jqmichael: PR needs rebase. 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. |
ginkgo.By("Updating to the EFS CSI driver") | ||
currentEfsDriver, err := daemonSetClient.Get("efs-csi-node", metav1.GetOptions{}) | ||
driverUpgradeTo.ResourceVersion = currentEfsDriver.ResourceVersion | ||
_, err = daemonSetClient.Update(driverUpgradeTo) |
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.
Need to wait for daemonset to be totally replaced. Or at least the driver pod on the node we care about
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closed this PR. In response to this:
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 might pick this up depending on whether it's easier to manually do the test or fix it : p |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jqmichael 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 |
@jqmichael: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
/lifecycle frozen |
The This bot removes
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /remove-lifecycle frozen |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
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. |
Is this a bug fix or adding new feature?
feature
What is this PR about? / Why do we need it?
Added e2e test for driver version upgrade
What testing is done?