ManageIQ is unable to pass cloud-init data to RHEV-M


#1

Hello,

I have the following environment : RHEV-M 4.0.5 with 2 physical servers RHEV 4.0.5 on them. I created a rhel 7.3 template with cloud-init installed on it. I followed the documentation for cloud-init and was successful to deploy a new VM using “use cloud-init/sysprep” dialog. I was able to set hostname, ip addres, dns, etc. Everything works as expected.

After all, I deployed a MIQ using rhev ova, version “darga-4.1.20170105145529_cfe2abe”, added my RHEV-M over Compute -> Infrastructure -> Provider filling both “Default” and “C & U Database” dialogues. MIQ was able to detect everything on RHEV-M.

I finally tried to provision a VM using MIQ. Filled out the each box for each screen and submitted. VM is created on RHEV-M successfully. (correct name, correct system settings) However clouid-init parameters (IP address, OS hostname, dns, etc ) are not set.

When we deploy the VM using RHEV-M, it is setting this parameters using a openstack formated iso which is mounted to the VM as an additional cdrom during startup. But when using MIQ, there seems no additional cdrom, so cloud-init can not find any information and can not set the parameters. This is my finding so far.

Here is the engine.log entry for both deployments. most significant difference is RHEV-M is using “CreateVmFromCloudInitVDSCommand” while MIQ uses “CreateVDSCommand”

