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

smoserblackboxsw: on its up01:24
blackboxswthanks smoser for checking back in01:24
smoserblackboxsw: if you're bored02:10
smoser https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34357502:10
blackboxswalways bored02:10
blackboxswlooking now02:10
blackboxswjust pushed some changes to qa-scripts and was going to hit review queue now02:10
blackboxswsmoser: yeah I had just made the arbitrary decision that people probably wouldn't duplicate their specific commands.02:13
blackboxswI'm +1 on the concept. looking over the changes and will land it if I don't have objections02:13
smoserblackboxsw: real world... i would not be surprised to see02:19
smoser apt-get update02:19
smoser apt-get install package102:19
smoser apt-add-repository02:19
smoser apt-get update02:19
blackboxswapt-get update02:19
blackboxsw:)02:19
blackboxswyeah02:19
smoseror even just02:20
smoser apt-get update02:20
smoser echo sometimes that fails02:20
smoser apt-get update02:20
smoser:)02:20
blackboxswbtw generally I'm kindof excited that schema warnings showed up somewhere in our consumers.02:34
blackboxsweven it if resulted in a bug in the schema being too strict. That's the kindof problem I'd like to have (albeit infrequently). Too strict vs too premissive.02:35
blackboxswBug #176426402:35
ubot5`bug 1764264 in cloud-init "bionic cloud-init 18.2 WARNING Juju's 'runcmd' stanza" [Medium,In progress] https://launchpad.net/bugs/176426402:35
mgerdtsIs there any way to tell cloud-init to reconfigure networking on every boot?19:04
rharpermgerdts: hrm; I don't think so; not without clearing the instance-id19:06
mgerdtsI ask because as we transition from kvm to bhyve we have been planning to use cloud-init for network configuration on all platforms.  Previously, those that didn't use cloud-init would rely on a dhcp server that is built-in to qemu.  This means that network config would get refreshed on every reboot (at least).19:10
mgerdtsThis puts a bit of a wrinkle in the plan to rely solely on cloud-init.19:11
mgerdtsIs this something that would be hard to make into a tunable, presumably able to be overridden by user-data?19:11
* blackboxsw looks too. hrm.19:12
mgerdtsapply_network_config:19:14
mgerdts645         if (self.datasource is not NULL_DATA_SOURCE and19:14
mgerdts646                 not self.is_new_instance()):19:14
rharperyes19:16
rharpermgerdts: I think we would need some way to ask the ds if it wanted to do that19:17
rharperwe already ask is_new_instance; we could add some other check19:17
mgerdtsI'll code something up and shop it around for feedback.19:18
rharpersure19:18
rharpermgerdts: I don't think we have a user-data level way to toggle that; is it something the users could set such that the instance metadata would show that value? that would avoid having to create a user-data namespace for this setting; but leave control over whether network config is apply every boot or per-instance as something controllable but not seen outside of the SmartOS datasource19:22
blackboxswyea, was coming to the same conclusion. We currently surface network: config: disabled  in /etc/cloud/cloud.cfg or /etc/cloud/cloud.cfg.d files19:24
mgerdtsIt could be created as a property in customer_metadata, which would make it a peer to user-data or put it into the sdc: namespace.  I need to discuss internally how we should handle this.19:24
blackboxswand we check that in cloudinit/net/__init__.py:is_disabled_cfg(). ... would something like that be an option for setting 'autorenew' or 'update-per-boot'?19:24
rharperblackboxsw: but user-data can't update system config19:25
mgerdtsThat brings up another question I fielded recently.  I was asked if my cloud-init work would make it so that networking could automatically reconfigure without taking a reboot.19:26
rharperso, I think it would better be a metadata value that the Datasource can reason able, but requires cloud support to allow users to toggle the setting19:26
blackboxswrharper: right I'm wondering if system config update is an option (i.e. we surface a system_config knob that can be twiddled)19:26
rharpermgerdts: we want to get there, I shared with you that doc  that discussed a cloud-init refresh-metadata  and cloud-init update-config --mode=network19:26
rharperhttps://hackmd.io/M1Tae41PQBC7a9qMsurTJw19:27
rharpermgerdts: but a non-reboot would look like that19:27
mgerdtsoh, nice19:27
rharperthere are some challenges w.r.t live update of networking; some things are easy, some things can leave you without connectivity if they fail19:27
rharperbut generally things like, adding a ip, adding a new interface, etc applying new config to unconfigured interfaces; that's doable without anything fancy19:28
rharperhaving to bounce the primary interface is more troublesome19:28
rharperthere may be running services or other things19:28
mgerdtsI think the question I had was more specifically about routes.  Like you say, monkeying with live interfaces can be problematic.  By default, we have anti-spoofing enabled which further complicates live changes.  Right now, an IP change that takes effect on a reboot doesn't have any complicated synchronization issues between host and guest.19:31
mgerdtsIf you are going to break all of your network connections, taking a reboot may not be that bad.19:31
rharperright19:31
rharperbut incremental changes like adding a route is easy to do, hard to say it won't have an impact19:31
rharperthe rub comes with the OS level  networking service19:32
mgerdts"what could go wrong?"  :)19:32
rharperfor 16.04, ifupdown requires a bounce,  18.04 with networkd, it's possible to "append" new config; though networkd is fickle enough that it woudl need some testing to ensure it behave sanely19:32
rharperif we didn't rely on the OS, but had cloud-init do it itself, then it's more likely we could pick out the "new" config and apply just that (via iproute2 )19:33
rharperthough, generally we'd prefer to push that sort of functionality into the OS level network tool;  there are other users who may want to incrementally apply config outside of clouds19:33
akikhi. i'm experiencing strange network timeout problems running cloud-init on centos 7 on azure20:35
akikif i disable cloud-init from running, the network becomes responsive again20:35
akikit's maybe some kind of race between azure linux vm agent and cloud-init20:43
akiki've used Provisioning.UseCloudInit=y in /etc/waagent.conf20:44
blackboxswakik: not sure, not seeing that on ubuntu azure. you could try pulling our latest cloud-init 18.2 from https://copr.fedorainfracloud.org/coprs/g/cloud-init/el-testing/20:55
blackboxswI just published the  18.2 release there 10 days ago20:56
akikblackboxsw: 18.2? i have cloud-init-0.7.9-9.el7.centos.6.x86_64 <- probably really old?20:57
akikit's installed from centos updates repo20:59
blackboxswyeah it is a bit old, but not as old as the version numbers might imply. We switched cloud-init versioning scheme late in 2017. to YY.##.   The distros/cloud images don't update as frequently as we release upstream cloud-init.  https://lists.launchpad.net/cloud-init/msg00106.html21:00
blackboxswthat message on our mailing list has the details of that versioning switch... looks like we made the move to year-based versioning September 2017 due to agreement at last year's cloud-init summit21:00
akiki'd like to use stable instead of testing21:01
akikas there are no instructions there. is it just installing one rpm package?21:02
blackboxsw+1 akik, we will only update el-testing when cloud-init upstream releases a tested release. (like 18.1 18.2 18.3)21:02
blackboxswthe cadence of those releases is about ~3 months21:02
blackboxswfor those that live on the edge (and want to cope with occasional failures) we have a daily copr repo here https://copr.fedorainfracloud.org/coprs/g/cloud-init/cloud-init-dev/21:03
akikoh ok so i download that "repo download" ?21:03
blackboxswakik: yeah it is just cloud-init21:03
akikthanks so much21:04
akiki'll try that el-testing first21:05
blackboxswfor sure, it'd give you an idea at least if it's something that's been fixed by more recent code21:05
akiki already made a support ticket to azure because i couldn't figure it out21:07
akikNo package python-jsonschema available.21:08
akikah maybe i don't have epel21:10
blackboxswyep, need epel :021:11
akikseems to have worked21:22
akiki got this though "DataSourceAzure.py[WARNING]: Error communicating with Azure fabric; You may experience.connectivity issues." but some seconds later it ran the user-data i had supplied21:22
akikthank you very much21:24

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