/srv/irclogs.ubuntu.com/2020/01/30/#cloud-init.txt

boolmanhey, cloud-init runs to early for me. is there any way to delay it?13:45
Odd_Blokeboolman: Could you expand on the problem you're trying to solve?14:37
boolmanOdd_Bloke: yeah sure, I have no issues at all running cloud-init for example on openstack vms. however, Im trying to get it to work on vmware, and I believe vmware is really slow to set the network configuration. so cloud-init is already done before it gets network access14:42
boolmanso this is installed on my vm template: https://github.com/vmware/cloud-init-vmware-guestinfo which allows me to send userdata and metadata to the vm during deploy ( terraform in my case )14:43
Odd_Blokeboolman: OK, that's useful information.  What specifically is failing?  (cloud-init _could_ happily use the guestinfo without networking, I think, so I'm guessing that there's userdata or somesuch that is breaking?)14:46
boolmanI've disable networking through cloud-init, network: { config: disabled }14:47
boolmanwhat is failing is basically everything that requires network, so apt_update, packages: [], bootcomd: [ ping -c 1 8.8.8.8 ]14:48
Odd_BlokeOK, and what distro/version is this, and how did you install cloud-init?14:51
boolmanubuntu bionic, apt-get install cloud-init14:52
Odd_BlokeMost Ubuntu cloud images already have cloud-init installed; how are you creating your image?14:53
boolmanthis was built from an cd iso14:53
boolmandont think I can run cloud images on vmware14:54
Odd_Blokehttp://cloud-images.ubuntu.com/releases/bionic/release/ has a variety of images (including a VMDK and an OVA), so you might want to consider using those (if changing the image source is an option).14:55
Odd_BlokeHow is networking being configured if not by cloud-init?14:55
boolmanhttps://www.terraform.io/docs/providers/vsphere/r/virtual_machine.html#cloning-and-customization-example15:07
boolmanthe network_interface {} block15:07
Odd_Blokeboolman: Hm, OK, I'm not familiar with that.  Does that actually generate network configuration inside the guest, or is it just configuring the devices that will be presented to the guest?15:13
boolmanyes it works, just not during the cloud-init's lifetime15:13
Odd_BlokeDo you know how it writes out its network configuration?  Ubuntu's boot has systemd-networkd-wait-online.service, which waits for networking before proceeding, and the network-dependent parts of cloud-init run after that.15:17
Odd_BlokeSo I would expect it to work regardless, but perhaps the network is configured after that point?15:17
Odd_Blokeboolman: Do you have files in /etc/netplan/... ?15:17
blackboxswrharper: minor doc suggestions on https://github.com/CanonicalLtd/uss-tableflip/pull/31 I put up https://github.com/CanonicalLtd/uss-tableflip/pull/32  as well17:18
rharperthanks17:18
boolmanmy vm boots and network is fine.20:29
wyoungNice work20:29
blackboxswahosmanMSFT: sorry, I'm finally poking at Azure CI tests now not seeing the timeout error so far. will give it a few runs and see if I can see it.23:14
ahosmanMSFTblackboxsw: Thanks, when issue was running multiple tests at once the issue occurs due to self._img_instance having different values in images.py on azurecloud platform. Also ssh time out issues due to wait_for_cloud_init function.23:15
blackboxswahosmanMSFT: you mean at once (in parallel) or serially running through the whole test suite?23:16
blackboxswI'm guessing serially running the whole suite right23:17
ahosmanMSFTyes23:17
blackboxswok thx. will give it a couple runs23:17
ahosmanMSFTThose issues occur at the same time, I was able to debug and find them seperately23:18
ahosmanMSFTbut the ssh one only effects time out23:18
ahosmanMSFTthe other issue (self._img_instance not updating) effects image building, so no snapshots23:19

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!