-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Adds e2e test for vpxd restart scenario in vSphere Cloud Provider #61614
Adds e2e test for vpxd restart scenario in vSphere Cloud Provider #61614
Conversation
@venilnoronha: Adding do-not-merge/release-note-label-needed because the release note process has not been followed. One of the following labels is required "release-note", "release-note-action-required", or "release-note-none". 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. |
/release-note-none |
/ok-to-test |
This commit adds a test to verify Volume access in a situation where VMware vCenter's vpxd service is down. The test mainly verifies Volume/file access before, during, and after restarting the vpxd service on the vCenter host.
bdce5ea
to
e90246d
Compare
/test pull-kubernetes-integration |
1 similar comment
/test pull-kubernetes-integration |
/assign divyenpatel |
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
/assign @gnufied |
/test pull-kubernetes-e2e-gce |
1 similar comment
/test pull-kubernetes-e2e-gce |
) | ||
|
||
BeforeEach(func() { | ||
framework.SkipUnlessProviderIs("vsphere") |
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.
does provider being vsphere imply ssh access?
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.
Yes. I've added a comment in d101799.
func invokeVCenterServiceControl(command, service, host string) error { | ||
sshCmd := fmt.Sprintf("service-control --%s %s", command, service) | ||
framework.Logf("Invoking command %v on vCenter host %v", sshCmd, host) | ||
result, err := framework.SSH(sshCmd, host, framework.TestContext.Provider) |
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.
BeforeEach
does not explicitly test for ssh access but this may be implied by verifying that the provider is vshpere/
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.
That's correct.
|
||
nodes := framework.GetReadySchedulableNodesOrDie(client) | ||
numNodes := len(nodes.Items) | ||
if numNodes < 1 { |
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.
I see this in similar e2e tests:
Expect(numNodes).NotTo(BeZero(), "No available nodes for ...")
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.
Addressed in d101799.
I don't understand the details of vsphere, but from an e2e perspective this lgtm |
/assign @abrarshivani |
/lgtm |
/test pull-kubernetes-bazel-build |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abrarshivani, divyenpatel, gnufied, jeffvance, venilnoronha 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 |
/retest Review the full test history for this PR. Silence the bot with an |
3 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/test all [submit-queue is verifying that this PR is safe to merge] |
@venilnoronha: The following test 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. |
Automatic merge from submit-queue (batch tested with PRs 60197, 61614, 62074, 62071, 62301). If you want to cherry-pick this change to another branch, please follow the instructions here. |
This PR adds a test to verify Volume access in a situation where VMware vCenter's
vpxd
service is down. The test mainly verifies Volume/file access before, during, and after restarting thevpxd
service on the vCenter host.See vmware-archive#373 for more details.
Reviewers note: This PR was internally reviewed at vmware-archive#468.
/cc @kubernetes/vmware