Bug 1305945 - All fields in edit VM disk dialog are wrongly editable
Summary: All fields in edit VM disk dialog are wrongly editable
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 3.6.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-3.6.3
: 3.6.3.2
Assignee: Tal Nisan
QA Contact: Elad
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-09 16:24 UTC by mlehrer
Modified: 2016-03-10 12:47 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-10 12:47:46 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-3.6.z+
rule-engine: blocker+
rule-engine: planning_ack+
tnisan: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)
ovirt / vdsm logs (2.42 MB, application/zip)
2016-02-09 16:24 UTC, mlehrer
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 53365 0 master MERGED webadmin: Disk edit dialogs are all enbabled when they should not 2016-02-12 11:53:48 UTC
oVirt gerrit 53426 0 ovirt-engine-3.6 MERGED webadmin: Disk edit dialogs are all enbabled when they should not 2016-02-12 17:02:52 UTC
oVirt gerrit 53427 0 ovirt-engine-3.6.3 MERGED webadmin: Disk edit dialogs are all enbabled when they should not 2016-02-12 17:04:43 UTC

Description mlehrer 2016-02-09 16:24:33 UTC
Created attachment 1122445 [details]
ovirt / vdsm logs

Description of problem:
Select VM disk that has Allocation Policy of thin provision.
Attempt to set to preallocated, all seems successful via the UI and Events panel.  Actual change was not successful, and VM disk remains as thin. 
Engine log reports ACTION_TYPE_FAILED_VM_IS_LOCKED
 
Version-Release number of selected component (if applicable):
ovirt-vmconsole-proxy-1.0.0-1.el6ev.noarch
libgovirt-0.3.2-1.el6.x86_64
rhevm-setup-plugin-ovirt-engine-common-3.6.2.5-0.1.el6.noarch
ovirt-engine-extension-aaa-jdbc-1.0.5-1.el6ev.noarch
ovirt-setup-lib-1.0.1-1.el6ev.noarch
rhevm-setup-plugin-ovirt-engine-3.6.2.5-0.1.el6.noarch
ovirt-host-deploy-java-1.4.1-1.el6ev.noarch
ovirt-host-deploy-1.4.1-1.el6ev.noarch
ovirt-vmconsole-1.0.0-1.el6ev.noarch

vdsm-hook-vmfex-dev-4.17.17-0.el7ev.noarch
vdsm-python-4.17.17-0.el7ev.noarch
vdsm-yajsonrpc-4.17.17-0.el7ev.noarch
vdsm-4.17.17-0.el7ev.noarch
vdsm-xmlrpc-4.17.17-0.el7ev.noarch
vdsm-jsonrpc-4.17.17-0.el7ev.noarch
vdsm-cli-4.17.17-0.el7ev.noarch
vdsm-infra-4.17.17-0.el7ev.noarch

libvirt-daemon-driver-network-1.2.17-13.el7_2.2.x86_64
libvirt-daemon-config-nwfilter-1.2.17-13.el7_2.2.x86_64
libvirt-daemon-kvm-1.2.17-13.el7_2.2.x86_64
libvirt-daemon-driver-interface-1.2.17-13.el7_2.2.x86_64
libvirt-daemon-driver-qemu-1.2.17-13.el7_2.2.x86_64
libvirt-lock-sanlock-1.2.17-13.el7_2.2.x86_64
libvirt-client-1.2.17-13.el7_2.2.x86_64
libvirt-python-1.2.17-2.el7.x86_64
libvirt-daemon-driver-storage-1.2.17-13.el7_2.2.x86_64
libvirt-daemon-driver-nwfilter-1.2.17-13.el7_2.2.x86_64
libvirt-daemon-driver-nodedev-1.2.17-13.el7_2.2.x86_64
libvirt-daemon-1.2.17-13.el7_2.2.x86_64
libvirt-daemon-driver-secret-1.2.17-13.el7_2.2.x86_64



How reproducible:
Each time

Steps to Reproduce:
1.Select Disk, and Press Edit
2.Set Allocation Policy to PreAllocated from Thin
3.Hit Ok
4.Event log shows VM X disk was updated successfully by admin

Actual results:
Editing the disk via UI after attempting to set to preallocated show it remains on thin.  The ovirt log shows the update disk failed: ACTION_TYPE_FAILED_VM_IS_LOCKED.


Expected results:
Allocation policy changed as drop down indicates, or warning that the disk update command failed.

Additional info:
Attempted with VMs that were on, or off.
Found in 3.6.2, also reproduced in separate enviroment of 3.6.3

Comment 1 Tal Nisan 2016-02-10 12:27:03 UTC
The bug is not the fact that the allocation policy cannot be changed since we never supported a change in the allocation policy, the actual bug resides in the fact that fields that cannot be updated appear as changeable (Allocation Policy, Size and more).
Investigating now, but this is the actual regression here.

Comment 2 Red Hat Bugzilla Rules Engine 2016-02-10 12:37:07 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 3 Elad 2016-02-22 13:54:34 UTC
The following fields are greyed out in edit disk prompt:

Size(GB)
Interface
Storage Domain
Allocation Policy

Verified using:
rhevm-3.6.3.2-0.1.el6.noarch
rhevm-webadmin-portal-3.6.3.2-0.1.el6.noarch


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