MIQ
2017-01-24 09:32:55,758 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand] (default task-89) [7451ad83] org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand memGuaranteedSize=8192,smpThreadsPerCore=1,cpuType=SandyBridge,vmId=89769802-2625-484e-9705-3c2a3dd40be1,acpiEnable=true,vmType=kvm,smp=2,smpCoresPerSocket=1,emulatedMachine=pc-i440fx-rhel7.2.0,smartcardEnable=false,guestNumaNodes=[{memory=8192, cpus=0,1, nodeIndex=0}],transparentHugePages=true,displayNetwork=ovirtmgmt,vmName=lap02ngcpconf.int.teb.com.tr,maxVCpus=16,kvmEnable=true,devices=[{type=video, specParams={vgamem=16384, heads=1, vram=8192, ram=65536}, device=qxl, deviceId=7d9d6440-dac6-4955-8acd-bc6c5f1568a5}, {type=graphics, specParams={fileTransferEnable=true, spiceSecureChannels=smain,sinputs,scursor,splayback,srecord,sdisplay,ssmartcard,susbredir, spiceSslCipherSuite=DEFAULT, copyPasteEnable=true}, device=spice, deviceId=bc09feb2-260a-4e76-af76-eed49d355557}, {iface=ide, shared=false, path=, address={bus=1, controller=0, unit=0, type=drive, target=0}, readonly=true, index=2, type=disk, specParams={path=}, device=cdrom, deviceId=3d65e211-6842-44e8-af7a-c4af28dc2273}, {shared=false, address={bus=0, controller=0, unit=0, type=drive, target=0}, imageID=26033e32-6b81-4941-9e63-a7d659fd7349, format=raw, index=0, optional=false, type=disk, deviceId=26033e32-6b81-4941-9e63-a7d659fd7349, domainID=7ddec480-92a0-405a-a549-f9065f8f81ef, propagateErrors=off, iface=scsi, readonly=false, bootOrder=1, poolID=582ef777-021a-0327-001f-000000000294, volumeID=dbba2a0f-fc40-45dd-a01b-dce065a3cfb4, specParams={}, device=disk}, {filter=vdsm-no-mac-spoofing, nicModel=pv, address={bus=0x00, domain=0x0000, function=0x0, slot=0x03, type=pci}, type=interface, specParams={inbound={}, outbound={}}, device=bridge, linkActive=true, deviceId=73e7684a-9a44-4d0d-a25a-f736bd68b5aa, macAddr=00:1a:4a:16:01:65, network=10_72_32_0}, {address={bus=0x00, function=0x0, domain=0x0000, slot=0x06, type=pci}, type=balloon, specParams={model=virtio}, device=memballoon, deviceId=6907c820-12fa-4ab6-b3e9-5e9c4ee4b474}, {address={bus=0x00, domain=0x0000, function=0x0, slot=0x05, type=pci}, type=controller, specParams={}, device=virtio-serial, deviceId=371ac75b-fc8d-4b47-a50b-0035b6aa7a32}],custom={device_c2d2820e-0d9f-4cba-b11e-28fa1689d581device_ddf3bec3-b269-4572-b385-5482a038b249device_43d45d61-431b-41bb-974f-b2e34b657d03device_6535faa4-359e-4e71-ac26-2dd2cfd38aa3=VmDevice:{id=‘VmDeviceId:{deviceId=‘6535faa4-359e-4e71-ac26-2dd2cfd38aa3’, vmId=‘89769802-2625-484e-9705-3c2a3dd40be1’}’, device=‘ide’, type=‘CONTROLLER’, bootOrder=‘0’, specParams=’[]’, address=’{slot=0x01, bus=0x00, domain=0x0000, type=pci, function=0x1}’, managed=‘false’, plugged=‘true’, readOnly=‘false’, deviceAlias=‘ide’, customProperties=’[]’, snapshotId=‘null’, logicalName=‘null’, usingScsiReservation=‘false’, hostDevice=‘null’}, device_c2d2820e-0d9f-4cba-b11e-28fa1689d581device_ddf3bec3-b269-4572-b385-5482a038b249device_43d45d61-431b-41bb-974f-b2e34b657d03=VmDevice:{id=‘VmDeviceId:{deviceId=‘43d45d61-431b-41bb-974f-b2e34b657d03’, vmId=‘89769802-2625-484e-9705-3c2a3dd40be1’}’, device=‘unix’, type=‘CHANNEL’, bootOrder=‘0’, specParams=’[]’, address=’{bus=0, controller=0, type=virtio-serial, port=2}’, managed=‘false’, plugged=‘true’, readOnly=‘false’, deviceAlias=‘channel1’, customProperties=’[]’, snapshotId=‘null’, logicalName=‘null’, usingScsiReservation=‘false’, hostDevice=‘null’}, device_c2d2820e-0d9f-4cba-b11e-28fa1689d581=VmDevice:{id=‘VmDeviceId:{deviceId=‘c2d2820e-0d9f-4cba-b11e-28fa1689d581’, vmId=‘89769802-2625-484e-9705-3c2a3dd40be1’}’, device=‘spicevmc’, type=‘CHANNEL’, bootOrder=‘0’, specParams=’[]’, address=’{bus=0, controller=0, type=virtio-serial, port=3}’, managed=‘false’, plugged=‘true’, readOnly=‘false’, deviceAlias=‘channel2’, customProperties=’[]’, snapshotId=‘null’, logicalName=‘null’, usingScsiReservation=‘false’, hostDevice=‘null’}, device_c2d2820e-0d9f-4cba-b11e-28fa1689d581device_ddf3bec3-b269-4572-b385-5482a038b249=VmDevice:{id=‘VmDeviceId:{deviceId=‘ddf3bec3-b269-4572-b385-5482a038b249’, vmId=‘89769802-2625-484e-9705-3c2a3dd40be1’}’, device=‘unix’, type=‘CHANNEL’, bootOrder=‘0’, specParams=’[]’, address=’{bus=0, controller=0, type=virtio-serial, port=1}’, managed=‘false’, plugged=‘true’, readOnly=‘false’, deviceAlias=‘channel0’, customProperties=’[]’, snapshotId=‘null’, logicalName=‘null’, usingScsiReservation=‘false’, hostDevice=‘null’}},display=qxl,timeOffset=0,nice=0,maxMemSize=4194304,maxMemSlots=16,bootMenuEnable=false,memSize=8192

