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

Bug 926959

Summary: [engine-web-admin-portal] move disk button of stateless vm is not greyed out
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-engine-webadmin-portalAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acanan, acathrow, amureini, derez, dron, ecohen, iheim, jkt, jlibosva, Rhev-m-bugs, scohen, yeylon
Target Milestone: ---Flags: scohen: Triaged+
Target Release: 3.3.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: is2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:18:01 UTC 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:
Attachments:
Description Flags
vdsm+engine logs none

Description Elad 2013-03-24 13:50:37 UTC
Created attachment 715512 [details]
vdsm+engine logs

Description of problem:

'move' disk button of stateless vm is not greyed out, hence, UI gives an option to do live storage migration of stateless VM.


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

rhevm-webadmin-portal-3.2.0-10.14.beta1.el6ev.noarch
rhevm-backend-3.2.0-10.14.beta1.el6ev.noarc
vdsm-4.10.2-11.0.el6ev.x86_64

How reproducible:
100%

Steps to Reproduce: in a 2 (or more) storage domains setup:
1. Create stateless VM with disk(s) and run it
2. try to move VM's disk to the other storage domain

  
Actual results:

the 'move' button is not greyed out

Expected results:

'move' button of stateless VM should be greyed out

Additional info:

2013-03-24 15:12:35,184 WARN  [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (pool-3-thread-47) [1867e6c0] CanDoAction of action CreateAllSnapshotsFromVm failed. Reasons:VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,ACTION_TYPE_FAILED_VM_RUNNING_STATELESS

see logs attached

Comment 1 Ayal Baron 2013-03-27 09:43:57 UTC
Daniel, any problem in graying it out in this state?

Comment 2 Daniel Erez 2013-04-15 08:39:43 UTC
(In reply to comment #1)
> Daniel, any problem in graying it out in this state?

On Disks sub-tab (under VMs main-tab), it can be grayed out easily. On Disks main-tab, we currently don't gray out the button (VM bussiness entity is not available). Do we want to prevent it on canDoAction as well?

Comment 3 Ayal Baron 2013-05-08 08:44:45 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Daniel, any problem in graying it out in this state?
> 
> On Disks sub-tab (under VMs main-tab), it can be grayed out easily. On Disks
> main-tab, we currently don't gray out the button (VM bussiness entity is not
> available). Do we want to prevent it on canDoAction as well?

definitely

Comment 4 Daniel Erez 2013-05-31 17:32:00 UTC
*** Bug 969065 has been marked as a duplicate of this bug. ***

Comment 5 Daniel Erez 2013-06-09 10:17:21 UTC
* Disks sub-tab (under VMs main-tab):
Move button is disabled only when the VM is defined as stateless (on VM creation/update). I.e. when running as stateless using run-once the relevant info (VM -> isStateless flag) is not available; Hence, displaying a canDo error message.

* Disks main-tab:
The relevant VM b.e. is not available, therefore invoking a canDo error message instead of graying-out the button.

Comment 6 Elad 2013-06-24 07:32:14 UTC
move button is now greyed out under the disk sub-tab when trying to move disk of running stateless vm. 
When trying to move the disk from 'disks' tab, we get:
 CanDoAction of action LiveMigrateVmDisks failed. Reasons:VAR__ACTION__MOVE,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_VM_RUNNING_STATELESS


verified on rhevm3.3 is2
rhevm-3.3.0-0.4.master.el6ev.noarch

Comment 7 Allon Mureinik 2013-12-02 13:16:41 UTC
*** Bug 976672 has been marked as a duplicate of this bug. ***

Comment 8 Itamar Heim 2014-01-21 22:18:01 UTC
Closing - RHEV 3.3 Released

Comment 9 Itamar Heim 2014-01-21 22:24:27 UTC
Closing - RHEV 3.3 Released