[00:18] stanguturi: how quick can you check somethign? [00:19] @smoser: Quickly. May be 5 minutes [00:19] stanguturi: on top of your mp (vmware 64 bit) [00:19] http://paste.ubuntu.com/p/5VTmHsrCPJ/ [00:20] the first hunk is just formatting [00:20] the second i'mi 97% is just formatting :) [00:21] stanguturi: just give feedback here or on the bug, and i'll be back in ~ 1h. [00:21] and pull it [00:24] and stanguturi did you have a bug for that one ? [00:24] if so, edit the commit message and adda [00:24] LP: #XXXXXX [00:24] thanks [00:24] ok thanks Scott. I don't have a bug for that. [00:24] ok. [00:25] Hey folks, looking for some advice on the best approach to using ansible w/cloud-init. Essentially I am using cloud-init for instantiation and am just using ansible for config file templating and providing secrets/credentials in those configs. [00:25] Timers seem so crude. [00:25] one quick thing: $pre/${pkg}64/$pkg/$ppath" should be ideally $pre/${pkg}64/$ppath" [00:25] Like calling my spin up script waiting for x seconds then running ansible seems sub-optimal. [00:28] Are there any "hey I am done" hooks in cloud-init that I can provide notification on? [00:32] @scott: Some fixes need to be done in that patch: like check for "${pre}64/$pkg/$ppath" and not "$pre/${pkg}64/$pkg/$ppath" [00:50] blkadder: if you want to know if cloud-init is done, you can look at /var/lib/cloud/instance and look at the boo-finished file or in /var/lib/cloud/data at the result.json and status.json [00:51] boot-finished file, rather [00:51] Ok, thanks. [01:41] blkadder: still there? [01:42] Yes sir. [01:42] blkadder: look in /run . [01:42] k [01:42] blackboxsw: around ? [01:42] and also, newer cloud-init have 'cloud-init wait' [01:42] Ooh. [01:42] That sounds shiny. [01:43] yeah, trunk only at the moment. will be in 18.1 [01:43] k [01:43] Will go look at it. [01:44] if you look at /var/lib/cloud-init, you have potential of seeing stale data [01:44] Did you guys ever settle on a templating strategy? [01:44] (from a previous boot) [01:44] so /run/cloud-init/result.json and /run/cloud-init/status.json [01:44] I'm only resorting to ansible because I don't have a good way to template stuff otherwise [01:45] wrt templting blackboxsw has a mp [01:46] Good deal. [01:47] https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/335290 [01:47] and described at https://trello.com/c/xyqxyOxg [01:50] Will take a look, thanks. [01:51] Well if it's jinga2 anyways at least I should have an easy time migrating to it if I stick to ansible for now. [01:51] So that's good. [01:55] s/jinga2/jinja2/ [02:54] smoser: around [02:54] blackboxsw: ya [02:54] but probably late for you [02:54] i really shoudlt be here ;) [02:54] ohh, what's up? reading backlog now [02:55] ah. was trying to get you to ack a change i made . i added a test to sankar [02:55] and push'd [02:57] the ds-identify branch? [02:57] or sankar's branch. checking [02:58] ahh I see, push == push to tip [02:59] ok yep seem 'em. marking those branches as merged [03:01] sankar's MP. thanks [03:01] and i'im out [03:01] see you tomorrow. [03:02] see ya [16:30] https://pastebin.ubuntu.com/p/rxQ6kZJnjg/ rharper smoser [16:31] ah, yeah local-hostname [16:47] ahasenack: did you reproduce [16:47] https://bugs.launchpad.net/cloud-init/+bug/1751051 [16:47] Ubuntu bug 1751051 in cloud-init "UnicodeEncodeError when creating user with non-ascii chars" [Undecided,New] [16:47] smoser: twice, which was 100% of my tries [16:47] but using subiquity [16:49] i can't reproduce in lxc [16:58] ahasenack: i can't reproduce in lxc [16:58] lxc launch ubuntu-daily:bionic b6 --user-data='#cloud-config'$'\n''{"users": [{"gecos": "Andr\u00e9 DSilva", "name": "andre", "shell": "/bin/bash"}]}' [16:59] (have also trie dwith exactly config provided) [16:59] smoser: can you try subiquity in a vm perhaps? [16:59] if you prefer, I can move the bug to subiquity, but the backtrace came from cloud-init [17:01] its just odd. [17:01] it looked obvious. [17:01] but didnt' reproduce [17:02] hmm. [17:03] it feels like locale must be involved. [17:07] smoser: with that config of yours, did you get a firstname of André, or a literal Andr\u00e9? [17:07] you also missed the ' between D and Silva [17:07] D'Silva [17:07] sorry, vpn dropped [17:07] going to repeat my last [17:07] smoser: with that config of yours, did you get a firstname of André, or a literal Andr\u00e9? [17:07] you also missed the ' between D and Silva [17:07] D'Silva [17:10] i dropped that by design [17:10] the ' [17:10] just as it is not the problem [17:11] and inside, it does work [17:11] # grep andre /etc/passwd [17:11] andre:x:1000:1000:André DSilva:/home/andre:/bin/bash [17:13] ok [17:25] ahasenack: fwiw, subiquity is writting the cloud-config [17:25] so I suspect it's not escaping it like smoser did [17:26] if possible set the root password and then extract the user-data from /var/lib/cloud/seed/nocloud-net/user-data [17:36] hrm, no tracebacks on my cloud-init changes in juju's vsphere-deployed unit, but the ubuntu charm /var/lib/juju disappeared across system reboot. This is why my unit no longer talks to juju. /me digs at why that's happening [17:37] hi, I need to encrypt a filesystem. I cant find anything usfull in the disk module. anybody tackled this before? [17:38] Is there a cloud-init PPA that I could use to test the latest cloud-init HEAD in an image? [17:38] smoser: rharper: ^ [17:38] yeah [17:39] https://launchpad.net/~cloud-init-dev/+archive/ubuntu/daily Odd_Bloke [17:39] Thanks! [17:39] sudo add-apt-repository ppa:cloud-init-dev/daily :) [17:39] no prob [18:04] ahasenack: i diagnosed [18:04] https://bugs.launchpad.net/subiquity/+bug/1751051 [18:04] Ubuntu bug 1751051 in cloud-init "UnicodeEncodeError when creating user with non-ascii chars" [Medium,Confirmed] [18:05] it does somewhat seem like a bug to me that python3 does encode based on LANG down some C parts when .encode(encoding) defaults to 'utf-8' [18:06] encodings, ugh :/ === r-daneel_ is now known as r-daneel [21:22] chttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/338586 [21:23] https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/338586 [21:23] smoser: will review for today's cut [21:23] blackboxsw: i don tthink weh ave to race that in [21:24] ok, wasn't sure [21:24] will wrap up on vsphere then [21:24] it only affecgts systems that use utf-8 commands (such as adduser) but do not have a utf-8 capable system default set. [21:24] blackboxsw: i'm thinking i'm just going to cut release [21:24] unless you have somtehing you think needs fixing [21:25] sounds fine smoser [21:25] let me know and I can queue the upload to bionic [21:25] to keep in the habit of it [21:26] one more piece of flare for upload rights :) [21:26] heh [21:35] ahasenack: https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/338586 if you're interested. [21:35] cool [21:47] rharper: so nogo for loopback huh [21:47] dpb1: not without a systemd-resolved fix [21:47] it seems to ignore it even if networkctl doesn't [21:49] nasty === r-daneel_ is now known as r-daneel [22:16] rharper: or blackboxsw [22:16] https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/338588 [22:16] if you want to quick ack that [22:16] reading [22:16] i just uploaded to launchpad the source tarball. about to ssend email [22:16] (yes, the order is wrong :) [22:16] done [22:16] smoser: change log fix [22:16] - docs: Fix typos in docs and one debug message. [aRkadeFR] [22:16] looking for other names that we had to manually fix [22:17] hm.. suck. ok i'll fix. [22:17] https://hackmd.io/MYEwRg7AHKCsC0wCMYCm8AsWCG8wDYBmDTEZMEVMAJm0LCA=?both [22:17] that is what i'm following [22:24] blackboxsw: i fixed that. [22:44] smoser: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/338591 for upload to bionic [23:01] bug fix deluge ! [23:03] rip my inbox