/srv/irclogs.ubuntu.com/2020/04/20/#cloud-init.txt

punkgeekhow can i import a shell script to the vm by cloud-init?04:54
=== tds3 is now known as tds
andras-kovacsHi! Do you have any official images in Azure with cloud-init + LVM? The meta data collector part and runcmd don't work for me with my custom image.09:27
andras-kovacsIt was almost the same with OpenStack + LVM, but cloud-init could collect the meta data there and runcmd didn't work at all.09:27
andras-kovacsI've tried to comment all the mount, resizefs and growpart related modules09:28
andras-kovacsbut no luck :(09:28
andras-kovacsI really don't want to rely only on that stupid waagent09:28
andras-kovacsI like cloud-init09:28
meena11:27 <andras-kovacs> Hi! Do you have any official images in Azure with cloud-init + LVM? The meta data collector part and runcmd don't work for me with my custom image. ⬅️ is there any other way to growfs in Linux than LVM?12:05
andras-kovacsmeena: sorry is it a question? By default cloud-init will increase your root or other pre-defined partition early in the boot time. It never worked for me with LVM but I wrote a script for that. My problem now is other modules don't work also when I haven LVM on my disk.12:23
andras-kovacsNow I'm struggling with https://cloudinit.readthedocs.io/en/18.5/topics/datasources/azure.html12:26
andras-kovacsAnd now I had to remove cloud-init from my images with LVM because even if cloud-init services are disabled, waagent will start whining because of cloud-init's dhclient scripts.12:26
Odd_Blokeandras-kovacs: I'm not aware of any images using LVM, no.  What's the use case?13:45
Odd_Blokemeena: You don't need LVM to grow partitions on Linux, generally only for more complex use cases.13:47
andras-kovacsThe use case is some legacy colleagues and strange apps -> not in the good way. LVM is a must... :(14:15
andras-kovacsI still want to enjoy/utilize cloud-init + make my VM templates auto-grow to the selected flavor, use the datasources, etc.14:17
andras-kovacsWith OpenStack, the runcmd oart was ignored + I had to make a custom script to increase the LVM.14:17
andras-kovacsWith Azure, not the the datasource/meta-data part, neither runcmd works with LVM. :(14:17
andras-kovacsI think I'll open an issue/bug report for you with all the details soon.14:17
Odd_BlokeYep, sounds like a bug would be useful.14:18
andras-kovacs(I'll do the same for the dhclient vs NetworkManager lease files also just like you've recommended Odd_Bloke )14:18
Odd_BlokeFWIW, I would suggest not using the root disk of your instances for whatever complicated layout you want, but I understand that may not be practical. :)14:19
andras-kovacsAnd sorry for me whining all the time... cloud-init is just great and I really like it14:19
Odd_Bloke:)14:19
andras-kovacsthis is how silly me made the root volume grow automatically: https://pastebin.com/FbggLAXJ14:22
andras-kovacs(xfs is also a must)14:22
meena"legacy colleagues" is a new one…17:26
smoserandras-kovacs: https://bugs.launchpad.net/cloud-init/+bug/179995317:33
ubot5Ubuntu bug 1799953 in cloud-utils "growpart does not work for lvm" [Medium,Triaged]17:33
Odd_Blokerharper: blackboxsw: https://github.com/canonical/cloud-init/pull/326 <-- this should fix Jenkins failures we've been seeing18:29
rharperOdd_Bloke: nice ... I'm wondering if we need to have a general mock of net.read_sys_path like we do for util.subp18:30
* rharper just recently ported the util.subp replacement from cloud-init to curtin to catch those leaking execs; 18:31
Odd_BlokeYeah, that's a good thought.18:41

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