/srv/irclogs.ubuntu.com/2020/11/10/#cloud-init.txt

=== hjensas__ is now known as hjensas
Gonerimeena, FYI, I'm build some new images with 65514:31
meenaGoneri: does that use the resize feature?14:55
Goneriyes it does.14:55
meenaGoneri: https://reviews.freebsd.org/D2716114:56
GoneriI saw this one, nice patch :-)15:01
meenaonce again, far from done, but a good start15:03
meenawait till you see my systemd for FreeBSD patchset15:03
meenathis is half serious, btw, but a) i need a better name, or metaphor, and SMF is closer to what i want, and b) there's alot of groundwork missing in FreeBSD before that's possible15:07
rrdr20hello, i am trying to use ds=nocloud-net to configure network interfaces with a network-config file but it doesn't seem to be reading the data and using a fallback configuration15:23
rrdr20is anyone available to help me with the details?15:24
meenarrdr20: if i understand NoCloud's documentation correctly, it can't actually be used for networking configuration15:31
smosermeena: it can feed network.15:32
smoseryou shoudlnt need ds=nocluod-net on the kernel command line if you have a nocloud disk15:32
smoserand strictly speaking noclould-net is *not* what you want.15:33
smoseryou want nocloud (-net runs after network is up... "-net" there means it depends on the network)15:33
smoserbut that may have been made to not matter, i'm not sure.15:33
smoserrrdr20: but you absolutely can feed nocloud networking15:34
smoser https://asciinema.org/a/14577215:34
rrdr20due to the servers that we using (Dell R630) they are unable to boot from NVMe drives so we need PXE boot to get started which is why we opted  for nocloud-net15:34
meenasmoser: i think maybe the NoCloud docs need more love then15:34
rrdr20currently user-data and meta-data are being picked up correctly but network-config (v2) is not15:34
smoserrrdr20: there may be some wierdness with network config and pxe.15:36
smoseras cloud-init considers pxe to be "command line" networking, and thus (i think) to override file configuration15:37
smoser(just as normally 'command name --option-here' would override a configuration file /etc/command.conf15:37
smoserrrdr20: but i'd suggest opening a bug. and attaching cloud-init logs and content of the files you're feeding it.15:38
rrdr20ahh i see, thank you for the insight, i will try a configdrive as Meena has suggested and will open up a bug15:39
smoserbut in your case, if you're just pxe booting (kernel/initramfs) and not using anyremote mounts or anything, you dont need networking in the initramfs and that should not cost you.15:39
meenai did no such thing!15:40
smoseropen a bug though. and attach tarball15:40
meenai think15:40
smoseri'd be curious to see a full console log. so please attach that too. it'll be important to see what the initramfs is doing.15:40
rrdr20will do15:42
rrdr20meena I apologize, what i mean was that both you and smoser explanations make me think that I should try attaching a drive15:44
meenaConfigDrive is different from a NoCloud drive15:45
smoserits different, but not a lot.15:46
smoserand nocloud is simpler.15:46
smoserso i'd suggest it. ;)15:46
smoseras configdrive is specifically for openstack, and if you don't look exactly like a real-world openstack, not specifically openstack then cloud-init might "fix" something that coudl break you.15:47
rrdr20ok, i have 3 files: user-data, meta-data and network config that i would add to an ISO and then attach the server15:49
rrdr20then in my ipxe kernel command i would use ds=nocloud;s=/dev/sr0 (or some path)15:50
rrdr20is that right?15:50
smoseri think that if you attach a correctly created nocloud disk (iso or "disk image"), that it should "just work".15:57
smoseragain... the pxe boot could confuse it, but it really shouldn't.15:58
smoserand you should not need ds=nocloud on kernel cmdline as long as that is in datasource_list (and it usually is)15:58
meenacan anyone answer falcojr's questions here? https://github.com/canonical/cloud-init/pull/655#pullrequestreview-52732533716:26
meenamy intuition is that it's not caught anywhere, and fatally stop this module, which is better than potentially breaking the Filesystem16:28
rrdr20smoser I just tried booting via PXE with an ISO attached16:45
rrdr20the results were similar in that meta-data and user-data were picked up but network-config was not applied16:46
rrdr20at the end of my /var/log/cloud-init-output.log it says that it finished with Datasource [seed=/dev/sr0][dsmode=net]16:48
rrdr20so i think your assumption that PXE boot may be causing some confusion16:49
smoserrrdr20: open a bug... that will give us the info we need. ;)17:15
smoserand include the contents of your iso17:15
smoserbasically... i can ask you for that stuff here, or look at it there (as well as other people can)17:15
rrdr20i will get one open when i return, thank you for your help so far17:16
=== ijohnson is now known as ijohnson|lunch
=== ijohnson|lunch is now known as ijohnson
meenacan somebody take a look at https://github.com/canonical/cloud-init/pull/588 's failing test? so far my only clue is that it might be python version related21:20
Odd_Blokemeena: That error is because of the autospeccing; evidently `assert_not_called` is not included in the object which autospec produces.21:43
meenaevidently?21:44
meenait works on my machine!21:44
Odd_BlokeYou need a crustier version of Python.21:44
Odd_BlokeA matured version of Python, which exhibits this behaviour.21:44
Odd_Bloke(It reproduces for me in 3.5, but not in 3.9.)21:45
meenai don't want to infest my system with python 3.5!!21:45
Odd_BlokeI'm using a container for this, you could create a jail?21:46
meenai actually develop on an Ubuntu… and i have different pythons installed with pyenv…21:47
Odd_Blokemeena: But I've checked and `call_count` is present, so you can do `assert 0 == m_generate_fallback_config.call_count` instead.21:47
meenai could21:48
meenacan you "suggest a change"? cuz I'm in bed21:48
meena(reading the tests i've deleted, and pondering how to replace them)21:49
Odd_BlokeDone.21:49
meenaalso, a comment from somebody who knows stuff, would be greatly appreciated here https://github.com/canonical/cloud-init/pull/655#pullrequestreview-52732533721:55
=== dionysus70 is now known as dionysus69

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