Red Hat Bugzilla – Bug 877938
engine: Block changing monitors during vm hibernation
Last modified: 2015-09-22 09:10 EDT
Created attachment 647643 [details]
Description of problem:
I tried changing the monitor from vnc to spice during vm hibernation.
although the change was made to db and engine log shows that RunVm is sent with spice, the vdsm runs createVm with vnc which crashes spice when we try to open the monitor.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. in two hosts cluster run a vm with vnc monitor
2. hibernate the vm
3. change monitor to spice
4. restore vm
5. try to open spice monitor
we fail to open monitor.
vdsm and libvirt show that the vm is run with vnc and engine log and db shows that we changed vnc to spice
we should change monitor in vdsm as well.
Additional info: logs
tested on these 3 vm's:
[root@gold-vdsd ~]# vdsClient -s 0 list table
77e21637-42a9-4ab5-aa20-de75b9b33c2c 23828 XP Up
b8419107-a4a2-48b9-b82a-6d9a2fc50add 23410 RHEL6 Up
8d33face-b5f1-42b3-8540-7879441a4e49 27081 hateya Up
What should be blocked is the option to change VM configuration while it is hibernated.
Hibernate is save state to file, this means the VM must be started with the same configuration it had before the hibernate, or the inconsistent state may cause unpredictable behavior.
Please move this to engine to block the change.
changed to engine
Failed updating the properties of the VM. This may be caused either by:
1. The values selected are not appropriate for the VM; or
2. Its values cannot be updated while the VM is in UP state (Please shut down the VM in order to modify properties such as CPU or cluster).
3.2 has been released