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
Update dedicated CPUs on migration #6821
Conversation
6722753
to
cc405af
Compare
/retest |
@jean-edouard seems like a make generate and make is missing. |
ecbcdc5
to
25adb69
Compare
tests/migration_test.go
Outdated
DedicatedCPUPlacement: true, | ||
} | ||
migratableVMI.Spec.Domain.Resources.Requests[k8sv1.ResourceMemory] = resource.MustParse("512Mi") | ||
// TODO? Other tests use only 128Mi + the following but my test cluster doesn't do hugepages apparently |
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.
128Mi is a default in KubeVirtCI
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.
Right, but a VMI with dedicated cores, 128Mi of ram and no hugepages get OOM killed...
Since I can't do hugepages I bumped the RAM and it did the trick.
@jean-edouard can't we combine numa_placement.go, vcpu.go, vcpu_placement.go into a single file? |
25adb69
to
ecb3d41
Compare
f370cb2
to
3eef5e5
Compare
/test pull-kubevirt-e2e-k8s-1.22-sig-compute-migrations |
1 similar comment
/test pull-kubevirt-e2e-k8s-1.22-sig-compute-migrations |
3eef5e5
to
8ba8c40
Compare
/test pull-kubevirt-e2e-k8s-1.22-sig-compute-migrations |
8ba8c40
to
c3a9031
Compare
/test pull-kubevirt-e2e-k8s-1.22-sig-compute-migrations |
c3a9031
to
c772557
Compare
/test pull-kubevirt-e2e-k8s-1.22-sig-compute-migrations |
Leaving WIP, since the functest is green on https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/6821/pull-kubevirt-e2e-k8s-1.22-sig-compute-migrations/1463566688480923648 ! |
c772557
to
44c18cd
Compare
During a migration process of a VMI that requires dedicated CPUs, this field will be populated by the target node's virt-handler, and will be consumed by the source virt-launcher to update the VMI's dedicated CPU set pre-migration. Signed-off-by: Omer Yahud <oyahud@redhat.com>
For a VMI that requires dedicated CPU, virt-handler will now report the dedicated CPU set that was assigned for that VM on the target node. Signed-off-by: Omer Yahud <oyahud@redhat.com>
virt-launcher will now read the new CPU set of the VMI on the target node and patch the domain prior to migration Signed-off-by: Omer Yahud <oyahud@redhat.com>
Signed-off-by: Omer Yahud <oyahud@redhat.com>
Signed-off-by: Jed Lejosne <jed@redhat.com>
…ter XML accordingly Signed-off-by: Jed Lejosne <jed@redhat.com>
Signed-off-by: Jed Lejosne <jed@redhat.com>
And add missing error checks And move all vcpu code to vcpu.go Signed-off-by: Jed Lejosne <jed@redhat.com>
Signed-off-by: Jed Lejosne <jed@redhat.com>
Signed-off-by: Jed Lejosne <jed@redhat.com>
Signed-off-by: Jed Lejosne <jed@redhat.com>
Signed-off-by: Jed Lejosne <jed@redhat.com>
…rom scratch Signed-off-by: Jed Lejosne <jed@redhat.com>
a6a0b08
to
f22c592
Compare
Rebased against main to fix conflict and addressed comments from last review |
/retest |
/test pull-kubevirt-e2e-k8s-1.22-sig-compute-migrations |
Currently
Though this seems to be another issue (not related to this PR). I also hit that failure. Tried to fix it in #6997. /lgtm |
Thank you @vasiliy-ul for looking at fixing the flaky test, I'll review your PR! |
Ooops, forgot to unhold. /unhold |
@jean-edouard: The following test failed, say
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. |
/retest |
/cherry-pick release-0.49 |
@stu-gott: new pull request created: #7043 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. |
What this PR does / why we need it:
This PR patches a domain of a VMI that requires dedicated CPUs with the new CPU set dedicated for it on the target node
This is the continuation of the work started by #6200
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:
This PR moves a lot of code around. I understand that it complicates reviews, and I'd be willing to split off the refactoring bits into a separate PR.
I didn't do it right away because it would be a fair amount of work and pure-refactoring PRs tend to be disliked.
Release note: