/srv/irclogs.ubuntu.com/2020/03/23/#cloud-init.txt

=== cpaelzer__ is now known as cpaelzer
andras-kovacsHi! Do you have any idea how can I disable cloud-init's resolv-conf module? I've added the manage_resolv_conf: false to my cloud.cfg but seems like cloud-init doesn't care about it. ☹︎ Thank you! (I'm using cloud-init-18.5)07:20
pmjdebruijn.wc09:17
tribaalaccount ran out of funds09:29
tribaalbouncer died09:29
tribaaloops, wrong chan. Apologies :)09:30
meenatribaal: you don't have to apologize to anyone for *that*10:54
tribaalhehe10:54
tribaalWell, you'd think that working for a public cloud you would somehow be more disciplined with regards to paying your cloud bills... :)10:56
meenaimagine if you ran out of money, and the utilities company shut off your water and electricity tho, that would suck.10:57
meenanot saying an irc bouncer is as important as electricity, but we've been selling people on the idea that cloud is a commodity, but we treat it … differently.10:58
tribaalmeena: that's a good point :) In this case however the blame sits squarely on myself and my email filtering rules: one of my account is "free" and antoher account is "paid" to test things as a normal user would, and my email rules dismissed the many  warning emails we usually send our users :)11:31
AnhVoMSFTrharper blackboxsw is there anyway to ask cloud-init to apply network config again through command line post boot?13:15
AnhVoMSFT(as in query metadata source, get networking information, render network config, apply it)13:17
Odd_Blokeandras-kovacs: What behaviour are you trying to disable?13:37
Odd_Blokemeena: The one time I've paid for electricity up-front (by topping up a card which plugs into the meter), that's exactly what happened when you ran out.13:40
meenaOdd_Bloke: i thought you lived in a more civilised country…14:07
Odd_Blokemeena: Well, the advantage of the system is that the utility company doesn't know who you are (you literally go to a corner shop with the card and can pay cash to top it up).14:10
Odd_BlokeThe flip side is that they don't have anyone to chase for unpaid bills, so it does turn off when you don't have money on it.14:10
Odd_BlokeGoneri: Travis failed to report results on #268 for some reason, looks like you have CI failures though: https://travis-ci.org/github/canonical/cloud-init/builds/66586096214:29
GoneriOdd_Bloke, thanks.14:29
Odd_Blokemeena: (But yes, I do believe that utilities should be publicly-owned and ~free. ^_^)14:29
Gonerimeena, https://github.com/canonical/cloud-init/pull/26914:47
meenalooking14:47
rharperAnhVoMSFT: on the cli for re-rendering the network config to the system; that's not there at the moment. it wouldn't be too hard to do though; we have a sub-command 'cloud-init devel net-convert'  which could get extended to take a datasource name, and optional flag to attempt to read from object cache15:01
Smithx10Hello fellow cloud-init'rs.    I was thinking of extending cloud-init to support void-linux15:39
Smithx10it uses rc.d,  what is a good way to get started.... just look at distros/ ?15:39
=== sQuEE` is now known as sQuEE
cloaked1powersj: still waiting for an answer on https://discourse.maas.io/t/how-to-mount-nfs-volume-via-preseed/1404 :)  Hopefully, the person who can answer the question becomes available today16:14
blackboxswSmithx10:  I think cloudinit.distros would be a good place to start.  NetBSD was just added a couple weeks ago. https://github.com/canonical/cloud-init/pull/6216:25
Smithx10Yeah,  it would be nice to see how non systemd systems interface16:26
Smithx10Thanks16:26
rharpercloaked1: I just replied, let me know if you have any more questions in the discourse thread, I'll reply there16:54
cloaked1Thank you rharper. Taking a look.16:55
GoneriOdd_Bloke, could you drop the wip label? https://github.com/canonical/cloud-init/pull/14718:52
GoneriOdd_Bloke, a review is also welcome :-)18:52
blackboxswdone Goneri18:52
Odd_BlokeMinor refactoring I found when digging into the archive mirror bug: https://github.com/canonical/cloud-init/pull/27119:27
blackboxswOdd_Bloke: rharper thoughts on this approach for Oracle non-initramfs distros? https://github.com/canonical/cloud-init/pull/174#pullrequestreview-37973351519:32
blackboxswI think we can avoid going doing EphemeralDHCP duplicate route setup in iscsi environments also by checking connectivity_url on Oracle only.19:33
blackboxswlanded #27119:40
rharperblackboxsw: did you see my email about daily ppa build failure ?19:40
blackboxswOdd_Bloke: shepherding question, are we waiting another week on robjo's feedback for https://github.com/canonical/cloud-init/pull/160 ?19:40
blackboxswrharper: no, looking now19:40
rharperblackboxsw: thanks, it looks like the ec2 static patches aren't building correctly; they don't apply19:41
robjoI was just about to look at that when something else popped up. I'll get to it tomorrow19:41
rharperthis is breaking all daily builds since it landed19:41
blackboxswrobjo: excellent, thanks sir19:42
=== cpaelzer__ is now known as cpaelzer
Odd_BlokeGoneri: Label removed.  Apologies, thought Chad had done that eariler. :)21:02
Gonerithanks. I just saw a couple of remaining comments from rharper. Otherwise the PR works fine.21:03
johnsonshiHey there, do you know what the syntax for a multiline runcmd is? Because of our specific use case, we cannot rely on the write_files module to write the files.21:04
johnsonshiWhat I am trying to do is use the runcmd module to do a here-doc cat21:04
johnsonshicat <<EOF >> /some/file21:04
johnsonshiBut it wouldn't be proper YAML syntax if a runcmd command spans multiple lines. I couldn't find examples of runcmd with a multiline command. Thanks as always guys :)21:05
rharperjohnsonshi: have you tried write_files ?21:05
rharperand you can template that cloud-config;  lemme see if I can work out a multi-line runcmd for you... I know we have a few of them; prepare for some yaml anchors21:06
johnsonshiFor our purpose, we need to use runcmd because we are need to run `sed -i`, and right after that, run `cat <<EOF`21:07
rharperk21:10
Odd_Blokejohnsonshi: YAML does support multi-line strings.21:12
Odd_Blokejohnsonshi: https://yaml-multiline.info/ <-- you want the literal block style, I believe21:14
johnsonshiOdd_Bloke: Thanks! Yeah I was trying out the other anchor (>) and it was wrong. Turns out (|) is what I needed. Thanks :)21:14
rharperjohnsonshi: https://paste.ubuntu.com/p/jvRWBkHxbN/    we make use of this  a lot in another project where we write quite a bit of shell in yaml;  this lets me write literal shell under my anchor and then just reference the anchor in a runcmd exec of sh or bash -c21:16
johnsonshirharper: Thanks. That syntax is neat and fits our purpose exactly. :)21:17
rharpercool21:18
Odd_Blokejohnsonshi: Yep, it's one of those things that once you know you know, but if you don't know what you're looking for then it's super hard to find. :)21:25
Odd_Blokehttps://github.com/canonical/cloud-init/pull/272 is the tests that I'll be modifying as I make my changes for the archive mirror selection bug we've been working21:26
Odd_BlokeFigured I may as well submit them separately, as they're useful regardless of the rest of the work (and I'm almost EOD).21:26
Gonerimeena, could you take a look at this one? https://github.com/canonical/cloud-init/pull/27322:45

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