Red Hat Bugzilla – Bug 1036885
CreateVDSCommand Logging message does not report NIC devices
Last modified: 2016-02-10 14:20:58 EST
Description of problem: The log entries for CreateVDSCommand do not include information on NICs. Version-Release number of selected component (if applicable): 3.2.x How reproducible: Always Steps to Reproduce: 1. Check engine.log for any entries for CreateVDSCommand Actual results: NIC hardware is not reported, as other devices attached to the VM (e.g. ide0, balloon0, etc..) are. Expected results: NICs should be reported in this log entry
This is a sample of the CreateVDSCommand log: 2013-10-29 10:40:38,347 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand] (pool-6-thread-50) [6796abd5] org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand spiceSslCipherSuite=DEFAULT,memSize=1024,kvmEnable=true,smp=1,vmType=kvm,emulatedMachine=rhel6.4.0,keyboardLayout=en-us,memGuaranteedSize=1024,pitReinjection=false,nice=0,display=qxl,smartcardEnable=false,smpCoresPerSocket=1,spiceSecureChannels=smain,sinputs,scursor,splayback,srecord,sdisplay,susbredir,ssmartcard,timeOffset=0,transparentHugePages=true,vmId=999e2b59-886e-4065-901c-6937756d2cd1,devices=[Ljava.util.HashMap;@1a134cbf,acpiEnable=true,vmName=vm2,cpuType=Westmere,custom={} The entire VM devices aren't logged properly due the the implementation of CreateVDSCommand.logCommandInfo() which only prints a non-informative description of the devices content: devices=[Ljava.util.HashMap;@1a134cbf Moving it to infra to provide a more suitable solution for printing the VM configuration, and preferably printing that configuration prior to invoking the call to vdsm.
ovirt 3.4.0 alpha has been released
Verified in 3.4.0-0.7.beta2. 2014-02-17 11:50:20,605 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand] (ajp--127.0.0.1-8702-6) [1e908757] START, CreateVDSCommand(HostName = rhel6, HostId = f48bc3ff-2d0b-49f0-8144-2167321204d6, vmId=d29713cf-09fa-498c-8ef9-418544d23ea1, vm=VM [f20]), log id: 5e83cb65 2014-02-17 11:50:20,650 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand] (ajp--127.0.0.1-8702-6) [1e908757] org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand spiceSslCipherSuite=DEFAULT,memSize=1024,kvmEnable=true,smp=1,vmType=kvm,emulatedMachine=rhel6.5.0,keyboardLayout=en-us,memGuaranteedSize=1024,nice=0,display=qxl,smartcardEnable=false,smpCoresPerSocket=1,spiceSecureChannels=smain,sinputs,scursor,splayback,srecord,sdisplay,susbredir,ssmartcard,maxVCpus=160,timeOffset=0,transparentHugePages=true,vmId=d29713cf-09fa-498c-8ef9-418544d23ea1,devices=[{address={bus=0x00, domain=0x0000, slot=0x02, type=pci, function=0x0}, specParams={vram=32768, heads=1}, device=qxl, type=video, deviceId=da938105-225c-4a62-b2c5-2c96e60a8941}, {shared=false, iface=ide, index=2, address={unit=0, bus=1, target=0, controller=0, type=drive}, specParams={path=}, path=, device=cdrom, type=disk, readonly=true, deviceId=41a6d9a7-fe89-4e5b-9d60-8818a03b0c93}, {shared=false, index=0, volumeID=af4bc5d5-781d-4de8-a6e8-247905db1b02, propagateErrors=off, format=raw, type=disk, bootOrder=2, iface=virtio, domainID=aa3dea06-5396-4b73-80ef-8fe106a1f4f5, imageID=11eab773-befe-40c4-aab2-3bc8363ce9ff, specParams={}, optional=false, device=disk, poolID=00000002-0002-0002-0002-000000000002, readonly=false, deviceId=11eab773-befe-40c4-aab2-3bc8363ce9ff}, {nicModel=pv, bootOrder=1, address={bus=0x00, domain=0x0000, slot=0x03, type=pci, function=0x0}, specParams={}, macAddr=00:1a:4a:4f:f0:aa, device=bridge, linkActive=true, type=interface, filter=vdsm-no-mac-spoofing, network=ovirtmgmt, deviceId=0cd2badf-c96f-4a43-87e9-871ad39c5fe3}, {specParams={model=virtio}, device=memballoon, type=balloon, deviceId=cd547efb-b0d7-4b7a-b22d-8dc945c0ef23}, {index=0, model=virtio-scsi, address={bus=0x00, domain=0x0000, slot=0x04, type=pci, function=0x0}, specParams={}, device=scsi, type=controller, deviceId=13225bff-4aa5-4d4a-93ce-5e11198c3165}],acpiEnable=true,vmName=f20,cpuType=Westmere,custom={device_67b4caa2-90da-42cf-a8bf-5a5cfe8af254device_979ea2c2-7d20-4567-9923-7503ae4332e8=VmDevice {vmId=d29713cf-09fa-498c-8ef9-418544d23ea1, deviceId=979ea2c2-7d20-4567-9923-7503ae4332e8, device=spicevmc, type=CHANNEL, bootOrder=0, specParams={}, address={port=3, bus=0, controller=0, type=virtio-serial}, managed=false, plugged=true, readOnly=false, deviceAlias=channel2, customProperties={}, snapshotId=null}, device_67b4caa2-90da-42cf-a8bf-5a5cfe8af254device_979ea2c2-7d20-4567-9923-7503ae4332e8device_9e475d53-8f1d-45a9-9e3a-4e0342555fc3device_ed7d1bbf-76a2-4dc7-b77d-02532b872938device_25c5533f-8e08-4b1d-9bac-2765d0dadc1bdevice_655df104-8cf5-4b83-ac79-b2426027a45d=VmDevice {vmId=d29713cf-09fa-498c-8ef9-418544d23ea1, deviceId=655df104-8cf5-4b83-ac79-b2426027a45d, device=ide, type=CONTROLLER, bootOrder=0, specParams={}, address={bus=0x00, domain=0x0000, type=pci, slot=0x01, function=0x1}, managed=false, plugged=true, readOnly=false, deviceAlias=ide0, customProperties={}, snapshotId=null}, device_67b4caa2-90da-42cf-a8bf-5a5cfe8af254=VmDevice {vmId=d29713cf-09fa-498c-8ef9-418544d23ea1, deviceId=67b4caa2-90da-42cf-a8bf-5a5cfe8af254, device=unix, type=CHANNEL, bootOrder=0, specParams={}, address={port=1, bus=0, controller=0, type=virtio-serial}, managed=false, plugged=true, readOnly=false, deviceAlias=channel0, customProperties={}, snapshotId=null}, device_67b4caa2-90da-42cf-a8bf-5a5cfe8af254device_979ea2c2-7d20-4567-9923-7503ae4332e8device_9e475d53-8f1d-45a9-9e3a-4e0342555fc3device_ed7d1bbf-76a2-4dc7-b77d-02532b872938=VmDevice {vmId=d29713cf-09fa-498c-8ef9-418544d23ea1, deviceId=ed7d1bbf-76a2-4dc7-b77d-02532b872938, device=unix, type=CHANNEL, bootOrder=0, specParams={}, address={port=2, bus=0, controller=0, type=virtio-serial}, managed=false, plugged=true, readOnly=false, deviceAlias=channel1, customProperties={}, snapshotId=null}, device_67b4caa2-90da-42cf-a8bf-5a5cfe8af254device_979ea2c2-7d20-4567-9923-7503ae4332e8device_9e475d53-8f1d-45a9-9e3a-4e0342555fc3=VmDevice {vmId=d29713cf-09fa-498c-8ef9-418544d23ea1, deviceId=9e475d53-8f1d-45a9-9e3a-4e0342555fc3, device=virtio-serial, type=CONTROLLER, bootOrder=0, specParams={}, address={bus=0x00, domain=0x0000, type=pci, slot=0x05, function=0x0}, managed=false, plugged=true, readOnly=false, deviceAlias=virtio-serial0, customProperties={}, snapshotId=null}, device_67b4caa2-90da-42cf-a8bf-5a5cfe8af254device_979ea2c2-7d20-4567-9923-7503ae4332e8device_9e475d53-8f1d-45a9-9e3a-4e0342555fc3device_ed7d1bbf-76a2-4dc7-b77d-02532b872938device_25c5533f-8e08-4b1d-9bac-2765d0dadc1b=VmDevice {vmId=d29713cf-09fa-498c-8ef9-418544d23ea1, deviceId=25c5533f-8e08-4b1d-9bac-2765d0dadc1b, device=memballoon, type=BALLOON, bootOrder=0, specParams={model=virtio}, address={bus=0x00, domain=0x0000, type=pci, slot=0x07, function=0x0}, managed=false, plugged=true, readOnly=false, deviceAlias=balloon0, customProperties={}, snapshotId=null}}
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2014-0506.html