/srv/irclogs.ubuntu.com/2020/01/08/#cloud-init.txt

otuboblackboxsw: tribaal well, we don't have a specific plan right now, but we're in terms of having one pretty soon. I'm working together with the Fedora maintainer so we can have a better policy for updating the package, so that could be extended to CentOS as well.10:09
otuboI'll send an email to the group once we have a plan. Thanks for asking about that :-) And sorry for the delay on the replay, I was on vacation :-)10:10
tribaalotubo: oh, that's good to hear! in the mean time, what would you suggest to be the best course of action? For context, we're a cloud provider maintaining several OS base images - CentOS beingone of them - and we recently (in 19.3) have our own cloud-init datasource that we'd like to use instead of the more generic former one10:59
tribaalso, ubuntu images have their cloud-init version SRU'd, and for debian 10 we will inject a deb from testing and do our own QA pass over it, but I'm not too sure what the best course of action is here for CentOS/Fedora (having personally had less exposure to those ecosystems)11:00
tribaalotubo: also - "an email to the group" -> I'd be very interested to be part of that group if I'm not there already via e.g. the cloud-init mailing list :)11:06
otubotribaal: https://launchpad.net/~cloud-init there's a mailing list section at the bottom :)11:26
otubotribaal: if I understand you correctly, all you need is more or less an updated package version for CentOS so you can use your DataSource?11:27
tribaalotubo: yes, correct. We could build a new package ourselves (of course) but would rather help test/contribute if appropriate11:46
tribaalwe don't (currently) maintain public archives for rpms either, so skipping the cost of setting that up would be welcome. But again, if needed, we can.11:47
otubotribaal: what are the issues when using your DS with current available packages?11:48
tribaalotubo: so, in 18.5 (or generally, before 19.3) the datasource we use is racy in specific conditions, resulting in a portion of cloud-init runs to fail to bring up networking. Note: that's specific to our platform.11:51
tribaalsince we want to have the liberty to diverge from our previously-used datasource (cloudstack), we created an Exoscale specific one, the first fix being that specific race condition11:53
otubotribaal: I understand. Well I can't promise you any dates, but I'm positive we're going to update at least Fedora in February.12:13
otubotribaal: I still need to work on CentOS12:13
tribaalotubo: understood - let me know if/how we can help12:16
otubotribaal: what about a small vps on your infrastructure for running tests? :-)13:11
robjorharper: ping14:53
rharperrobjo: here15:23
robjorharper: received a bug w.r.t. mixing "static" and DHCP IP addresses, i.e. IPv4 may be static and IPv6 dynamic or vice versa15:24
robjoI think we have reached the breaking point of trying a non-differentiated write of ifcfg-eth*15:25
robjoOK with introducing a "flavor" into the sysconfig dict that configures the renderer?15:25
robjoBOOTPROTO setting needs to be handled differently between SLES and RHEL?15:26
rharperreading15:33
robjohttps://bugs.launchpad.net/cloud-init/+bug/185880815:33
ubot5Ubuntu bug 1858808 in cloud-init "On SUSE mixed static and dhcp setups are no properly configured" [Undecided,New]15:33
robjoRHEL will complain about BOOTPROTO setting of dhcp4 and dhcp6, I think15:34
rharperyes15:34
rharperI'm updating bug with doc details15:34
robjoI'll add the SLES doc15:35
rharperIve done that15:35
robjolol15:36
rharpercurrently looking for why we set BOOTPROTO="static"15:36
rharperas that doesn't seem to have any affect; I suspect none is the right setting instead15:36
robjoIn newer versions, per comment in the code we do not set static15:36
rharperok15:36
robjoWell "none" is implied "static", I am not a fan of this being implicit15:37
rharpersure; but I suspect it's better to follow documentation of the distro15:37
robjoWell, "none" if we write that actually has a meaning:15:40
robjonone15:40
robjo                     For bonding slaves, to .....Note:  Do not use to just skip the IP setup -- use15:40
robjo                     BOOTPROTO="static"  without  any  addresses in the IPADDR15:40
robjo                     variables (or routes) instead.15:40
rharperhrm15:40
rharperthat's troublesome; I don't see any code that checks the static value15:40
robjowe really do want "static" when that's what we get from the config ;)15:41
rharpernm, I totally missed the first line15:43
anankeso this is a fun error. running '/usr/bin/cloud-init status --wait' on amazon linux 2 results in a 'NameError: global name 'PermissionError' is not defined'16:16
anankefull error: http://dpaste.com/3NEB0AS16:17
rharperhttps://bugs.launchpad.net/cloud-init/+bug/183114616:25
ubot5Ubuntu bug 1831146 in cloud-init "PermissionError undefined on python 2.7" [Medium,Triaged]16:25
blackboxswananke: what distro again CentOS 7?16:34
Odd_Blokeblackboxsw: "on amazon linux 2"16:35
blackboxswwhich is python3 ?16:36
Odd_BlokeIs it?16:36
blackboxswI thought it wasn't as we heard in cloud-init summit I think?16:36
blackboxswheh, and right (I was oblivious to the "on amazon linux 2" and jumped straight to the error16:37
blackboxswhttps://forums.aws.amazon.com/message.jspa?messageID=87022016:37
blackboxswAL2  default looks to be py2 per that thread and the faq for core packages maintained https://aws.amazon.com/amazon-linux-2/faqs/16:38
blackboxswsooo Odd_Bloke with us dropping py2.7 in trunk, where does that leave AL2 and it's python2 default16:39
blackboxsws/trunk/tip16:39
Odd_BlokeIt leaves Amazon needing to get into this^Wlast decade. :316:40
blackboxswmaintaining their own cloud-init py2 compat support I suppose16:40
blackboxswyeppers, unfortunately16:40
anankefigures that I'd dig up another issue :)16:40
Odd_BlokeFor a non-sarcastic answer, I'm not entirely sure.16:40
blackboxswyeah and not one this time that upstream would be likely to address ananke :/ it's still worth a bug https://bugs.launchpad.net/cloud-init/+filebug16:41
Odd_BlokeWell, the bug is in 18.5, right?16:41
ananke/bin/cloud-init 18.5-2.amzn216:41
Odd_BlokeWhich was advertised as supporting 2.7.16:41
anankeyep16:41
blackboxswOdd_Bloke: ahh right. :/16:41
blackboxswso that'd be us patching the last py2 support branch16:42
anankethis is whatever the latest amazon linux 2 btw16:42
Odd_BlokeYeah, though there's not much benefit to doing that if Amazon aren't going to use that branch.16:42
blackboxswminor changeset to fix that for python2 :/16:42
Odd_BlokeSo we probably need to reach out to Amazon and talk to them about how they want to handle this sort of issue, as they're one of the last places that has Python 2 in their most recent release.16:43
anankewith amazon pushing cloud-init, I imagine they'd be receptive16:47
Odd_Blokeblackboxsw: rharper: BTW, realised I hadn't actually done the thing: https://github.com/canonical/cloud-init/pull/15917:04
blackboxswhaha Odd_Bloke17:04
blackboxswman17:04
blackboxswoops broke protocol17:04
blackboxswbtw rharper https://github.com/canonical/cloud-init/pull/77 has a nit if you'd like to add it to the comment17:05
blackboxswwe can land that then ^17:05
Odd_BlokeHaha, was just about to point that out.17:05
Odd_Blokeblackboxsw: If you want it fixed, should it be Approved?17:05
blackboxswsince you are making the rules Odd_Bloke you can break them :)17:05
blackboxswOdd_Bloke: I guess that falls into "Aprrove (with nits)"17:06
blackboxswI can make the change then :)17:06
rharperblackboxsw: I think so, I have allow edits enabled17:06
blackboxswwill try that out now17:06
blackboxswhrm so should I be able to git push ryan's github repo  fix/network-static6-rendering17:10
* blackboxsw reads the docs17:11
blackboxswas I don't think I can add a comment to a file that wasn't touched by the original PR via the github PR web UI17:11
blackboxswgot it17:17
blackboxswgit checkout <rh-remote>/<pr_branch_name> -b <local_branch>; add nits; git commit -am 'nits' ; git push <rh-remote> <local_branch>:<pr_branch_name>17:19
blackboxswoops, clicked the merge button before fully scrubbing the squashed commit message. Odd_Bloke rharper when we have Co-authored-by references in a squash merge commit, should we be using our @canonical or personal emails?17:33
blackboxswit seems Dan and I have a default email set as personal17:34
blackboxswnot sure it matters much as our merge markers are all authored as @canonical17:35
blackboxswI've switched my primary email address in my github profile to chad.smith@canonical.com, but then I need to remember to change/override that for any external opensource projects I would touch.17:36
blackboxswmeena: I think the only thing blocking one of your PRs is dropped the integration test test_boottime from the PR (and maybe addressing an integration testt as a separate PR) https://github.com/canonical/cloud-init/pull/53/files#r36006116418:14
Odd_Blokeblackboxsw: I don't think it particularly matters, TBH.18:38
blackboxswOdd_Bloke: as in we can land as is, or maybe add a comment #TODO(move to cloud_tests) for that test?18:40
Odd_Blokeblackboxsw: No, I meant the thing you pinged me about. :)18:40
blackboxswahh email18:41
blackboxswright18:41
meenafriends, it's late here( 20:38)so I'm in bed already and very sleepy19:39
meenaI'll clean this up tomorrow19:40
wyoungnn19:40
anankeis there a recommended solution for running 'runcmd' items as a specific user?21:31
anankesay I have just a few commands, so not worth creating a discrete script. I could prepend each one with sudo, but it would seem there would be an easier way21:36
Odd_Blokeruncmd doesn't have support for it, from looking at the code.21:39
Odd_BlokeWe could consider adding such support, though we would need to think about the security/correctness implications of not using sudo (or, I suppose, we could just call sudo).21:41
Odd_Blokeananke: You could do `sudo sh -c "...; ..."`, which simplifies things a little.21:41
anankeOdd_Bloke: thanks for the suggestions!21:54
Odd_Bloke:)22:15
smoserananke: yaml anchors are useful22:52
smoserhttp://paste.ubuntu.com/p/35DFhjsGYP/22:52
smoserthats the kind of stuff that smoser wastes time on.22:53
robjosmoser: What does this mean in Ubuntu? in a netplan23:01
robjoeth1:23:01
robjo                        match:23:01
robjo                            macaddress: cf:d6:af:48:e8:8023:01
robjo                        set-name: eth123:01
robjodoes the interface get brought up but get no IP address?23:02
robjoor does dhcp magically run?23:02
powersjhmm I thought you had to have a dhcp4: true or a addresses:23:14
blackboxswyowsa smoser that is a hefty bit of cloud-config. me saves it to grok a bit later23:26
blackboxswI don't use anchors nearly enough (and probably need to check it out via the cloud-init devel schema annotation stuff to make sure we can annotate properly)23:27
blackboxsws/nearly enough/at all/23:28

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