Bug 1394868 - Web Gui - changing VM's host to a specific host is not seen when reopening the same window the 2nd time
Summary: Web Gui - changing VM's host to a specific host is not seen when reopening th...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ovirt-4.2.0
: ---
Assignee: Tomas Jelinek
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-14 15:44 UTC by Avihai
Modified: 2017-08-14 14:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-14 14:09:40 UTC
oVirt Team: Virt
tjelinek: ovirt-4.2?
tjelinek: planning_ack?
tjelinek: devel_ack?
tjelinek: testing_ack?


Attachments (Terms of Use)
Attachment of missing specific host description (80.32 KB, image/jpeg)
2016-11-15 08:45 UTC, Avihai
no flags Details

Description Avihai 2016-11-14 15:44:01 UTC
Description of problem:
Web Gui - changing a VM's host while online does not work or does not display proper error if it should be blocked

Version-Release number of selected component (if applicable):
oVirt Engine Version: 4.1.0-0.0.master.20161111231310.gitd12e6f1.el7.centos

How reproducible:
100%

Steps to Reproduce:
1.Create 2 hosts in one cluster 
2.Create a VM in that cluster & see VM is assigned to host1 (camel_vdsb)
3.edit the VM -> host -> specific host -> choose host2(camel_vdsc) -> press OK  

Actual results:
1.VM does not move to the selected host or if its not possible show an error - which no error appears.
2.Reopening the edit VM window -> host -> I do not see any host assigned but a blank. 


Expected results:
1.VM should move to the selected host or if not possible show an error.
2.Reopening the edit VM window I should see the new VM . 


Additional info:
At Engine logs I see the following warnings :
016-11-14 17:27:41,507 INFO  [org.ovirt.engine.core.bll.tasks.AsyncTaskManager] (DefaultQuartzScheduler5) [21c95526] Cleared all tasks of pool 'c7006a66-c997-4e44-ba85-6b2d5e2e6e5c'.
2016-11-14 17:27:57,075 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-16) [224505b8-c0a8-4bf7-8d70-773862cd37ca] Field 'balloonEnabled' can not be updated when status is 'Up'
2016-11-14 17:27:57,079 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-16) [224505b8-c0a8-4bf7-8d70-773862cd37ca] Field 'rngDevice' can not be updated when status is 'Up'
2016-11-14 17:27:57,082 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-16) [224505b8-c0a8-4bf7-8d70-773862cd37ca] Field 'soundDeviceEnabled' can not be updated when status is 'Up'
2016-11-14 17:27:57,084 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-16) [224505b8-c0a8-4bf7-8d70-773862cd37ca] Field 'consoleEnabled' can not be updated when status is 'Up'
2016-11-14 17:27:57,087 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-16) [224505b8-c0a8-4bf7-8d70-773862cd37ca] Field 'virtioScsiEnabled' can not be updated when status is 'Up'
2016-11-14 17:27:57,090 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-16) [224505b8-c0a8-4bf7-8d70-773862cd37ca] Field 'graphicsDevices' can not be updated when status is 'Up'
2016-11-14 17:27:57,349 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-12) [a00f197e-7835-455f-a124-1e1ab24689c4] Lock Acquired to object 'EngineLock:{exclusiveLocks='[VM3=<VM_NAME, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]', sharedLocks='[e3338b20-c4e7-43f1-9bd7-023b7e12d8f1=<VM, ACTION_TYPE_FAILED_VM_IS_BEING_UPDATED>]'}'
2016-11-14 17:27:57,405 INFO  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-12) [a00f197e-7835-455f-a124-1e1ab24689c4] Running command: UpdateVmCommand internal: false. Entities affected :  ID: e3338b20-c4e7-43f1-9bd7-023b7e12d8f1 Type: VMAction group EDIT_VM_PROPERTIES with role type USER,  ID: e3338b20-c4e7-43f1-9bd7-023b7e12d8f1 Type: VMAction group EDIT_ADMIN_VM_PROPERTIES with role type ADMIN
2016-11-14 17:27:57,406 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-12) [a00f197e-7835-455f-a124-1e1ab24689c4] Field 'balloonEnabled' can not be updated when status is 'Up'
2016-11-14 17:27:57,413 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-12) [a00f197e-7835-455f-a124-1e1ab24689c4] Field 'rngDevice' can not be updated when status is 'Up'
2016-11-14 17:27:57,416 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-12) [a00f197e-7835-455f-a124-1e1ab24689c4] Field 'soundDeviceEnabled' can not be updated when status is 'Up'
2016-11-14 17:27:57,417 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-12) [a00f197e-7835-455f-a124-1e1ab24689c4] Field 'consoleEnabled' can not be updated when status is 'Up'
2016-11-14 17:27:57,419 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-12) [a00f197e-7835-455f-a124-1e1ab24689c4] Field 'virtioScsiEnabled' can not be updated when status is 'Up'
2016-11-14 17:27:57,421 WARN  [org.ovirt.engine.core.utils.ObjectIdentityChecker] (default task-12) [a00f197e-7835-455f-a124-1e1ab24689c4] Field 'graphicsDevices' can not be updated when status is 'Up'

Comment 1 Yaniv Kaul 2016-11-15 06:51:08 UTC
Why should it move? What happens the next time you start the VM? I think your expectation is that it'll live migrate to the new host is wrong.

Comment 2 Tomas Jelinek 2016-11-15 07:29:02 UTC
@Avihai: the meaning of the field you have edited was "where to start the VM". This does not have an effect on a running VM. If you turn the VM off and start again, it should start on the host you have picked in the dialog.

If you want to move (e.g. migrate) the VM from one host to the other without restarting it, you need to click the "migrate" button in the VM main tab (not in the dialog but on the main tab itself).

Comment 3 Avihai 2016-11-15 08:45:49 UTC
Created attachment 1220760 [details]
Attachment of missing specific host description

@Tomas: 

So the first expected result is the expected behavior .
But the 2nd expected result does not look like expected behavior .

2nd expected result:
Reopening for the 2nd time (the edit VM window -> host tab ) 
after already choosing a specific host -> I do not see any host assigned but a blank.


I also attached a print screen so you can see it for yourself .

Comment 4 Avihai 2016-11-15 09:39:44 UTC
I  will also change the bugs header as well

Comment 5 Tomas Jelinek 2016-11-18 12:10:24 UTC
right, it indeed looks like a bug

Comment 6 Tomas Jelinek 2017-08-14 14:09:40 UTC
this has been fixed upstream and will arrive in 4.2, closing.


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