-
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
Ctrl, VM: Require restart when socket count is reduced #11883
Ctrl, VM: Require restart when socket count is reduced #11883
Conversation
Skipping CI for Draft Pull Request. |
/cc |
Please, create an bug issue as well so we keep a track of it. |
71a9c4b
to
977b1fa
Compare
Currently, it is possible to reduce the sockets count of a VirtualMachine object. Doing so causes the following steps to happen: 1. The VirtualMachineInstance is updated. 2. A migration is triggered. 3. The target virt-launcher pod is created according to the updated VMI. 4. The domain is migrated as-is. 5. On the target virt-launcher pod - the domain is updated to fit. This works well for CPU hotplug, but is problematic for CPU hotunplug in several scenarios, for example: 1. When using dedicated CPUs 2. When using `networkInterfaceMultiqueue: true` Add the RestartRequired condition on the VM in case the CPU socket count is reduced. This will make sure the virt-launcher pod and the domain are aligned. Signed-off-by: Orel Misan <omisan@redhat.com>
977b1fa
to
000c9c3
Compare
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
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jean-edouard 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 |
Required labels detected, running phase 2 presubmits: |
/cherrypick release-1.2 |
@acardace: once the present PR merges, I will cherry-pick it on top of release-1.2 in a new PR and assign it to you. 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-sigs/prow repository. |
@orelmisan: 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-sigs/prow repository. I understand the commands that are listed here. |
/retest-required |
@acardace: new pull request created: #11985 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-sigs/prow repository. |
What this PR does
Before this PR:
Currently, it is possible to reduce the sockets count of a VirtualMachine object.
Doing so causes the following steps to happen:
This works well for CPU hotplug, but is problematic for CPU hotunplug in several scenarios, for example:
networkInterfaceMultiqueue: true
After this PR:
RestartRequired condition is added on the VM in case the socket count is reduced.
This will make sure the virt-launcher pod and the domain are aligned.
Fixes #
Why we need it and why it was done in this way
The following tradeoffs were made:
The following alternatives were considered:
Links to places where the discussion took place:
Special notes for your reviewer
Depends on #11836, please only review the last commit.Checklist
This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.
Release note