RHEV-M
2017-01-24 09:53:09,461 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVDSCommand] (org.ovirt.thread.pool-6-thread-17) [20aa33e2] org.ovirt.engine.core.vdsbroker.vdsbroker.CreateVmFromCloudInitVDSCommand memGuaranteedSize=8192,smpThreadsPerCore=1,cpuType=SandyBridge,vmId=0974460b-ce45-4501-a06b-fc90984fd810,acpiEnable=true,vmType=kvm,smp=2,smpCoresPerSocket=1,emulatedMachine=pc-i440fx-rhel7.2.0,smartcardEnable=false,guestNumaNodes=[{memory=8192, cpus=0,1, nodeIndex=0}],transparentHugePages=true,displayNetwork=ovirtmgmt,vmName=lap02ngcpconf.int.teb.com.tr,maxVCpus=16,kvmEnable=true,devices=[{iface=ide, shared=false, path=, readonly=true, index=3, type=disk, specParams={vmPayload={file={openstack/latest/meta_data.json=ewogICJuZXR3b3JrLWludGVyZmFjZXMiIDogImF1dG8gZXRoMFxuaWZhY2UgZXRoMCBpbmV0IHN0YXRpY1xuICBhZGRyZXNzIDEwLjcyLjMyLjI2XG4gIG5ldG1hc2sgMjU1LjI1NS4yNTUuMFxuICBnYXRld2F5IDEwLjcyLjMyLjFcbiAgZG5zLW5hbWVzZXJ2ZXJzIDEwLjcyLjM2LjE2MVxuICBkbnMtc2VhcmNoIGludC50ZWIuY29tLnRyXG4iLAogICJhdmFpbGFiaWxpdHlfem9uZSIgOiAibm92YSIsCiAgImhvc3RuYW1lIiA6ICJsYXAwMm5nY3Bjb25mLmludC50ZWIuY29tLnRyIiwKICAibGF1bmNoX2luZGV4IiA6ICIwIiwKICAibWV0YSIgOiB7CiAgICAicm9sZSIgOiAic2VydmVyIiwKICAgICJkc21vZGUiIDogImxvY2FsIiwKICAgICJlc3NlbnRpYWwiIDogImZhbHNlIgogIH0sCiAgIm5hbWUiIDogImxhcDAybmdjcGNvbmYuaW50LnRlYi5jb20udHIiLAogICJuZXR3b3JrX2NvbmZpZyIgOiB7CiAgICAicGF0aCIgOiAiL2V0Yy9uZXR3b3JrL2ludGVyZmFjZXMiLAogICAgImNvbnRlbnRfcGF0aCIgOiAiL2NvbnRlbnQvMDAwMCIKICB9LAogICJ1dWlkIiA6ICI5NGFlZWE3ZS1iZTU0LTQ3ZGMtOTcwNC0zNjE1MDE1MjI5OWIiCn0=, openstack/content/0000=YXV0byBldGgwCmlmYWNlIGV0aDAgaW5ldCBzdGF0aWMKICBhZGRyZXNzIDEwLjcyLjMyLjI2CiAgbmV0bWFzayAyNTUuMjU1LjI1NS4wCiAgZ2F0ZXdheSAxMC43Mi4zMi4xCiAgZG5zLW5hbWVzZXJ2ZXJzIDEwLjcyLjM2LjE2MQogIGRucy1zZWFyY2ggaW50LnRlYi5jb20udHIK, openstack/latest/user_data=I2Nsb3VkLWNvbmZpZwpvdXRwdXQ6CiAgYWxsOiAnPj4gL3Zhci9sb2cvY2xvdWQtaW5pdC1vdXRwdXQubG9nJwpkaXNhYmxlX3Jvb3Q6IDAKcnVuY21kOgotICdzZWQgLWkgJycvXmRhdGFzb3VyY2VfbGlzdDogL2QnJyAvZXRjL2Nsb3VkL2Nsb3VkLmNmZzsgZWNobyAnJ2RhdGFzb3VyY2VfbGlzdDoKICBbIk5vQ2xvdWQiLCAiQ29uZmlnRHJpdmUiXScnID4+IC9ldGMvY2xvdWQvY2xvdWQuY2ZnJwpzc2hfcHdhdXRoOiB0cnVlCmNocGFzc3dkOgogIGV4cGlyZTogZmFsc2UK}, volId=config-2}}, device=cdrom, deviceId=8c1bbb8a-71cf-4dfe-b04e-88ff7dc6b551}, {type=video, specParams={vgamem=16384, heads=1, vram=8192, ram=65536}, device=qxl, deviceId=d428c60d-adc6-492b-89bd-d4e06dc7509f}, {type=graphics, specParams={fileTransferEnable=true, spiceSecureChannels=smain,sinputs,scursor,splayback,srecord,sdisplay,ssmartcard,susbredir, spiceSslCipherSuite=DEFAULT, copyPasteEnable=true}, device=spice, deviceId=2023f3fd-c31f-402b-b55e-79f4e02a1c19}, {iface=ide, shared=false, path=, address={bus=1, controller=0, unit=0, type=drive, target=0}, readonly=true, index=2, type=disk, specParams={path=}, device=cdrom, deviceId=f6c36136-40ff-4bdc-9353-c84588f0a391}, {shared=false, address={bus=0, controller=0, unit=0, type=drive, target=0}, imageID=8a5bba08-109f-4ea1-819a-a385666d2a49, format=raw, index=0, optional=false, type=disk, deviceId=8a5bba08-109f-4ea1-819a-a385666d2a49, domainID=7ddec480-92a0-405a-a549-f9065f8f81ef, propagateErrors=off, iface=scsi, readonly=false, bootOrder=1, poolID=582ef777-021a-0327-001f-000000000294, volumeID=435cb4a1-d6e7-4600-b0b7-84cc942280c7, specParams={}, device=disk}, {filter=vdsm-no-mac-spoofing, nicModel=pv, address={bus=0x00, domain=0x0000, function=0x0, slot=0x03, type=pci}, type=interface, specParams={inbound={}, outbound={}}, device=bridge, linkActive=true, deviceId=56aa9347-9d0b-4b21-b25e-88dc748b94fe, macAddr=00:1a:4a:16:01:66, network=10_72_32_0}, {address={bus=0x00, function=0x0, domain=0x0000, slot=0x06, type=pci}, type=balloon, specParams={model=virtio}, device=memballoon, deviceId=214a04a6-2c87-4dd4-b28d-727ab3dc1547}, {address={bus=0x00, domain=0x0000, function=0x0, slot=0x05, type=pci}, type=controller, specParams={}, device=virtio-serial, deviceId=6e311e80-2c60-4845-af43-5166d2e6e682}],custom={device_052c3fd4-830f-4967-b32c-d1e5fa9f0b3adevice_08706113-1579-45c5-8a81-4aa845d24db5device_80dbc50d-1f2c-4a65-b7bc-c500888a9d8adevice_7c3bb74e-e3de-4795-b377-d9bbd23ca27e=VmDevice:{id=‘VmDeviceId:{deviceId=‘7c3bb74e-e3de-4795-b377-d9bbd23ca27e’, vmId=‘0974460b-ce45-4501-a06b-fc90984fd810’}’, device=‘ide’, type=‘CONTROLLER’, bootOrder=‘0’, specParams=’[]’, address=’{slot=0x01, bus=0x00, domain=0x0000, type=pci, function=0x1}’, managed=‘false’, plugged=‘true’, readOnly=‘false’, deviceAlias=‘ide’, customProperties=’[]’, snapshotId=‘null’, logicalName=‘null’, usingScsiReservation=‘false’, hostDevice=‘null’}, device_052c3fd4-830f-4967-b32c-d1e5fa9f0b3a=VmDevice:{id=‘VmDeviceId:{deviceId=‘052c3fd4-830f-4967-b32c-d1e5fa9f0b3a’, vmId=‘0974460b-ce45-4501-a06b-fc90984fd810’}’, device=‘spicevmc’, type=‘CHANNEL’, bootOrder=‘0’, specParams=’[]’, address=’{bus=0, controller=0, type=virtio-serial, port=3}’, managed=‘false’, plugged=‘true’, readOnly=‘false’, deviceAlias=‘channel2’, customProperties=’[]’, snapshotId=‘null’, logicalName=‘null’, usingScsiReservation=‘false’, hostDevice=‘null’}, device_052c3fd4-830f-4967-b32c-d1e5fa9f0b3adevice_08706113-1579-45c5-8a81-4aa845d24db5device_80dbc50d-1f2c-4a65-b7bc-c500888a9d8a=VmDevice:{id=‘VmDeviceId:{deviceId=‘80dbc50d-1f2c-4a65-b7bc-c500888a9d8a’, vmId=‘0974460b-ce45-4501-a06b-fc90984fd810’}’, device=‘unix’, type=‘CHANNEL’, bootOrder=‘0’, specParams=’[]’, address=’{bus=0, controller=0, type=virtio-serial, port=1}’, managed=‘false’, plugged=‘true’, readOnly=‘false’, deviceAlias=‘channel0’, customProperties=’[]’, snapshotId=‘null’, logicalName=‘null’, usingScsiReservation=‘false’, hostDevice=‘null’}, device_052c3fd4-830f-4967-b32c-d1e5fa9f0b3adevice_08706113-1579-45c5-8a81-4aa845d24db5=VmDevice:{id=‘VmDeviceId:{deviceId=‘08706113-1579-45c5-8a81-4aa845d24db5’, vmId=‘0974460b-ce45-4501-a06b-fc90984fd810’}’, device=‘unix’, type=‘CHANNEL’, bootOrder=‘0’, specParams=’[]’, address=’{bus=0, controller=0, type=virtio-serial, port=2}’, managed=‘false’, plugged=‘true’, readOnly=‘false’, deviceAlias=‘channel1’, customProperties=’[]’, snapshotId=‘null’, logicalName=‘null’, usingScsiReservation=‘false’, hostDevice=‘null’}},display=qxl,timeOffset=0,nice=0,maxMemSize=4194304,maxMemSlots=16,bootMenuEnable=false,memSize=8192

Any help is really appreciated !

Have a great day.

Thank you.


#2

@jhernandez Can you take a look at this issue?


#3

noone interested ?


#4

Did you get anywhere with this issue?