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

=== cpaelzer__ is now known as cpaelzer
otubosmoser: according to git blame, you were the one who wrote the big part of cloudinit/net/__init__.py, I was reading through and couldn't fully understand the usage of tmp_name. Why do we need to change to a tmp_name?13:52
otubo[context] I'm working on this bug https://bugzilla.redhat.com/show_bug.cgi?id=1846649, I can observe errors like these: https://pastebin.com/F96hYYhV13:55
ubot5bugzilla.redhat.com bug 1846649 in cloud-init "Network Interface name suddenly appears as cirename0" [High,New]13:55
meenala la la la https://cloudinit.readthedocs.io/en/latest/topics/hacking.html#cloudinit-net-cloudinit-distros-networking-hierarchy la la la https://bugs.launchpad.net/cloud-init/+bugs?field.tag=net-refactor la la la la13:55
otubosmoser: also I believe the error messages on the paste might not be related...13:56
otubomeena: omg :-o13:56
otubomeena: do you know about a work in progress for this refactor? Or it's just launchpad bug at the moment?13:59
meenaotubo: i'm currently working on https://github.com/canonical/cloud-init/pull/58813:59
meenaotubo: and Odd_Bloke has done two or three already13:59
meenaoh, wow, i got praised by smoser: https://github.com/canonical/cloud-init/pull/625#pullrequestreview-52269094714:01
meenaanyway, i have to go now; this meeting took a lot longer than 1 h, even tho it was supposed to be a lot shorter than that.14:01
otubomeena: thanks for the pointers, I'll read it through!14:03
meenaso; i think what i'm suggesting is; rather than trying to fix anything in cloudinit/net, we should move it to coudinit/distro/networking14:03
meenaoften times, the act of ripping out, and moving it over, exposes a lot of breaking points that shouldn't be there.14:04
otubomeena: agreed. But I really need to fix it for 18.5, which is the version the customer is running on their setup :(14:06
otuboAnd since I'm gonna fix it for 18.5 will be useless for the refactoring :D14:06
meenaprfffffftttt14:07
meenabut, okay :P14:07
otubo¯\_(ツ)_/¯14:08
otuboAlso, quick question for Openstack people out there: How do I change the content of files in config-drive?15:04
meenawho can tell me why we have a dependency on bash?16:57
smosermeena: it looks to me like it might just be write_boot_content in SmartOS and parse_shell_config in OpenNebula17:56
meenacan we fix that to be posix, smoser?17:57
smoserwell, the "parser" in OpenNebula  definitely wont work with just replacement of /bin/sh18:00
smoserwe need *some* way to read the shell "config" language they have there.18:01
smoserand on SmartOS i would think that if /bin/bash was not present, then using /bin/sh is reasonable.18:02
meenaah, aaahhh18:02
smoserbecause the alternative there is just failing .18:03
meenaI'm just trying to minimise dependencies on FreeBSD18:03
smoseryou can read the docstrin there... i remember arguing that no-shebang is a broken idea and that we should just try to execute it and be done with that.18:03
smoserits a weird thing.. "operator-script" and "user-script".18:03
smoserif i told you "hey, execute this script for me"18:04
smoserbut didn't tell you if it was python or perl or sh or expect, what is the right thing to do ?18:04
smosermeena: but  yeah... i think we probably dont really have a hard dependency on bash. and that you could fix those two things. with OpenNebula being more difficult.18:04
meenafile *18:05
smoserwhat would that tell you on a python program that had no shebang ?18:05
meenayeah, unfortunately, FreeBSD doesn't have a concept of recommends / suggests18:05
smoserwow.that is nutx.18:06
smoser$ file /tmp/doit18:06
smoser/tmp/doit: Python script, ASCII text executable18:06
smoserit actually figured it out.18:06
meenabut which version of python?18:06
smoserhttps://paste.ubuntu.com/p/3DywCmcNjG/18:06
smoseryeah.18:06
smoserso... i think its silly that they provide you with a blob (which might be text or mibht be a binary) and expect you to execute it.18:07
smoserwhen it might not have a shebang18:07
smoserbut... that was years ago, perhaps they've fixed.18:07
meenais this SmartOS or OpenNebula?18:07
meenahttps://github.com/canonical/cloud-init/pull/636 ⬅️ this pr was a ride18:08
meenaI'm glad nobody has merged the first iteration18:09
smosersmartos behavior is to execute a "operator script" with bash if it has no shebang.18:09
smoseropennebula uses shell as a config language.18:09
meenahttps://launchpadlibrarian.net/504093805/freebsd-fs.patch <= first iteration was the first hunk here18:10
meenasmoser, aye18:10
=== MAbeeTT_ is now known as MAbeeTT
meenavery different approach to the UFS (can-skip) resize issue: https://github.com/canonical/cloud-init/pull/655/files positive & negative case validated by tests21:44
meenalet's be honest here, i'm circling these dozens of issues and fixing them, and adding """easy""" tests, so i can get back more confidently to generate_fallback_network tests21:48
ms24Hello All - Im running Bionic on Vmware and have cloud init scripts that configures my machine - whenever I boot the VM - the Plymouth Spalsh screen appears and then I see the cloud-init running the scripts - Is there a way to hide the cloud-init verose log appearing during boot and run it in the background ? Thanks23:30

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