-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Windows VMI - adding bridge binding test to validate ip address #6833
Conversation
Hi @dteplits. Thanks for your PR. I'm waiting for a kubevirt 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. |
/ok-to-test |
/retest |
1 similar comment
/retest |
/retest |
/retest |
/retest |
/retest |
1 similar comment
/retest |
/retest |
/test ? |
done |
/retest |
48ad363
to
cdeff90
Compare
/retest |
1 similar comment
/retest |
getVirtHandlerPod := func() (*k8sv1.Pod, error) { | ||
winVmiPod := tests.GetRunningPodByVirtualMachineInstance(windowsVMI, windowsVMI.Namespace) | ||
nodeName := winVmiPod.Spec.NodeName | ||
|
||
pod, err := kubecli.NewVirtHandlerClient(virtClient).Namespace(flags.KubeVirtInstallNamespace).ForNode(nodeName).Pod() | ||
if err != nil { | ||
return nil, fmt.Errorf("failed to get virt-handler pod on node %s: %v", nodeName, err) | ||
} | ||
return pod, nil | ||
} |
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.
Looks like we have multiple ways to get the same thing. For example: getPodByKubeVirtRole
.
But even with this existing method, there is a lot of code duplication as this one is re-defined all over.
Can you please follow up on this and extract it to some reasonable place and update other usages to use it? (in a following PR)
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 will do it in a separate PR
tests/windows_test.go
Outdated
command, | ||
) | ||
return err | ||
}, time.Minute*1, time.Second*15).ShouldNot(HaveOccurred()) |
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.
Should(Succeed())
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.
done
tests/windows_test.go
Outdated
|
||
By(fmt.Sprintf("Running \"%s\" command via winrm-cli", command)) | ||
Eventually(func() error { | ||
output, err = tests.ExecuteCommandOnPod( |
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.
If you do not use the output
variable, the name it _
to express it is not used.
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.
done
/retest |
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.
Thank you!
Great work! Please remove from the PR and the commit messages the following "Current test verifies that IP address on Windows VM matches". |
In case of bridge binding on Windows VM, DHCP server must provide IPv4 address in proper v4 format, otherwise it will be parsed incorrectly by the VM and as a result Windows VM will become invisible on cluster network This problem was fixed by issue#6448 Current test verifies that Windows VMI can be recognized by other components in cluster Test for: kubevirt#6462 See also: kubevirt#6448 Signed-off-by: Diana Teplits <dteplits@redhat.com>
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AlonaKaplan 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 |
/lgtm |
/retest |
What this PR does / why we need it:
tests, windows: Add bridge binding test to validate IP address
In case of bridge binding on Windows VM, DHCP server must provide
IPv4 address in proper v4 format, otherwise it will be parsed
incorrectly by the VM and as a result Windows VM will become
invisible on cluster network
This problem was fixed by issue#6448
Current test verifies that Windows VMI can be recognized by other components
in cluster
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 #
https://issues.redhat.com/browse/CNV-14301
See also: #6462, #6448
Special notes for your reviewer:
Release note: