Skip to content
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

[release-1.2] Move hotplug setups to webhook #12553

Open
wants to merge 4 commits into
base: release-1.2
Choose a base branch
from

Conversation

xpivarc
Copy link
Member

@xpivarc xpivarc commented Aug 8, 2024

What this PR does

Moves the hotplug defaulting to webhook in order to properly work with defaulting of cpu topology. Without this path a VM without topology, with request &/ limits would most likely fail to start.

Fixes #

Links to places where the discussion took place:

Special notes for your reviewer

This is 1.2 specific regression. Therefore I skip main.

Release note

Virtual Machines without topology can start with live updates enabled

@kubevirt-bot kubevirt-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XL labels Aug 8, 2024
@kubevirt-bot kubevirt-bot added sig/buildsystem Denotes an issue or PR that relates to changes in the build system. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Aug 8, 2024
@Barakmor1
Copy link
Member

Barakmor1 commented Aug 13, 2024

Hi @xpivarc , I think that the test in the last commit should be added to the main branch

@Barakmor1
Copy link
Member

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2024
@xpivarc
Copy link
Member Author

xpivarc commented Aug 13, 2024

@Barakmor1 Thanks for the review. I already opened #12583 for main and 1.3 backport.

@xpivarc xpivarc force-pushed the release-1.2-defaults-in-webhook branch from 2d71cec to 9501f22 Compare August 15, 2024 12:14
@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 15, 2024
@kubevirt-bot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@xpivarc
Copy link
Member Author

xpivarc commented Aug 16, 2024

/retest-required

@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 28, 2024
lyarwood and others added 4 commits August 28, 2024 19:15
Previously all VMI mutation tests were applying presets to the VMI. This
change moves these specific preset tests into their own context to avoid
polluting other tests.

Signed-off-by: Lee Yarwood <[email protected]>
(cherry picked from commit 0431cfd)
Signed-off-by: Luboslav Pivarc <[email protected]>
This change moves defaulting of CurrentCPUTopology in the VMI from the
VM controller into the VMI mutation webhook. This defaulting would
happen prior to instance types and preferences being applied to the VMI
and would thus capture in the incorrect state of the VMI when instance
types and preferences are used. The following changes in this series
require this in order to introduce support instance types and
preferences with LiveUpdate.

This also fixes bug kubevirt#11251 where CurrentCPUTopology is not updated to
reflect a new instance type being used in clusters where LiveUpdate is
not currently enabled.

Signed-off-by: Lee Yarwood <[email protected]>
(cherry picked from commit 01a3725)
Signed-off-by: Luboslav Pivarc <[email protected]>
As with the previous change this change moves setup logic for hotplug
into the VMI mutation webhook in order to allow for instance type and
preference support of LiveUpdate.

By moving this logic into the mutation webhook we can now provide
MaxSockets and MaxGuest as centralised instance type attributes that are
applied to the VMI during creation.

Signed-off-by: Lee Yarwood <[email protected]>
(cherry picked from commit 2f8777b)
Signed-off-by: Luboslav Pivarc <[email protected]>
This test catch a regression.

Signed-off-by: Luboslav Pivarc <[email protected]>
@xpivarc xpivarc force-pushed the release-1.2-defaults-in-webhook branch from 9501f22 to 912e945 Compare August 28, 2024 17:18
@kubevirt-bot kubevirt-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 28, 2024
@fossedihelm
Copy link
Contributor

/retest

@kubevirt-bot
Copy link
Contributor

kubevirt-bot commented Sep 4, 2024

@xpivarc: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kubevirt-e2e-arm64 912e945 link false /test pull-kubevirt-e2e-arm64-1.2

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.

@xpivarc
Copy link
Member Author

xpivarc commented Sep 4, 2024

/test pull-kubevirt-unit-test-1.2

@enp0s3
Copy link
Contributor

enp0s3 commented Sep 5, 2024

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enp0s3

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 5, 2024
@xpivarc
Copy link
Member Author

xpivarc commented Sep 5, 2024

/cc @lyarwood

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/buildsystem Denotes an issue or PR that relates to changes in the build system. size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants