/srv/irclogs.ubuntu.com/2021/01/14/#cloud-init.txt

=== meetingology` is now known as meetingology
scahartnerhi all. thanks for being online. would you guys be able to help me with a cloud-init question ?08:19
scahartnerI am looking for some pointers to use the nocloud datasource on a bare metal system running ubuntu 20.04 LTS. I tried updating the grub config adding the ds=nocloud-net;seedfrom=http://192.168.0.172/ubuntu/config/. but this didn't work08:27
MAbeeTThello scahartner I am not expert in cloud-init but answering this basic questions might help you. Do you see the string ds=nocloud-net; in cat /proc/cmdline ? does your server web in 192.168.0.172 get a request?08:42
scahartnersorry, had some network issues.10:05
MAbeeTTscahartner: so you solved the issue?10:23
scahartnerNope. not yet10:30
scahartnerThe datasource still reports as None, and no requests are being made to the webserver10:30
Odd_Blokescahartner: Could you pastebin /var/log/cloud-init.log, please?14:06
Odd_BlokeWe have another potential cloud-init regression: https://bugs.launchpad.net/bugs/191168014:18
ubot5Ubuntu bug 1911680 in cloud-init "Wrong access permissions of authorized keys file and parent directory when using absolute AuthorizedKeysFile" [Undecided,New]14:18
Odd_BlokeI'm investigating now.14:18
scahartnerany thoughts on how to use nocloud datasource for bare metal on ubuntu 20.04 with grub16:40
scahartnerhttps://pastebin.ubuntu.com/p/zDbypXpkMt/16:42
scahartnerI am using PXE boot to do the minimal ubuntu install of 20.04 LTS. I am hoping that after the initial installation, that I can use cloud-init / nocloud to apply additional configuration for security etc.16:43
scahartnerthe PXE boot with auto-install is working well, but the first boot after the install never makes any calls. I tried updating grub with  ds=nocloud-net;seedfrom=http://192.168.0.172/ubuntu/config/ but it never calls the server16:44
rharperscahartner:  subiquity uses cloud-init on first boot to configure the system;  so I think you want to extend the cloud-config that's used to include the other things you'd like to do;  see this comment around some customization using cloud-init and autoinstall;  https://bugs.launchpad.net/subiquity/+bug/1907107/comments/1917:14
ubot5Ubuntu bug 1907107 in cloud-init (Ubuntu) "cloud-init runs too late at first startup after ubuntu autoinstall" [Undecided,Incomplete]17:14
ajmyyraI'm currently converting datasource network config to version 2, and have run into some problems with stateless DHCPv6. as v2 is missing subnet type, it's only possible to toggle 'dhcp' and 'accept_ra' settings. tests for this under unittests/test_net.py are a bit confusing as same Netplan is expected to produce two different ENIs: https://pastebin.com/Y1uD257c23:07
ajmyyraany suggestions how could I achieve the stateless v6 config matching the lower expected ENI?23:08
ajmyyramy confusion is probably due to the fact that network config v2 seems to be valid netplan configuration, but I might be mistaken with this23:09
ajmyyranetplan has this expired issue on it and it seems that just setting "dhcpv6: true" and "accept_ra: true" would solve it, but doesn't it still produce nonfunctional ENI when converted?23:11

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