This VM and interface cause NPE
id | vm_guid
| vmt_guid | mac_addr | name | speed | type |
_create_date | _update_date | linked |
vnic_profile_id
--------------------------------------+--------------------------------------+----------+-------------------+------+-------+------+-------------------------------+-------------------------------+--------+--------------------------------------
29c09fc1-1ddf-40e1-8355-1acbdd84f913 |
cb5dee7e-5bc6-4eb3-88a9-614a90ebfd71 | | 00:1a:4a:2f:48:83 | nic1
| 10000 | 3 | 2017-04-26 23:31:58.662743+08 | 2019-07-06
00:35:27.401616+08 | t | 0f1c7d97-a156-416c-a62a-ed7d5bc3dc0e
(1 row)
On Fri, Jul 5, 2019 at 7:03 PM Dominik Holler <dholler(a)redhat.com> wrote:
Can you please share the output of
/usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "select * from
vm_interface"
? You are welcme to restrict like
/usr/share/ovirt-engine/dbscripts/engine-psql.sh -c "select * from
vm_interface where vm_guid='xxx' "
if you know the id of the vm.
On Fri, Jul 5, 2019 at 9:46 AM Richard Chan <richard(a)treeboxsolutions.com>
wrote:
> Encountering a NPE on 4.2.8. This is the first start after a 4.1 to 4.2
> upgrade.
>
> 2019-07-05 15:36:56,912+08 ERROR
> [org.ovirt.engine.core.vdsbroker.CreateVDSCommand]
> (EE-ManagedThreadFactory-engine-Thread-45700) [64500cdd-b623-4bb1-a7a1-841
> 6b4e6723b] Failed to create VM: java.lang.NullPointerException
> at
>
org.ovirt.engine.core.vdsbroker.builder.vminfo.LibvirtVmXmlBuilder.lambda$writeInterfaces$26(LibvirtVmXmlBuilder.java:1198)
> [vdsbroker.jar:]
> at
> java.util.Comparator.lambda$comparing$77a9974f$1(Comparator.java:469)
> [rt.jar:1.8.0_212]
> at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
> [rt.jar:1.8.0_212]
> at java.util.TimSort.sort(TimSort.java:220) [rt.jar:1.8.0_212]
> at java.util.Arrays.sort(Arrays.java:1512) [rt.jar:1.8.0_212]
> at
> java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:348)
> [rt.jar:1.8.0_212]
> at
> java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:483)
> [rt.jar:1.8.0_212]
> at
> java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
> [rt.jar:1.8.0_212]
> at
> java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
> [rt.jar:1.8.0_212]
> at
> java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
> [rt.jar:1.8.0_212]
> at
> java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> [rt.jar:1.8.0_212]
> at
> java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
> [rt.jar:1.8.0_212]
> at
>
org.ovirt.engine.core.vdsbroker.builder.vminfo.LibvirtVmXmlBuilder.writeInterfaces(LibvirtVmXmlBuilder.java:1199)
> [vdsbroker.jar:]
> at
>
org.ovirt.engine.core.vdsbroker.builder.vminfo.LibvirtVmXmlBuilder.writeDevices(LibvirtVmXmlBuilder.java:1045)
> [vdsbroker.jar:]
> at
>
org.ovirt.engine.core.vdsbroker.builder.vminfo.LibvirtVmXmlBuilder.buildCreateVm(LibvirtVmXmlBuilder.java:254)
> [vdsbroker.jar:]
> at
>
org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand.generateDomainXml(CreateBrokerVDSCommand.java:93)
> [vdsbroker.jar:]
> at
>
org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand.createInfo(CreateBrokerVDSCommand.java:50)
> [vdsbroker.jar:]
> at
>
org.ovirt.engine.core.vdsbroker.vdsbroker.CreateBrokerVDSCommand.executeVdsBrokerCommand(CreateBrokerVDSCommand.java:42)
> [vdsbroker.jar:]
> at
>
org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.executeVdsCommandWithNetworkEvent(VdsBrokerCommand.java:123)
> [vdsbroker.jar:]
> at
>
org.ovirt.engine.core.vdsbroker.vdsbroker.VdsBrokerCommand.executeVDSCommand(VdsBrokerCommand.java:111)
> [vdsbroker.jar:]
> at
>
org.ovirt.engine.core.vdsbroker.VDSCommandBase.executeCommand(VDSCommandBase.java:73)
> [vdsbroker.jar:]
> at
> org.ovirt.engine.core.dal.VdcCommandBase.execute(VdcCommandBase.java:33)
> [dal.jar:]
>
> This leads to Failed to run VM message. Any ideas?
>
>
>
>
>
>
>
>
>
> Thanks
> Richard Chan
> _______________________________________________
> Users mailing list -- users(a)ovirt.org
> To unsubscribe send an email to users-leave(a)ovirt.org
> Privacy Statement:
https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
>
https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
>
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ICCUANEM2C3...
>
--
Richard Chan
Chief Architect
TreeBox Solutions Pte Ltd
1 Commonwealth Lane #03-01
Singapore 149544
Tel: 6570 3725
http://www.treeboxsolutions.com
Co.Reg.No. 201100585R