[03:10] Runnin' `Cloud-init v. 19.2-36-g059d049c-0ubuntu2~18.04.1` === johnsonshi_ is now known as johnsonshi === cpaelzer__ is now known as cpaelzer [16:07] did anyone push on pstart issue ? [16:07] lxd and lxc-pstart issue. [16:10] Not that I'm aware of yet, no. [16:11] I believe rharper had the action item out of the retrospective to at least file a bug [16:12] smoser: I'll file an issue day [16:12] ok. great. thank you. I think the simplist thing that shows error is just the 'init', pstart /bin/true (and automatic stop), then init again. [16:13] as i showed, it gets wrong ownership of lots of files in / [16:13] y [16:13] so either abug in shifting, or a race [16:25] Good morning happy people [16:32] https://github.com/canonical/cloud-init/pull/61#pullrequestreview-332699520 approved Goneri's pr [16:34] rharper: https://github.com/smoser/qa-scripts/tree/mini-issue if you're interested. [16:34] that simplifies lxc-pstart for the recreate [16:34] to [16:34] a.) use profile name pstart1 (to avoid messing up an existing system) [16:34] b.) not create the network at all [16:35] c.) in-line psuedo-init ... so one python program contains all the required stuff to recreate [16:43] smoser: thanks [18:22] has anyone had a chance to look at https://hackmd.io/3-YBj1t9TAeKhmfLBQUjXQ ? [18:31] meena: So I had a look, of course. It's not 100% clear to me what our concrete next steps are. Is that something you have an idea of (and are looking for buy-in for), or are next steps what you're hoping we can define together? [18:39] Odd_Bloke: define buy in? [18:42] and, no, i think i'd like to define next steps together, and then present it to the mailing list (again) [18:58] so, the buy in or opposite of that would come from there. i'm not looking for anyone to commit to implementing this… just maybe help with testing xD [19:06] meena: By "looking for buy-in" I meant "reach consensus on a proposed approach". But it sounds like we're more in the latter mode, coming up with next steps. [19:06] *nod *nod [20:10] Odd_Bloke: anyway, i like your suggestion, and i'd like to try that out. [20:17] meena: IMO, I think that's the next step, to inform our next decision. [20:18] meena: I'm +1 on that (spike) suggestion approach. It'll give is a feel for how to iterate through that work for most network-related functions. [20:28] We should def name all cloudnet classes Cloudnet. [20:57] powersj: Odd_Bloke so I'm finally getting around to reviewing your PR https://github.com/canonical/cloud-init/pull/109 through bug https://bugs.launchpad.net/cloud-init/+bug/1854236. I think this is both a documentation issue and also something that we need to limit when set-hostname is being called only when init.is_new_instance(). [20:57] Ubuntu bug 1854236 in cloud-init "documentation for cc_set_hostname module doesn't mention runs during "init" phase" [Medium,Triaged] [20:58] I think we'll need a little extra logic added there to cloudinit/cmd/main to limit such early(init-local) hostname setting to allow for folks how manually reset hostname to something different after initial provisioning [20:58] I'm adding comments and suggestions to the PR [21:00] blackboxsw: That sounds like a separate bug, not something that a docs PR should be expanded to include. [21:00] (And we'd obviously have to think carefully about changing that behaviour.) [21:00] the initial bug that was filed related to that feature was due to initial boot on dhcp servers hosted in vSphere land which used DDNS to set dns entries to whatever the initial DHCP request asked for. (which in the case of a large automated deployment came up all 'ubuntu'). [21:02] sure Odd_Bloke we can/should separate that to another branch. I'll file the doc comment suggestions and a pointer to something that we'd need to do to avoid resetting hostname on every boot to what our potential stale metadata has [21:02] I don't think a doc-only branch fixes #1854236 in entirety though [21:03] The bug is literally titled "documentation for..." [21:04] :P [21:04] true. but it's documentation of a behavior that probably shouldn't be as broad as it is [21:05] we can correct the docs to current behavior "per always", but I'd like to get it back to "per instance" [21:05] and it *could* have impact on vsphere, though I *think* not. [21:06] and it will affect anyone that has come to rely on resetting the hostname across every boot [21:09] agreed, I think that is worth a new bug [21:09] blackboxsw, why not file one while it is fresh [21:10] yeah will do, will wrap up your review and file a new bug. [21:12] > @blackboxsw> and it will affect anyone that has come to rely on resetting the hostname across every boot < oh no! [21:13] Goneri: """This branch is out-of-date with the base branch""" ← 61 needs another rebase. [21:13] meena: I think I missed a joke. didn't you file the original bug with concerns about losing the manually set hostname ? :) [21:14] reported by https://launchpad.net/~nathanst [21:15] https://bugs.launchpad.net/cloud-init/+bug/1855170 this is the one i reported. [21:15] Ubuntu bug 1855170 in cloud-init "system_info can change the distro" [Undecided,Incomplete] [21:16] * blackboxsw mixed up context. meena I saw your "oh no" and interpreted that as a concern about some user-story that I might have missed \ [21:16] meena, done. Can someone review the freebsd_net_renderer please? [21:17] to me, why would someone need to attempt reset hostname to the metadata provided hostname every boot (unless they were working with some sort of cfgmanagement solution that required stable local hostnames for ongoing maintenance of a node). [21:18] and *if* someone needed that stable hostname, wouldn't they just use a cfg management/maintenance solution like chef/puppet/ansible etc to maintain that hostname over time (instead of relying on cloud-init's initial system config features) [21:18] blackboxsw: usually when you have a hostname that your CfgMgmt depends on; you don't want that to change ever, not even on reboot. [21:19] some people draw a fact from the hostname… so… yeah, changing it might blow up the system… or rather, if the hostname changes, your CfgMgmt system might blow up your server. [21:19] right. so if root manually came in and changed the hostname some days/months after initial boot, I don't think I'd want cloud-init to re-set to the original metadata next time I rebooted the vm/machine [21:19] because root probably had a good reason to change such a hostname [21:19] or you got hacked ;) [21:20] accidents happen. [21:20] 🤷‍♀️ [21:21] heh true. [21:22] community notice: cloud-init 19.3.41 is officially released via Ubuntu SRU (stable release update) Xenial, Bionic Disco and Eoan have access to this version and cloud-images will be updated nightly to get these new cloud-init bits. Thanks for all the help folks! [21:24] \o/ [21:24] congratulations [21:34] blackboxsw: I believe the usecase (as described in that doc PR :) is for platforms that require hostname to be set correctly for DHCP to complete successfully. [21:34] In such cases, you would want it to happen every boot, because otherwise you aren't getting networking. :p [21:34] ... specifically during initial deployment I had thought. [21:35] but I suppose that need would hold true across reboot so you don't have DDNS hostname colllisions [21:35] i thought once the hostname is set… it's… set.?! [21:36] Perhaps it is limited to initial deployment, I don't know for sure. [21:37] we should find out, before we try too hard ;) [21:37] Not sure that DDNS plays into it here, platforms that require you to conform to their expected hostname aren't going to use the presented hostname dynamically. [21:39] * meena is composing a mail to the list about REFACTORING 2.0 [21:48] message sent. [21:52] and here's today's dead code: https://gist.github.com/10d305f65194470cb6dbad58690f123c [21:53] nice [21:53] I think we have that check turned off in pylint currently [21:57] Odd_Bloke: I think in the past via juju deployed models on vSphere, each deplyed node ended up requesting ddns-hostname ddns-domain-name params or something to that end. Our intial dhcp setup in init-local was passing these values to whatever platform dhcp server was available, and in some vsphere/juju cases DDNS got updated to set/reset any dhcp IP allocated as hostname 'ubuntu'. This caused problems for juju [21:57] deployments trying to install software and react to hooks as juju would automatically start trying to talk to a new vm that 'became' ubuntu as far as DNS was concerned. [21:58] I think what we decided to do, is say that, if the platform provides cloud-init with a desired hostname, we should assume that's what we need to be always, unless a user overrides that with user-data (#cloud-config) etc. [21:59] though I probably misunderstood your comment about "conform to their expected hostname aren't going to use the presented hostname dynamically." [22:00] I guess you meant that cloud-init wouldn't expect the metadata hostname to change on platforms that expect hostname to conform. (So don't expect to support people coming in after the fact to change the hostname if it was launched with a certain meta-data hostname set) [22:04] blackboxsw: I was talking about the cases where we _need_ this, not the cases where it has caused problems. [22:04] So I think we were just talking past one another a bit. :) [22:18] roger. /me works on reading comrehension [22:21] if i had known this would be formatted like ass, i would have run it thru fold(1) before sending https://lists.launchpad.net/cloud-init/msg00237.html [22:23] welcome to the mailing list, we hope you like the 1970s! [22:23] remember when i did code reviews via email? those were the times [22:27] Goneri: did you some how lose my find_fallback_nic function from your code? [23:04] smoser: https://github.com/lxc/lxd/issues/6632