Created attachment 1405872 [details] logs Description of problem: Start to VM that has an inactive disk fails with NullPointerException. Version-Release number of selected component (if applicable): rhvm-4.2.2.2-0.1.el7.noarch vdsm-4.20.20-1.el7ev.x86_64 libvirt-3.9.0-13.el7.x86_64 How reproducible: Always, on all storage types Steps to Reproduce: 1. Create a VM and attach a disk as inactive 2. Start the VM Actual results: 2018-03-08 09:36:47,597+02 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand] (default task-27) [vms_syncAction_fbc662bd-28c2-4c26] Command 'CreateBrokerVDSCommand(HostName = host_mixed_3, CreateVDSCommandParameters:{hostId='02998d6c-afc5-4813-8929-5fc055829ba7', vmId='9bdf6eac-83e3-44bc-86d4-3e2c6bb46080', vm='VM [vm_TestCase6231_0809354184]'})' execution failed: null 2018-03-08 09:36:47,597+02 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand] (default task-27) [vms_syncAction_fbc662bd-28c2-4c26] FINISH, CreateBrokerVDSCommand, log id: 7a39f00c 2018-03-08 09:36:47,597+02 ERROR [org.ovirt.engine.core.vdsbroker.CreateVDSCommand] (default task-27) [vms_syncAction_fbc662bd-28c2-4c26] Failed to create VM: java.lang.NullPointerException at java.util.HashMap.merge(HashMap.java:1225) [rt.jar:1.8.0_161] at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1320) [rt.jar:1.8.0_161] at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) [rt.jar:1.8.0_161] Expected results: Start VM should succeed Additional info: logs
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.
Sharon - your fix for bug 1543833 also covers this issue. The scenarios are slightly different, although the underlying issue is the same. I'm moving this BZ to you too, and leaving to your discretion whether to reference them both in the same patch or just close as a duplicate.
(In reply to Allon Mureinik from comment #2) > Sharon - your fix for bug 1543833 also covers this issue. > The scenarios are slightly different, although the underlying issue is the > same. I'm moving this BZ to you too, and leaving to your discretion whether > to reference them both in the same patch or just close as a duplicate. Since bug 1543833 deals with a different issue then I prefer to reference both to the same patch and not duplicated bugs.
*** Bug 1553947 has been marked as a duplicate of this bug. ***
Start VM starts normally with an inactive disk attached. Used: rhvm-4.2.2.6-0.1.el7.noarch vdsm-4.20.23-1.el7ev.x86_64
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.