/srv/irclogs.ubuntu.com/2017/11/14/#cloud-init.txt

=== shardy is now known as shardy_lunch
=== shardy_lunch is now known as shardy
blackboxswhrm just reviewing our active queue today. https://code.launchpad.net/~johnguthrie/cloud-init/+git/cloud-init/+merge/331905 it feels like a nice thought (chef variable substitution. I feel like we could provide a variable substiturion mechanism for cloud-config modules based on the instance-data.json though instead which could be a bit more generic.17:39
blkadderPretty please?17:40
blkadderRight now I am writing a wrapper script to do substitutions in my yaml files and writing another script to do substitutions in config files on the box as I am trying to see how far I can get without using chef/puppet/et al.17:43
blkaddervariable substitution within cloud-init would be great...17:44
blackboxswhehe :) yep. I need to get https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330115 landed so we can build the substitution framework on that standardized instance-data.json17:45
blackboxswI might take a quick stab at it today to see how tough this substitution framework would be.17:46
blkadderI am sure a generic framework will be much more challenging than the very specific little tidbits I am doing. :-)17:47
blackboxswdefinitely, I'm trying to weigh how painful and whether it's better in the short term to grow our cc_* modules individual templating language vs. just swallowing the cost of generic templating17:53
blackboxsw(I'm an unrealistic optimist and hope the generic templating isn't too bad)17:54
blkadderHeh17:57
blackboxswthx robjo on the branch. couple comments for discussionhttps://code.launchpad.net/~rjschwei/cloud-init/+git/cloud-init/+merge/33357518:48
robjoOK, will take a look in about 10 minutes, thanks18:49
robjoblackboxsw: fixed the comment and the substitution, for the other stuff, just let me know the desired direction, symlink or template name substitution19:14
robjoI think there is a latent bug in cc_ntp, on line 127 rename_ntp_conf() is called, but if the timesync client is timesyncd the configuration file that may or may not be provided by the distro is never renamed as the file to be renamed alwasy falls back to NTP_CONF20:51
robjothe call should really be rename_ntp_conf(confpath) IMHO20:51
robjosmoser: blackboxsw ^^^^ thoughts?20:52
blackboxswchecking20:59
blackboxswrobjo: +1 on rename_ntp_conf(confpath) given that we could be dealing with a different service than actually NTP. and renaming NTP_CONF ->  NTP_CONF_FILE  too21:01
robjoOK, starting with chrony support so this will be intermingled ;)21:02
jhogarthrharper, ping ... heys ... it's James working on that net-tools deprecation :)22:00
rharperjhogarth: hey22:01
jhogarthI've made it a personal mission to "cleanse" Fedora of the dependancy ... not trivial though ...22:01
rharperhehe22:02
jhogarthjust grabbed a NetBSD ISO so I can validate that ifconfig and route/netstat output and options against the net-tools version22:02
rharperis sysconfig net-tools free?22:03
rharperjhogarth: I think there are bsd images on azure as well, in case you just want to kick off one of those instead of the installer22:03
jhogarthyes ... as of about F19 I think or a little before that ... EL7 is net-tools free for the network service so it must be around F15-F19 they finished up on that22:03
jhogarththat means using azure ... I'm allergic to MS stuff :P22:04
jhogarthin all seriousness though it's probably useful to have a BSD VM template on my laptop for cloneing and testing22:04
rharpercool22:04
rharpercurrently the sysconfig renderer checks for "ifup" and "ifdown" as well as the /etc/sysconfig/network-scripts/network-functions22:05
rharperin F19/EL7 are there still ifup/ifdown tools provided outside of net-tools ?22:05
rharpersee cloudinit/net/sysconfig.py:def available()22:05
jhogarthyes ifup and ifdown are owned by the initscripts package rather than the net-tools one and they either use nmcli if NM is running (and the interface isn't marked with NM_CONTROLLED=NO) or call the relevant network service funstions which use iproute222:07
jhogarthso far as I can tell the only things that cloud-init relies on net-tools for on Red Hat based systems is the info printouts22:08
jhogarthso once netinfo.py is ported to have ip as a preference and ifconfig/netstat as a fallback then we *should* be good to drop the net-tools dependency in the rpm spec22:09
blackboxswcloudinit/sources/DataSourceAzure.py has some ifconfig uses22:09
blackboxswsorry, just eaves dropping22:10
rharperjhogarth: yeah; that's what I recall as well22:10
blackboxswhowever that's spelled ;/22:10
rharperblackboxsw: good find22:10
jhogarthit's actually been quite amusing on this journey at times since at least a few packages already had iproute2 codepaths upstream but the maintainers just didn't realise they could drop the dependancy :)22:10
rharperI suspect there are other ifconfig (I think in the bsd space as well)22:10
blackboxswdon't thank me, thank fgrep -r :)22:10
rharperso a grepping of the source for dropped binaries is worth it22:10
blackboxswrharper: true cloudinit/distros/freebsd.py22:10
rharpermmm, legacy22:11
jhogarth grep -E '\b(ifconfig|netstat|arp|route)\b' -R * <-- you're friend ;)22:11
blackboxswheh22:11
jhogarthwell we dont' need to worry about porting the bsd stuff as that will never have ip ;)22:11
rharperright, it would be non-bsd paths use of net-tools22:12
jhogarthand looking at the code that azure adat source stuff is bsd only :)22:12
rharperindeed22:12
blackboxswyeah though the stock  BOUNC_COMMAND.. isn't bsd-specific is it?22:13
blackboxswline 3022:13
jhogarththere's some test stuff calling route etc ... but that's your debian/canonical packaging and testing :22:13
jhogarth:p22:13
jhogarthblackboxsw, that's calling ifup/ifdown which is safe though22:14
blackboxswahh too true.22:14
rharperhrm, I wonder how the Azure stuff on artful/bionic are getting on then;22:15
rharperwe've no ifup/ifdown in netplan only images22:15
blackboxswI'll spin one up now that we have images22:15
jhogarthluck? heh22:15
rharperwell, there is some mystical things that happen under the agent which may or maynot need the bounce22:16
jhogarththis is why CI setups are good at both unit and integration/functional levels :p22:16
rharper=)22:16
jhogarthso .... NetBSD ifconfig output is different from even the current net-tools ifconfig linux snapshot heh ... glad I checked ;)22:31
jhogarthbecause everyone easily can read the netmask when it looks like: inet 192.168.124.96 netmask 0xffffff00 broadcast 192.168.124.255  :/ and hwaddr actually has a tok of address .... NetBSD output on cloud-init most have been nothing like the linux output :/22:32
jhogarthstill ... now I have sample output to add to the test cases :)22:33
jhogarthdo you guys just support NetBSD or should I confirm if FreeBSD has the same output?22:33
jhogarthand of course BSD has to have completely different routing output with netstat -rn ... and now I doubel check the code paths and it's FreeBSD you support, not NetBSD ... although I could have sworn NetBSD was referenced in a bug ...22:40
blackboxswrharper: http://paste.ubuntu.com/2596361422:43
blackboxswbionic works on azure22:43
jhogarthoh well ... enough of my verbiage ... it's bed time in the UK ... thanks for the feedback and discussion ... I'll keep on hacking this over the next week to hopefully get every case tested and something nice to merge with a bunch of bugs solved too :)22:43
blackboxswbecause of the magic :)22:43
blackboxswerm ,,,, heh n/,m22:44
blackboxswtraceback on hostname bounce22:44
blackboxswdue to failed ifdown/ifup22:44
blackboxswI'll file a bug22:44
jhogarthi'll be about in the channel whilst working on the patch this week or so :) laters22:45
blackboxswsmoser: already had it https://bugs.launchpad.net/cloud-init/+bug/172266822:45
ubot5Launchpad bug 1722668 in cloud-init (Ubuntu) "Azure: bouncing of network device/publishing of hostname fails on artful" [Critical,Confirmed]22:45

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