Bug 1886520

Summary: Cannot import OVA that was exported from oVirt on PPC
Product: [oVirt] ovirt-engine Reporter: Tamir <tamir>
Component: BLL.VirtAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Tamir <tamir>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4.3CC: ahadas, bugs
Target Milestone: ovirt-4.4.5Flags: pm-rhel: ovirt-4.4+
Target Release: 4.4.5   
Hardware: ppc64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.5-0.11 Doc Type: Bug Fix
Doc Text:
Previously, when selecting a PPC host as proxy for importing an OVA that was created by oVirt the import failed with an error that states that the selected host cannot serve as proxy. This made it more complex to import such OVAs to PPC clusters. Now, PPC hosts can be used as proxy for importing OVAs that were created by oVirt.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-18 15:15:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Added logs none

Description Tamir 2020-10-08 16:22:52 UTC
Created attachment 1720014 [details]
Added logs

Description of problem:
After I exported an OVA from a VM, I removed the VM and tried to import the VM  using the OVA I exported. The import failed. Here are the relevant errors from the log:

2020-10-08 18:43:45,449+03 WARN  [org.ovirt.engine.core.bll.exportimport.ImportVmFromOvaCommand] (default task-24) [29413002] Validation of action 'ImportVmFromOva' failed for user admin@internal-authz. Reasons: VAR__ACTION__IMPORT,VAR__TYPE__VM,ACTION_TYPE_FAILED_HOST_CANNOT_BE_PROXY_FOR_IMPORT_VM,$vdsName host_mixed_1

2020-10-08 18:43:45,450+03 INFO  [org.ovirt.engine.core.bll.exportimport.ImportVmFromOvaCommand] (default task-24) [29413002] Lock freed to object 'EngineLock:{exclusiveLocks='[056c81bd-8176-4056-95de-52c12e3895e7=VM, test_vm_i440fx=VM_NAME]', sharedLocks=''}'

2020-10-08 18:43:45,459+03 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-24) [] Operation Failed: [Cannot import VM. Host host_mixed_1 cannot serve as proxy. Verify its cluster architecture and compatibility version are supported.]

 
Version-Release number of selected component (if applicable):
engine (ovirt-engine 4.4.3.5-0.5.el8ev) and hosts (vdsm.ppc64le 4.40.32-1.el8ev).
Both engine and hosts are RHV 4.4.3-7, RHEL 8.3, ppc64 arch, IBM POWER9

How reproducible:
100%

Steps to Reproduce:
1. Create a 4.5 data center with a "4.5, ppc64 arch, Power 9" cluster.
2. Add the host and a NFS data domain.
3. Create a VM with with "Blank" template and a 1gb disk. 
4. Export the VM as OVA to one of the hosts.
5. Remove the VM you created.
6. Import the same VM from OVA.

Actual results:
1. The 4.5 data center with a "4.5, ppc64 arch, Power 9" cluster were created.
2. The host and data domain were added.
3. The VM was created.
4. The VM was exported as OVA.
5. The VM was removed.
6. The VM couldn't import with the error message: "Cannot import VM. Host host_mixed_1 cannot serve as proxy. Verify its cluster architecture and compatibility version are supported."

Expected results:
1-5 steps were executed as expected.
in Step 6 the VM should be imported without errors. 

Additional info:

Comment 2 Arik 2020-10-11 06:52:11 UTC
When importing an OVA that was created by oVirt, the proxy host can be a PPC host

Comment 3 Tamir 2021-01-17 11:05:40 UTC
Verified on RHV 4.4.5-1. All looks good to me.

Env:
  - Engine instance with RHV 4.4.5-1 (ovirt-engine-4.4.5-0.11.el8ev) and RHEL 8.3 installed.
  - 2 hosts with RHV 4.4.5-1 and RHEL 8.3 and vdsm.ppc64le-4.40.50.1-1.el8ev
  Both engine and hosts are RHV 4.4.5-1, RHEL 8.3, ppc64 arch, IBM POWER9

Steps:

In Admin Portal:

1. Create a 4.5 data center with a "4.5, ppc64 arch, Power 9" cluster.
2. Add the host and a NFS data domain.
3. Create a VM with with "Blank" template and a 1gb disk. 
4. Export the VM as OVA to one of the hosts.
5. Remove the VM you created.
6. Import the same VM from the same you exported OVA.


Results (As Expected):
1. The 4.5 data center with a "4.5, ppc64 arch, Power 9" cluster were created.
2. The host and data domain were added.
3. The VM was created.
4. The VM was exported as OVA.
5. The VM was removed.
6. The VM was imported successfully.

Comment 4 Sandro Bonazzola 2021-03-18 15:15:25 UTC
This bugzilla is included in oVirt 4.4.5 release, published on March 18th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.5 release, it has been closed with a resolution of CURRENT RELEASE.

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

Comment 5 Sandro Bonazzola 2021-03-22 12:55:42 UTC
This bugzilla is included in oVirt 4.4.5 release, published on March 18th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.5 release, it has been closed with a resolution of CURRENT RELEASE.

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