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

Set Hyperv features from KubeVirt template #638

Merged
merged 4 commits into from
Nov 7, 2023
Merged

Conversation

ahadas
Copy link
Member

@ahadas ahadas commented Nov 1, 2023

When we migrate from oVirt, vSphere, OpenStack and OVA, we override the Features and Clock sections of the VMs that are based on the template in KubeVirt that corresponds to the operating system of the migrated VM, if such a template exists. This PR changes the relevant Builders to avoid overriding these sections with empty settings. It's OK to override fields that are taken from the template with values based on the configuration of VMs in the source system, but it makes no sense to override fields from the template with empty values, as for example it clears Hyperv features that are useful for Windows guests.

When we take Hyperv flags from the template, we need to make sure that the clock is also taken from the template (since it needs to be Hypervclock).

https://issues.redhat.com/browse/MTV-791

@ahadas ahadas requested review from liranr23 and bkhizgiy November 1, 2023 15:48
The features and clock settings are taken from the corresponding
template in kubevirt, if exists, we do not want to override them with
empty settings.

Signed-off-by: Arik Hadas <[email protected]>
The features and clock settings are taken from the corresponding
template in kubevirt, if exists, we do not want to override them with
empty settings.

Signed-off-by: Arik Hadas <[email protected]>
The features and clock settings are taken from the corresponding
template in kubevirt, if exists, we do not want to override them with
empty settings.

Signed-off-by: Arik Hadas <[email protected]>
The features are taken from the corresponding template in kubevirt, if
exists, we do not want to override them with empty settings.

Signed-off-by: Arik Hadas <[email protected]>
Copy link

sonarqubecloud bot commented Nov 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ahadas ahadas merged commit 0849112 into kubev2v:main Nov 7, 2023
7 of 8 checks passed
@ahadas ahadas deleted the hyperv branch November 7, 2023 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants