Created attachment 1114746 [details] engine_log_1 Description of problem: Upgrade engine from 3.5.7 to 3.6.2 with running VM form 3.5.7, Clone VM that created in 3.5. Version-Release number of selected component (if applicable): engine 3.5: 3.5.7-0.1.el6ev engine 3.6: 3.6.2-0.1.el6 Steps to Reproduce: 1. Create VM and start it on Host_1 2. Upgrade Host_2 and Host_1 to 7.2 3. Upgrade Cluster level to 3.6 4. Stop VM and clone it Actual results: Clone VM failed, see error below Expected results: Clone VM should succeed Additional info: From engine log: 2016-01-13 09:14:26,194 WARN [org.ovirt.engine.core.bll.CloneVmCommand] (ajp-/127.0.0.1:8702-3) [b615746] CanDoAction of action 'CloneVm' failed for user admin@internal. Reasons: VAR__ACTION__ADD,VAR__TYPE__VM,ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS
Created attachment 1114747 [details] engine_log_2
Israel, can you give me some additional information? 1. Number of monitors set in the VM. 2. Display type. 3. Display protocols (VNC, SPICE). 4. Was VM running during engine upgrade? 4. Was VM restored after engine upgrade from a snapshot that was made before the upgrade?
(In reply to Shmuel Melamud from comment #2) > Israel, can you give me some additional information? > > 1. Number of monitors set in the VM. > 2. Display type. > 3. Display protocols (VNC, SPICE). > 4. Was VM running during engine upgrade? > 4. Was VM restored after engine upgrade from a snapshot that was made before > the upgrade? 1. Number of monitors is: 1 2. Display type is (if you meant Video type): QXL 3. Display protocol is: SPICE 4. The VM was from 3.5 and it was running during the upgrade, i stopped the after it was migrate to 3.6 host and then is did the CloneVM, The clone is done after the upgrade. 5. It did not restore from snapshot.
please verify both the configuration is as expected(in general subtab) and also the running info in the main tab (same protocol) and that you can connect to the console when running. Also, was the VM launched by Run Once originally before the upgrade?
1. The clone VM failed so all the info is about the origin vm, and i did not change and setting of this VM. 2. I did not launch it with run once.
I couldn't reproduce the bug with the steps provided. Looking into the code, ACTION_TYPE_FAILED_ILLEGAL_NUM_OF_MONITORS may be returned if number of monitors in bigger than 1 (with VNC) or bigger than maximum number set in ValidNumOfMonitors option (with SPICE only). So, in addition to what Michal says, possibly ValidNumOfMonitors option was tainted during the upgrade or before? Is it possible to create any VM after the upgrade?
The problem is with VM that create in 3.5, if we will create VM after the upgrade it will create over 3.6 host.
Yes. But cloning a VM is indeed creation of a VM with the same parameters. If creation of a VM with "QXL, SPICE and 1 monitor" succeeds on 3.6 but cloning a similar VM fails, need to know what's the difference between two VMs. So, the question is: Is it possible to create a VM with "QXL, SPICE and 1 monitor" after the upgrade?
As we investigated yesterday, the VM at issue was restored from snapshot created before the upgrade to 3.6. Due to bug 1293299, graphics devices were not present in the VM after that. VmHandler.isNumOfMonitorsLegal() in this case returns false always. Fix for bug 1293299 must fix this bug also. Marking as duplicate. *** This bug has been marked as a duplicate of bug 1293299 ***