Bug 2104115 - RHV 4.5 cannot import VMs with cpu pinning
Summary: RHV 4.5 cannot import VMs with cpu pinning
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.5.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ovirt-4.5.2
: 4.5.2
Assignee: Lucia Jelinkova
QA Contact: Qin Yuan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-05 14:51 UTC by Frank DeLorey
Modified: 2022-09-08 11:29 UTC (History)
8 users (show)

Fixed In Version: ovirt-engine-4.5.2
Doc Type: Bug Fix
Doc Text:
Previously, when importing a virtual machine with manual CPU pinning (pinned to a dedicated host), the manual pinning string was cleared, but the CPU pinning policy was not set to NONE. As a result, importing failed. In this release, the CPU pinning policy is set to NONE if the CPU pinning string is cleared, and importing succeeds.
Clone Of:
Environment:
Last Closed: 2022-09-08 11:28:53 UTC
oVirt Team: Virt
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 523 0 None open core: set correct policy when reseting cpu pinning string 2022-07-12 12:11:15 UTC
Red Hat Issue Tracker RHV-46997 0 None None None 2022-07-05 15:14:27 UTC
Red Hat Product Errata RHSA-2022:6393 0 None None None 2022-09-08 11:29:26 UTC

Comment 1 Lucia Jelinkova 2022-07-12 12:11:16 UTC
The key problem was that when importing a VM that has dedicated host and the host is not present in the cluster to which the VM is being imported, the dedicated host is cleared as well as the cpu pinning string. This leaves us with an empty cpu pinning string and MANUAL cpu pinning policy -> hence the failure on the database constraint.

Comment 4 Qin Yuan 2022-08-07 14:40:51 UTC
Verified with:
ovirt-engine-4.5.2.1-0.1.el8ev.noarch

Steps:
1. Prepare a storage domain containing a VM with following configurations:
   - pinned to a dedicated host which is not present in the target cluster
   - CPU pinning policy: Manual, CPU Pinning topology: 0#0
2. Import the storage domain to the target data center
3. Import the VM from the imported storage domain to the target cluster

Results:
1. The VM is imported successfully.
2. The VM is not pinned to any specific host.
3. The CPU pinning policy is changed to None, CPU Pinning topology is cleared.

Comment 5 meital avital 2022-08-08 19:42:52 UTC
Due to QE capacity, we are not going to cover this issue in our automation

Comment 7 Casper (RHV QE bot) 2022-09-04 20:05:08 UTC
This bug has low overall severity and is not going to be further verified by QE. If you believe special care is required, feel free to properly align relevant severity, flags and keywords to raise PM_Score or use one of the Bumps ('PrioBumpField', 'PrioBumpGSS', 'PrioBumpPM', 'PrioBumpQA') in Keywords to raise it's PM_Score above verification threashold (1000).

Comment 10 errata-xmlrpc 2022-09-08 11:28:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: RHV Manager (ovirt-engine) [ovirt-4.5.2] bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:6393


Note You need to log in before you can comment on or make changes to this bug.