Hide Forgot
Created attachment 1160306 [details] engine log Description of problem: HE VM auto-import failed with NullPointerException Version-Release number of selected component (if applicable): ovirt-engine-4.0.0-0.0.master.20160520171419.gitc4a2b1b.el7.centos.noarch How reproducible: Always Steps to Reproduce: 1. Deploy HE on NFS storage 2. Add NFS storage domain to engine 3. Wait for HE VM auto import Actual results: I see that engine success to auto-import HE storage domain, but fails to auto-import HE VM Expected results: HE storage and VM auto-import must succeed Additional info: Tried it only on NFS storage, so I can not be sure that the same behaviour exists also for other storages.
It's also a good idea to put the first few lines of the NPE in the bug description: 1. It gives a good hint where the issue is. 2. It allows to search for it later (to find duplicates).
2016-05-22 14:05:51,823 ERROR [org.ovirt.engine.core.bll.exportimport.ImportVmCommand] (org.ovirt.thread.pool-8-thread-18) [] Exception: java.lang.NullPointerException at org.ovirt.engine.core.common.businessentities.storage.BaseDisk.setDiskVmElements(BaseDisk.java:83) [common.jar:] at org.ovirt.engine.core.bll.VmHandler.updateDisksVmDataForVm(VmHandler.java:338) [bll.jar:] at org.ovirt.engine.core.bll.utils.VmDeviceUtils.updateBootOrder(VmDeviceUtils.java:991) [bll.jar:] at org.ovirt.engine.core.bll.utils.VmDeviceUtils.addManagedDevice(VmDeviceUtils.java:1398) [bll.jar:] at org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice(VmDeviceUtils.java:936) [bll.jar:] at org.ovirt.engine.core.bll.utils.VmDeviceUtils.addDiskDevice(VmDeviceUtils.java:920) [bll.jar:] at org.ovirt.engine.core.bll.utils.VmDeviceUtils.addImportedDiskDevices(VmDeviceUtils.java:1432) [bll.jar:] at org.ovirt.engine.core.bll.utils.VmDeviceUtils.addImportedDevices(VmDeviceUtils.java:1415) [bll.jar:] at org.ovirt.engine.core.bll.exportimport.ImportVmCommand.lambda$processImages$0(ImportVmCommand.java:606) [bll.jar:] Looks like its related to commit 6e55d137d5ca32085da8c4d2bf2b6841463422ae "core: Move disks boot and interface properties to DiskVmelement" Tal this is your change, can you have a peek?
See please comment 2
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.
Veri
Verified on rhevm-4.0.0.2-0.1.el7ev.noarch Checked on ISCSI and NFS storages
oVirt 4.0.0 has been released, closing current release.