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

Backport fixes for vSphere providers #928

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

ahadas
Copy link
Member

@ahadas ahadas commented Jun 10, 2024

backport #926 and #927

ahadas added 3 commits June 10, 2024 15:58
when scheduling migrations to accommodate the controller_max_vm_inflight
setting for vSphere, we didn't take into account that disks are
transferred sequentially by virt-v2v (as opposed to CDI that transfers
them in parallel by different pods). This lead to performance
degregeration since could have triggered more migrations, in case of
migrations of multi-disk VMs, simultaneously without exceeding the value
of controller_max_vm_inflight. This is fixed by setting the cost of each
VM for which the disks are transferred by virt-v2v to 1.

Signed-off-by: Arik Hadas <[email protected]>
When looking for the configuration of an ESXi host that a certain VM
resides on, we query all the hosts in the namespace and then looking for
the host by its MOR (Managed Object Reference). This almost always works
but it could be wrong when there are several providers within the same
namespace that refer to the same host. This is more likely to happen
during tests where we define two providers with different propreties for
the same vSphere environment. Therefore, adding another check that
ensures the host refers to the provider which is the source provider on
the plan of the migrated VM, otherwise skip that host.

Signed-off-by: Arik Hadas <[email protected]>
It could be that we have VMs for which the migration is marked as
started and not marked as completed in archived plans. From now on, we
will not take such VMs into account when counting the inflight VMs.

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

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@ahadas ahadas merged commit 0e56308 into kubev2v:release-v2.6.3 Jun 10, 2024
7 checks passed
@ahadas ahadas deleted the release-v2.6.3 branch June 19, 2024 08:54
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