Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1498478 - [Bug RHV 4.1.7] VM snapshots "clone" button doesn't work.
[Bug RHV 4.1.7] VM snapshots "clone" button doesn't work.
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
4.1.6
x86_64 Linux
high Severity high
: ovirt-4.1.7
: ---
Assigned To: Yanir Quinn
Artyom
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-10-04 08:28 EDT by Sachin Raje
Modified: 2018-04-30 14:58 EDT (History)
14 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-07 12:27:54 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: SLA
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
ui.log (71.99 KB, text/plain)
2017-10-04 08:28 EDT, Sachin Raje
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3205991 None None None 2017-10-10 21:07 EDT
oVirt gerrit 82792 ovirt-engine-4.1 MERGED webadmin: fix Snapshots clone NPE 2017-10-15 10:32 EDT
Red Hat Product Errata RHEA-2017:3138 normal SHIPPED_LIVE Red Hat Virtualization Manager (ovirt-engine) 4.1.7 2017-11-07 17:22:33 EST

  None (edit)
Description Sachin Raje 2017-10-04 08:28:57 EDT
Created attachment 1334215 [details]
ui.log

Description of problem:
VM snapshots "clone" button doesn't work

Version-Release number of selected component (if applicable):
RHV 4.1.6

How reproducible:
Always


Steps to Reproduce:
1. Create a VM with disk.
2. Create a snapshot.
3. Select the new snapshot created.
4. Select the snapshot and click on "clone"

Actual results:
The rhvm portal opens the error dialog box with below message in it,

==>>
Uncaught exception occurred. Please try reloading the page. Details: Exception caught: (TypeError) __gwt$exception: <skipped>: qib(...).e is null
Please have your administrator check the UI logs.
==>>

Expected results:
The vm clone from snapshot should work using RHVM GUI.

Additional info:
The ui.log attached.
Comment 2 Tomas Jelinek 2017-10-05 05:51:49 EDT
This regression has been introduced by https://gerrit.ovirt.org/#/c/80695/ in 4.1.6.

The reason is that the CloneVmFromSnapshotModelBehavior is an ExistingVmModelBehavior but initially has the VM set to null.
Hence, the isHostedEngine() code in UnitVmModel fails on NPE if the getVmConfigurationBySnapshot returns later than the AbstractVmPopupWidget.edit() gets called.
Comment 4 Yanir Quinn 2017-10-15 05:58:17 EDT
fixed on 4.2 : https://bugzilla.redhat.com/show_bug.cgi?id=1491230 
(currently on QA)  
mark as duplicate / downport to 4.1.6 minor if needed
Comment 5 Yaniv Kaul 2017-10-15 06:10:31 EDT
(In reply to Yanir Quinn from comment #4)
> fixed on 4.2 : https://bugzilla.redhat.com/show_bug.cgi?id=1491230 
> (currently on QA)  
> mark as duplicate / downport to 4.1.6 minor if needed
4.1.7.

Please use this one then to fix in 4.1.7 (if it's an easy backport?)
Comment 6 Yanir Quinn 2017-10-15 07:16:57 EDT
yes, should be an easy backport (partial pick from https://gerrit.ovirt.org/#/c/82123/)
Comment 7 rhev-integ 2017-10-20 09:18:32 EDT
WARN: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Found clone flags: ['rhevm-4.1.z', 'rhevm-4.2-ga'], ]

For more info please contact: rhv-devops@redhat.comINFO: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason:

[Found clone flags: ['rhevm-4.1.z', 'rhevm-4.2-ga'], ]

For more info please contact: rhv-devops@redhat.com
Comment 8 Yaniv Kaul 2017-10-20 13:58:29 EDT
(In reply to rhev-integ from comment #7)
> WARN: Bug status wasn't changed from MODIFIED to ON_QA due to the following
> reason:
> 
> [Found clone flags: ['rhevm-4.1.z', 'rhevm-4.2-ga'], ]
> 
> For more info please contact: rhv-devops@redhat.comINFO: Bug status wasn't
> changed from MODIFIED to ON_QA due to the following reason:
> 
> [Found clone flags: ['rhevm-4.1.z', 'rhevm-4.2-ga'], ]
> 
> For more info please contact: rhv-devops@redhat.com

Yanir, I've removed the 4.2 flag - please make sure this is in the erratum for 4.1.7.
Comment 10 Artyom 2017-10-24 03:48:51 EDT
Steps:
1) Create new VM
2) Start the VM
3) Create snapshot on the VM(with memory)
4) Choose snapshot and click clone button
5) VM creation from snapshot succeeded
6) Start new VM

Verified on rhevm-4.1.7.4-0.1.el7.noarch
Comment 12 errata-xmlrpc 2017-11-07 12:27:54 EST
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, 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/RHEA-2017:3138

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