Bug 873156

Summary: [TEXT] [admin-portal] Improve error message, during creation Live-Snapshot on NFS DC with 3.0 compatibility version
Product: Red Hat Enterprise Virtualization Manager Reporter: vvyazmin <vvyazmin>
Component: ovirt-engine-webadmin-portalAssignee: Alissa <abonas>
Status: CLOSED CURRENTRELEASE QA Contact: vvyazmin <vvyazmin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: abaron, amureini, derez, dyasny, ecohen, hateya, iheim, Rhev-m-bugs, sgrinber, thildred, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: sf3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 889077 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 889077, 909811, 915537    
Attachments:
Description Flags
## Logs rhevm, screen-shots none

Description vvyazmin@redhat.com 2012-11-05 09:33:29 UTC
Created attachment 638432 [details]
## Logs rhevm, screen-shots

Description of problem: [admin-portal] Irrelevant warning error message, during creation Live-Snapshot on NFS DC with 3.0 compatibility version

Version-Release number of selected component (if applicable):
RHEVM 3.1 - SI24

RHEVM: rhevm-3.1.0-26.el6ev.noarch
VDSM: vdsm-4.9.6-41.0.el6_3.x86_64
LIBVIRT: libvirt-0.9.10-21.el6_3.5.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.295.el6_3.4.x86_64
SANLOCK: sanlock-2.3-4.el6_3.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create VM with installed OS on NFS DC with 3.0 compatibility version.
2. Power on VM
3. Try create a Live-Snapshot  

Actual results:
Get a warning: Error while executing action. Cannot create Snapshot. At least one of VMs is not down.

Expected results:
Warning message should explain, that on NFS DC with 3.0 compatibility version you can't create a Live-Snapshot, please power-off a VM first.

Additional info:

/var/log/ovirt-engine/engine.log

2012-11-05 10:42:32,448 WARN  [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (ajp-/127.0.0.1:8702-5) CanDoAction of action CreateAllSnapshotsFromVm failed. Reasons:VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_VM_IS_NOT_DOWN

Comment 1 Alissa 2012-12-13 15:29:53 UTC
The error should be fixed, however a better solution would be to block/grey out that option in the UI.

Comment 2 Alissa 2012-12-17 17:25:55 UTC
posted fix
http://gerrit.ovirt.org/#/c/10171/

Change-Id: I7b6dfc138951baddc991a82a4c9e64f60499428a

pending review

Comment 3 Allon Mureinik 2012-12-19 17:16:11 UTC
Merged fix upstream

Comment 4 vvyazmin@redhat.com 2013-01-09 16:44:05 UTC
No issues are found

Verified on RHEVM 3.2 - SF03 environment 

RHEVM: rhevm-3.2.0-4.el6ev.noarch
VDSM: vdsm-4.10.2-3.0.el6ev.x86_64
LIBVIRT: libvirt-0.10.2-13.el6.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.348.el6.x86_64
SANLOCK: sanlock-2.6-2.el6.x86_64

Comment 5 Itamar Heim 2013-06-11 09:39:55 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 09:39:58 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 09:53:32 UTC
3.2 has been released