Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1895665

Summary: Missing UI proper error message for cloning a VM in snapshot preview
Product: [oVirt] ovirt-engine Reporter: Tamir <tamir>
Component: BLL.VirtAssignee: Shmuel Melamud <smelamud>
Status: CLOSED CURRENTRELEASE QA Contact: Tamir <tamir>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.4.3.10CC: ahadas, bugs
Target Milestone: ovirt-4.4.4Flags: pm-rhel: ovirt-4.4+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.4.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1895667 (view as bug list) Environment:
Last Closed: 2020-12-21 12:36:46 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-11-08 06:56:28 UTC
Created attachment 1727522 [details]
added logs

Description of problem:

After I created a VM and a snapshot and preview the snapshot, 
I tried cloning the VM and after the modal was opened and I filled the new VM name and pressed OK, the operation gets canceled with the error message: "Error while executing action CloneVm: Internal Engine Error".

The VM modal shouldn't open and there should be a proper error message.


Version-Release number of selected component (if applicable):
RHV 4.4.3-13 (ovirt-engine.noarch 4.4.3.10-0.1.el8ev)
RHEL 8.3 x86 hosts and engine.
vdsm.x86_64 4.40.35.1-1.el8ev on the hosts.

How reproducible:
100%

Steps to Reproduce:
1. Create a 4.5 data center and a 4.5 cluster.
2. Install the host and create a new NFS storage domain.
3. Create a VM with a disk and wait for its creation.
4. Run the VM.
5. Make a snapshot with disks and memory.
6. Shutdown the VM.
7. Preview the snapshot.
8. Clone the VM. 

Actual results:
1. The 4.5 data center and the 4.5 cluster were created.
2. The host was installed and the NFS storage domain was created.
3. The VM with the disk was created.
4. The VM is running.
5. The snapshot was created.
6. The VM is down.
7. The snapshot is previewed.
8. The VM failed to clone with an error message.

Expected results:
Steps 1-7 are as expected.
8. The VM modal shouldn't open and there should be a proper error message.

Additional info:

Comment 1 Arik 2020-11-16 08:04:48 UTC
This is supposed to be fixed by the fix for bz 1893540

Comment 2 Tamir 2020-11-22 10:22:38 UTC
Verified on RHV 4.4.3-3. All looks good to me.

Env:
  - Engine instance with RHV 4.4.4-2 (ovirt-engine-4.4.4.1-0.1.el8ev) and RHEL 8.3 installed.
  - 2 hosts with RHV 4.4.4-2 and RHEL 8.3, one host with vdsm-4.40.37-1.el8ev and the other host with vdsm-4.40.37-1.el8ev

Steps:

In Admin Portal:

1. Create a 4.5 data center and a 4.5 cluster.
2. Install the host and create a new NFS storage domain.
3. Create a VM with a disk and wait for its creation.
4. Run the VM.
5. Make a snapshot with disks and memory.
6. Shutdown the VM.
7. Preview the snapshot.
8. Clone the VM. 


Results (As Expected):
1. The 4.5 data center and the 4.5 cluster were created.
2. The host was installed and the NFS storage domain was created.
3. The VM with the disk was created.
4. The VM is running.
5. The snapshot was created.
6. The VM is down.
7. The snapshot is previewed.
8. The VM failed to clone with an error message: "Cannot add VM. VM is previewing a Snapshot.".

Comment 3 Sandro Bonazzola 2020-12-21 12:36:46 UTC
This bugzilla is included in oVirt 4.4.4 release, published on December 21st 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.4 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.