/srv/irclogs.ubuntu.com/2018/06/13/#cloud-init.txt

caribouHello,10:31
caribouI'm working on adding network support to our DataSourceScaleway10:31
caribouSo far, I'm able to get the config written on the first boot, but it gets overwritten by subsequent reboots10:31
caribouI believe that this is caused by the DEP_NETWORK dependancy10:31
caribouIf I understand correctly, Removing this DEP_NETWORK dependancy means that our DataSource is responsible for bringing up the network, right ?10:32
smosercaribou: a local datasource is one that can be identified positively by local resources.11:29
smoserit may declare supply network configuration for the system.11:30
mgerdtsAs I was reading though https://hackmd.io/NUUO4nndS4CXTItl8Rs6Nw?both, I was a bit confused by lines 59 & 70.  Should those both start with 'nic'?11:33
smoseri have to agree with you. i made the change there, but there are other occurences of 'nic', . lets ask rharper when he is in.11:37
mgerdtsok, sounds good11:38
=== hrybacki is now known as hrybacki|mtg
rharpersmoser: mgerdts:  yeah, it was nic there;   there is a general rough equivalence between nic and network;  but specifically hotplug of a NIC (which is really a udev event on kernel subsystem "net") is a rudimentary way of providing an indication to the guest that it should query metadata service for updated configuration;  you can imagine that a provide may indicate this in other ways and may want to reconfigure14:02
rharper"networking" whether or not a NIC has been added or removed14:02
rharperI'm happy to bikeshed on the schema we want to be more precise14:03
KingJI can see a fix for LP#1774666 has been merged in to trunk, what's the best way for me to get that on my system? Wait for the next build of the cloud-init-dev/daily PPA?14:35
rharperyep14:40
rharperbug #177466614:40
ubot5`bug 1774666 in netplan.io (Ubuntu Cosmic) "Bond interfaces stuck at 1500 MTU on Bionic" [Undecided,Confirmed] https://launchpad.net/bugs/177466614:40
KingJrharper: Thanks, i'll keep an eye on the PPA14:47
rharperKingJ: for Bionic, we need to do an SRU;   We'll do a new upstream snapshot during the SRU process and the daily ppa https://launchpad.net/~cloud-init-dev/+archive/ubuntu/daily  get get the bionic package before the SRU is complete; you can test that out there but once the SRU has been started, the package will also showup in bionic-proposed14:51
KingJWhat would the rough timelines be around the SRU / proposed / daily build? (apologies, this is the first time i've been blocked on something where the fix isn't quite out yet, but I appreciate it's not an instantaneous thing!)14:53
rharperwe can get a new upstream snapshot landed possibly today, maybe tomorrow, then the next days ppa will have the package, the SRU takes processing time to verify the changes once it's uploaded to -proposed, and then verification that it resolves the issues and no regressions, then a 7 day wait in -proposed for other testing and general wait before it's copied to -updates14:56
KingJGreat, i'll keep an eye out - thank you for the information :)15:03
rharpersure15:03
=== hrybacki|mtg is now known as hrybacki
mgerdtsrharper: thanks for clearing that up15:21
blackboxswsmoser: pushed pycodestyle fix to handle utf8 chars in cloud-config branch15:22
blackboxswjenkins is testing now https://jenkins.ubuntu.com/server/job/cloud-init-ci/79/15:22
blackboxswjust kicked off https://jenkins.ubuntu.com/server/job/cloud-init-integration-ec2-b/24/ which should give us a green now that salt_minion test fixes are in tip15:32
powersjsmoser: how do we 1) add bionic and 2) update devel to cosmic here: https://code.launchpad.net/~cloud-init-dev/+recipes15:45
=== r-daneel_ is now known as r-daneel
smoserrharper: responed https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34769815:53
smoserpowersj: getting that15:53
smoserpowersj: https://code.launchpad.net/~cloud-init-dev/+recipe/cloud-init-daily-devel15:57
smoserbah.15:57
smoserDistribution series. had 'bionic', not 'cosmic'15:57
smoserfixing15:57
powersjok so that just required selecting a different distro?15:58
blackboxswok fixing this today https://bugs.launchpad.net/cloud-init/+bug/177670116:03
ubot5`Ubuntu bug 1776701 in cloud-init "ec2: xenial unnecessary openstack datasource probes during discovery" [High,In progress]16:03
runelind_qIf I understand the workflow correctly, I apply an lxc profile to an ubuntu 18.04 container which influences cloud-init, which in turn influences netplan?  I'm just trying to figure out the best way to add a static DNS (ipv6) server16:04
mgerdtsDoes this mean that I will soon be able to not `route add -reject <link-local-address>` before running tests?16:04
blackboxswrunelind_q: my most common use-case for driving changes in cloud-init though lxc would be 'lxc init ubuntu-daily:bionic myb1; lxc config set user.user-data - < mycloudconfig.yaml;   lxc myb1 start;'16:08
blackboxswcat > mycloudconfig.yaml <<EOF16:09
blackboxsw#cloud-config16:09
runelind_qlooks like some of those values can just be set in the lxc profiles rather than passing another yaml file16:10
blackboxswrunelind_q probably so. lxc provides cloud-init with the proper-full network config which ends up in /var/lib/cloud/seed/nocloud-net/network-config on the booted container16:12
runelind_qcool, I'll take a look there16:12
runelind_qlots of abstraction going on :)  It's like Inception networking16:12
blackboxswlxc also provide vendor_data as distinct from user-data (which both get merged to provide cloud-init customization)16:12
blackboxswyeah definitely runelind_q, so when you provide a profile checkout that seed directory to see how lxc mapped it out. cloud-init consumes those to "do the right thing" with netplan16:13
rharperto do network-config in lxd, you need to specify that separately; you cannot user-data in network-config16:13
rharper https://github.com/lxc/lxd/blob/master/doc/cloud-init.md16:14
blackboxswrharper: can't you define the network-config via the same type of mechanism (right a profiles would allow you to differentate network-config for user.user-data)16:14
blackboxswjust saw the link, good one16:15
rharperyeah, it's just like user.user-data but it's a different file/template (network-config)16:15
blackboxswok good deal. So, if using the CLI instead of profiles :    lxc init ubuntu-daily:bionic myb1; lxc config set myb1 user.network-config -< mynetwork-v1-or-v2.yaml; lxc start myb1;'16:16
blackboxswand that should ultimately show up in /var/lib/cloud/seed/nocloud-net/network-config I would presume16:17
blackboxswon the container16:17
rharperyeah, was going to paste a quick  config to add the additional dns entry16:17
blackboxswthanks rharper16:17
=== r-daneel_ is now known as r-daneel
rharperthat said, I don't know if we have a way to append additional DNS entries on an interface using DHCP16:21
runelind_qI guess I could also see if containers will listen to DNS servers being advertised via SLAAC16:24
blackboxswshouldn't that come via the dhcp option when the client requests a lease?16:24
runelind_qthis is all ipv616:24
blackboxswyeah /me was thinking option 23 and option 24 in dhcpv6 :(16:26
rharperalmost there16:27
runelind_qstay on target16:30
rharper=)16:30
rharperI've got tone16:30
runelind_qyeah, not so much for RDNSS16:31
runelind_qoh, there it goes.16:33
rharper https://paste.ubuntu.com/p/9rPcBrGX3x/16:37
rharperI don't have dhcp6, so I can't tell, but on my system, it puts the static v6 dns in the list; not sure about priority; this falls into dark magic of networkd/systemd-resolved16:38
runelind_qyeah, it doesn't show up is resolv.conf, but v6 DNS works fine ¯\_(ツ)_/¯16:48
blackboxswok jenkins integration-ec2-b is finally green again. only known cloud-init CI errors remaining are ec2-x (because of openstack warnings) and  the -cosmic tests failing because of our ppa17:05
blackboxswboth in flight17:05
blackboxswok need to sort unit tests, but will be proposing the following as a fix for OpenStack datasource to avoid unneeded metadata probes on ec217:15
blackboxswhttps://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+ref/bug/1776701-openstack-local-no-probe-on-ec217:15
blackboxswheading to an early lunch.17:15
smoserblackboxsw: 2 fixes in review-mps pushed17:21
smoserhttps://github.com/CanonicalLtd/uss-tableflip/commit/15b5e593c48aba5f24fc921a11385e7fa8f4eb2917:22
smoserhttps://github.com/CanonicalLtd/uss-tableflip/commit/66fb6a5e9df8db41e96a13d6f1d7ce913bd2202817:22
rharperrunelind_q: sorry, resolv.conf is always going to point to 127.0.0.53 which is systemd-resolved caching nameserver (much like previous resolvconf in Ubuntu Xenial);  you can run:  networkctl status or systemd-resolved --status  and you can see the set of DNS endpoints you've got configured18:03
=== r-daneel_ is now known as r-daneel
blackboxswok no probe fix is up https://trello.com/c/0s2gnxyX/835-openstacklocal-should-not-probe-metadata-on-ec222:10
blackboxswnow onto joyent/azure hot/cold plug22:11
blackboxswpowersj: :(  looks like integration-c w/ lxd is an issue https://jenkins.ubuntu.com/server/view/cloud-init,%20curtin,%20streams/job/cloud-init-integration-ec2-c/5/console22:14
blackboxswon lxd and ec222:14
powersjyeah noticed that now that we have a daily cosmic deb22:14
powersjI can take a look tomorrow if you want22:14
blackboxswman it's like the red won't go away :/22:14
powersjheck of a lot better though22:14
blackboxswpowersj: yes please, I think I need to finish a strawman for a mtg tomorrow w/ joyent22:15
powersjand largely due to me switching from building master to using the built daily deb22:15
blackboxswyep, I was gonna say, "all powersj fault"22:15
powersjtotally22:15
blackboxswPEBPAK  (problem exists between Powers and keyboard)22:16
blackboxswhas nothing to do with code-quality mind you22:16
powersj;)22:23

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