Description of problem:
If an OVA export/import failed during "qemu-img convert" phase, the RHV-M shows the successful status even though the disk copy operation is failed. This was observed in bug 1813028 and bug 1748879.
The issue can also be reproducible if we kill the "qemu-img" process while converting the OVA. The reproducer steps in the above bug can also be used to reproduce the bug.
The ova ansible logs show that the operation was failed.
skipping disk: path=/rhev/data-center/mnt/blockSD/106fd6c1-a215-457e-b8c5-a08bb6448f58/images/2c542318-d55d-4347-9996-cb3c4b85a4ab/ef082d8e-19b4-4bcb-b1b6-9d09d70030a5 size=1132331008
converting disk: /rhev/data-center/mnt/blockSD/106fd6c1-a215-457e-b8c5-a08bb6448f58/images/2c542318-d55d-4347-9996-cb3c4b85a4ab/ef082d8e-19b4-4bcb-b1b6-9d09d70030a5, offset 13312
However, the engine logs show a successful message.
Exporting VM myagent as an OVA to /var/tmp/myagent.ova on Host vm250-142.example.com
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Export/import an OVA from RHV-M.
2. Kill the "qemu-img convert" process duing the operation.
3. Check the output of manager event logs. It will be showing a successful message to the user.
RHV-M shows successful operation if OVA export/import failed during "qemu-img convert" phase
The user will only realize that the operation has failed once they boot the VM. If there is an error during the disk copy operation of the disk, then the engine should mark the whole OVA operation has failed.
1. Export VM as OVA
2. Kill qemu-img convert process.
3. Verify operation failed with the next event in WebAdmin:
Failed Exporting VM vm_name as an OVA to /home/rhv_ova/vm_name.ova on Host hostname"
4. Import OVA
5. Kill qemu-img conver process.
4. Verify operation faled with the next event:
"Failed Importing VM vm_name to Cluster Default"
please review this doc text for the errata and release notes:
This enhancements adds error handling for OVA import and export operations, providing successful detection and reporting to the Red Hat Virtualization Manager if the qemu-img process fails to complete.
(In reply to Eli Marcus from comment #5)
> Hi Steve,
> please review this doc text for the errata and release notes:
> This enhancements adds error handling for OVA import and export operations,
> providing successful detection and reporting to the Red Hat Virtualization
> Manager if the qemu-img process fails to complete.
This is fine. Thank you.
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 (Low: Red Hat Virtualization security, bug fix, and enhancement 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.