/srv/irclogs.ubuntu.com/2018/04/12/#cloud-init.txt

blackboxswpersonally I like seeing your separate commits post my last review. there's gotta be a way to do that once someone has already git push --force'd to a remote.00:22
blackboxswI guess I could just git diff rhrper-repo/branch-name and see it before I pull00:23
blackboxswpersonally I like seeing your separate commits after my most recent review.*00:24
smoserrharper: so templates/chrony.conf.debian.tmpl:01:41
smoserhas a non-ascii char in it.01:41
smoserand as yo udiagnosed, that is getting decoded somewhere as ascii in python27 jinja201:41
smoserand it just isnt ascii01:41
smoserhttp://paste.ubuntu.com/p/c5jxV6Rg45/02:00
smoserthat recreates the basic failure02:00
smoserhttps://stackoverflow.com/questions/22181944/using-utf-8-characters-in-a-jinja2-template02:04
smoserwell, ignore that. that failure wasnt right. but its somewhere around there.02:06
apollo13blackboxsw, rharper: thanks, any reason to prefer manual_cache_clean over /etc/cloud/cloud-init.disabled or just personal pref?08:25
rcjrharper: I see that you're working on chrony support (according to blackboxsw in https://cloud-init.github.io/status-2018-03-19.html#status-2018-03-19) Will that land for bionic?12:57
smoserrcj: yes. will land today13:43
smoserrharper: we need your network-ipv6 fix today too13:43
smoserrcj: but the images to my knowledge do not have chrony installed.13:44
smosercloud-init will not install chrony if systemd-timesyncd is present, it will just configure that.13:45
rharpersmoser: network-ipv6?13:57
smoser10 second timeout14:01
rharperoh, netplan14:02
rharperyes, that would be really good to get an upload into bionic at least14:02
rharpereven if it needs an SRU to artful14:02
rharperI have the PR in14:03
cyphermoxI'll review in a bit and upload that with some other bugfixes14:03
rharperthx14:03
smoserrharper: i had thought that that was in cloud-init ... sorry i missed rthat.14:05
rharpersmoser: I had a branch to disable-ra in cloud-init but after discussion with stgraber I realized the underlying issue was related to how systemd-networkd handles RA14:06
rharperand what the default netplan setting was14:06
rharperso that's probably why you thought we had some cloud-init work to do14:06
smoserrharper: and yes... thank you for seeing that. i had in 2 places seen the ~ 13 second network config and just thought "wow, their dhcp server is really slow"14:26
rharperyeah; it actually come up under the autopackage test failures on bionic in lxd containers because the network wasn't yet on line and apt update/install failed14:27
smoserwell,. that needs fixing :)14:27
smosersleep 5 && echo "everything ready!"14:28
rharperthey added some retry logic14:28
rharperhttps://lists.ubuntu.com/archives/ubuntu-devel/2018-February/040138.html14:29
smoservery much a need in Ubuntu for "wait until system is booted" command.14:36
rharperfolks disagree what "booted" means; I think that thread demonstrates that14:41
CyclohexaneIs there a known issue with any of these packages? https://pastebin.com/kwT1Fs8c I'm following https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-migrate-ipv6.html#ipv6-dhcpv6-rhel and it works absolutely fine on a fresh install, then I run yum update and the whole thing goes caput, networking dies and the server becomes inaccessible...14:41
rharperdid you reboot or just after the yum update completes ?14:43
rharpercloud-init isn't active after boot, so an update to cloud-init won't affect a running instance;14:44
Cyclohexanei reboot yeah, as the amazon guide says14:46
rharpercloud-init at that level isn't going to affect the network config; it's just dhcp on eth014:47
rharperif you look at the instance console-log, that should show if cloud-init ran, it dumps the network state of the instance14:48
Cyclohexaneyeah cloud-init runs, but and updates per 99-custom-network.cfg but then when cloud-init runs netstat -rn the route table is dead so it loses connectivity14:50
Cyclohexaneit works fine prior to running yum update, can reboot and it comes back up with ipv6 connectivity14:50
rharpermaybe the dhcp update then ?14:51
rharperI suspect you may need to bisect your update ; upgrade a few at a time to see if keeps networking, or not14:51
smoserhttp://paste.ubuntu.com/p/FsDxksfVS3/15:09
smoserrharper: $ grep -r can.t templates/15:24
=== dpb1_ is now known as dpb1
Cyclohexanerharper: it seems to be this https://bugs.centos.org/view.php?id=1458516:02
rharpersmoser: ok, pushed an update to the branch to update template and drop the related changes16:08
rharperCyclohexane: yeah, not much info there;   you could 1) yum upgrade  2) make a copy of /etc/sysconfig/{network,network-scripts}  3) add the 99-custom-networking.cfg to /etc/cloud/cloud.cfg.d/ and then 4) cloud-init --force --debug init --local  which will re-run the initial cloud-init stage that renders network config;  then compare /etc/sysconfig/{network, network-scripts} contents with your copy and see whats different16:11
Cyclohexanerharper: https://gist.githubusercontent.com/bytestream/cb6fa966875b902cdb34986047eca1b3/raw/1183714df137a7df9441600f242cab46df52ffa7/gistfile1.txt16:28
rharperCyclohexane: if /etc/sysconfig/network-scripts/ifcfg-eth0 is the same before and after, then it's not the config that cloud-init is generating16:34
rharperCyclohexane: if possible, you could add a second interface and configure that with a public ip, or a second vm in the same VPC both with dual nics in the same network; you could  then hop through the second interface to see what things look like after reboot16:37
blackboxswsmoser: we good on https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/342761?16:39
Cyclohexanerharper: it's something to do with changes between cloud-init-0.7.9-9.el7.centos.2.x86_64 and cloud-init-0.7.9-9.el7.centos.6.x86_64, I downgraded cloud-init after yum update back to .2 and it's working fine again16:41
dpb1Cyclohexane: you should file a bug, or add to that one you found already16:49
smoserblackboxsw: acked.17:22
smosertahnks17:22
smoserrharper: you must have cherry picked my commit from trunk ?17:27
smoser0f7745619ab0a61d7dee5bde43e1e970ddf4a9b6 is on your branch but is17:27
smosernever mind17:28
smosernoise here17:28
smoserrharper: responded on your mp17:45
smoseri like it. thank you17:46
rharpersmoser: checking, thanks18:13
rharpersmoser: fixed  https://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/33943818:27
smoserblackboxsw:19:30
rharperhttps://code.launchpad.net/~raharper/cloud-init/+git/cloud-init/+merge/34312219:37
smoserrharper: isnt' there some argparse -> bash completion ?19:49
rharpersmoser: maybe19:49
rharperI'll look19:49
blackboxswooooh raharper... nice I did bash completion for landscape, will check19:54
rharperblackboxsw: yeah, dpb1 mentioned that19:54
blackboxswrharper: yeah per smoser's comment python3-argcomplete might do some of this work for us, and doesn't add any more dependencies besides that package20:09
rharperwell, I was interested in static generate of the file20:09
rharperlike build-time run argparse to shell code and pack that up20:10
blackboxswtime-saver :)20:10
rharperrather than having python runtime during tab-tab20:10
smoseryeah. you'd think something like that would exist20:10
dpb1ntp merged?20:13
rharperdpb1: y20:16
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34312720:16
dpb1rharper: woop!!!20:17
dpb1upload?20:17
smoserrharper: the files you got for templates20:17
smoserthey were exactly from debian/ubuntu ?20:17
smoserwith the "can?t"20:18
rharperyes20:18
rharperlook at bionic's chrony.conf20:18
rharperlemme fire up sid20:19
rharperyeah20:20
smoserblackboxsw: around?20:27
blackboxswsmoser: yep20:27
blackboxswhangout?20:28
smoseryeh20:28
blackboxswrelease related20:28
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34312020:29
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34312720:31
smoserman. that exception_cb is a mess.21:02
smoserwho wrote this stuff21:02
smoserreadurl and wait_for_url are much different in what they pass21:02
smoserblackboxsw: i'll be back in in ~ 3 hours i guess.21:32
blackboxswsounds good. just pushed robjo's changes  into my nettools branch, will have a devel branch up for you  before you get back. if you find the net-tools changes good I'll check in later to see if we want to land that21:33
blackboxswpushed https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/343136 for bionic release to include ntp/chrony fixes22:09
smoserblackboxsw: merged yours and uploading23:58

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