ahasenack | what's the minimal cloud-init config to just specify the ssh public key for the default ubuntu user? | 13:35 |
---|---|---|
ahasenack | system_info -> default_user -> ssh-import-id: foo? | 13:36 |
ahasenack | ok, found a way, just needed to specify user ubuntu again and override what I wanted | 13:42 |
smoser | ahasenack: you can just do: | 14:04 |
smoser | ssh_authorized_keys: | 14:06 |
smoser | - ssh-rsa AAAA...H5qV7NZ mykey@host | 14:06 |
ahasenack | smoser: under "users->name: ubuntu", right? | 14:07 |
smoser | well you can put it there. | 14:07 |
smoser | but you dont need to. | 14:07 |
smoser | top level applies to default user | 14:07 |
ahasenack | ah, good to know | 14:07 |
ahasenack | does that work for "shell: /bin/bash" too? | 14:07 |
ahasenack | or that one has to be under a user | 14:07 |
smoser | no. that has to be in user | 14:08 |
ahasenack | ok | 14:08 |
* smoser didn't know that ahasenack was a elite shell user. | 14:08 | |
smoser | zsh? or maybe he just loves the old school ksh | 14:08 |
ahasenack | what's yours, zsh? | 14:08 |
ahasenack | ksh! | 14:08 |
smoser | i jsut use bash. | 14:08 |
smoser | wow. ksh. | 14:09 |
ahasenack | I use bash too, that's what I'm setting it to | 14:09 |
smoser | i dont think i've ever seen someone not previously employed by ibm that used ksh. | 14:09 |
=== shardy is now known as shardy_afk | ||
=== shardy_afk is now known as shardy | ||
smoser | rharper: on my desktop i do not have /run/log/journal/ | 18:56 |
smoser | what creates /run/log/journal/*/system.journal ? | 18:56 |
rharper | journald | 19:12 |
rharper | did you persist your systemd journal ? | 19:12 |
rharper | smoser: you probably did, so it's /var/log/journal | 19:13 |
rharper | I did that on diglett which does not have a /run/log/journal, but /var/log/journal | 19:13 |
smoser | rharper: ok. so it will either go to /run/log/journal/<something>/ or /var/log/journal? | 19:14 |
rharper | yeah | 19:14 |
rharper | /var/log/journal/<something> | 19:14 |
rharper | if you mkdir /var/log/journal and run a command that tells journald to use a persistent directory instead of /run | 19:15 |
dojordan | @smoser, are we good to land my MP? | 20:01 |
smoser | dojordan: yes. and i'd like to get that uplaoded to bionic sooner than later. | 20:06 |
dojordan | awesome! I assume you do the red button pressing? | 20:23 |
smoser | dojordan: yeah. | 20:25 |
smoser | i'll get uploaded today i hope. | 20:25 |
smoser | meged and uploaded. | 20:25 |
dojordan | great, thanks! | 20:26 |
smoser | blackboxsw: https://code.launchpad.net/~penick/cloud-init/+git/cloud-init/+merge/335286 | 21:12 |
smoser | i can't think of a reason to not pull that | 21:12 |
blackboxsw | reviewing | 21:12 |
blackboxsw | oops missed that one | 21:13 |
blackboxsw | I recall reading it, just never committing to the review | 21:13 |
blackboxsw | ohh right no CLA, yeah I didn't have a concern with it. will officially accept :) | 21:13 |
blackboxsw | approved | 21:15 |
blackboxsw | want me to land it? | 21:15 |
smoser | blackboxsw: sure | 21:15 |
blackboxsw | ^ == more testing of review-mps script | 21:15 |
smoser | powersj: can i easily run a jenkins ec2 on https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/336366 | 21:15 |
smoser | works in my local gtest | 21:16 |
powersj | I only have jenkins jobs for ec2 on master | 21:16 |
blackboxsw | smoser: we have 4 approved branches now in cloud-init review queue. Can I land all of them? | 21:17 |
smoser | yeah. | 21:17 |
smoser | powersj: you think its enough for me to just run that branch ec2 once on a few tsets ? | 21:17 |
smoser | and then merge ? | 21:17 |
smoser | blackboxsw: please do land all those. yeah. | 21:17 |
powersj | smoser: that is fine by me | 21:18 |
smoser | blackboxsw: qa-scripts/launch-ec2 | 21:30 |
smoser | quick review? | 21:30 |
smoser | http://paste.ubuntu.com/26446608/ | 21:30 |
smoser | creates help like: http://paste.ubuntu.com/26446617/ | 21:30 |
blackboxsw | +1 smoser yeah instead of invalid help text/ thx for the additional logging info on zone (was lacking that on my last deploy/test attempt) | 21:31 |
blackboxsw | land away. and land anything you like in there as you see it. I'll do the same. if we break something we can fix it up as we use it | 21:32 |
smoser | since there are ~95000 different types on ec2, i didn't put them all there. | 21:33 |
smoser | and didn't use choices (as is done in the softlayer one) | 21:34 |
blackboxsw | smoser: did the following branch close all four of those related gce bugs https://code.launchpad.net/~illfelder/cloud-init/+git/cloud-init/+merge/334777? | 21:53 |
blackboxsw | I'm trying to verify now | 21:53 |
blackboxsw | and oops commit message didn't contain the bug references | 21:53 |
smoser | blackboxsw: that commit message does need work. | 21:55 |
smoser | updating | 21:55 |
smoser | :-( | 21:55 |
smoser | i can update now | 21:55 |
blackboxsw | grr yeah | 21:55 |
blackboxsw | need a force push | 21:55 |
blackboxsw | saw that too late | 21:56 |
smoser | just reset --hard HEAD | 21:56 |
smoser | and force push now | 21:56 |
smoser | HEAD^ | 21:56 |
blackboxsw | force pushed it out | 21:57 |
blackboxsw | will repush once commit message is fixed. | 21:58 |
smoser | blackboxsw: please read. | 22:00 |
blackboxsw | lgtm | 22:08 |
smoser | blackboxsw: i'll come back in in 3 or 4 hours | 22:18 |
smoser | and will upload to ubuntu whatever you have in trunk at that point | 22:18 |
smoser | feel free to grab https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/336497 | 22:18 |
smoser | i'll just upload whateve ryou have in trunk | 22:19 |
smoser | https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/336366 | 22:19 |
smoser | that one too | 22:19 |
smoser | and /me out | 22:19 |
smoser | later | 22:19 |
blackboxsw | smoser: will do, I'm fixing dojordan's commit message to reflect retries etc instead of infinite loops etc. | 22:26 |
dojordan | (thanks) | 22:28 |
blackboxsw | dojordan: does the updated commit message look ok https://code.launchpad.net/~dojordan/cloud-init/+git/cloud-init/+merge/334341 ? | 22:48 |
blackboxsw | just let me know if you have any changes (or not) and I'll merge away | 22:48 |
blackboxsw | dojordan: saw a join/logout drop IRC message | 22:52 |
blackboxsw | dojordan: does the updated commit message look ok https://code.launchpad.net/~dojordan/cloud-init/+git/cloud-init/+merge/334341 ? | 22:52 |
blackboxsw | 3:49 PM just let me know if you have any changes (or not) and I'll merge away | 22:52 |
blackboxsw | New messages since you tabbed out | 22:52 |
dojordan_ | was actually about to reply | 22:57 |
dojordan_ | technically it is an infinite polling loop assuming we are getting 404s from IMDS, but we will only retry DHCP a max of 5 times | 22:57 |
dojordan_ | technically a VM can be in this polling state for a long time (day or two) | 22:58 |
dojordan_ | also @blackboxsw, what time zone are you in? | 22:58 |
blackboxsw | dojordan_: Mountain, still have an hour before I go poof. | 23:00 |
dojordan_ | ah, that explains how 3:49 PM is in the future | 23:02 |
blackboxsw | thx for the correction, I had forgotten about the exception_cb behavior | 23:07 |
blackboxsw | ok will revert that part but wanted to keep the reference to EphermeralDHCPv4 so we can look back easily on commit history when pushing this functionality to other clouds | 23:07 |
blackboxsw | s/clouds/datasources | 23:08 |
blackboxsw | dojordan_: updated one last time. https://code.launchpad.net/~dojordan/cloud-init/+git/cloud-init/+merge/334341 | 23:09 |
dojordan_ | lgtm | 23:10 |
blackboxsw | ok waiting on one last azure instance boot on my side..... will merge in 10 mins | 23:12 |
blackboxsw | dojordan_: on bionic with your changeset. my azure machine doesn't come back up on reboot. I can run "sudo cloud-init clean --logs --reboot" with your deb installed. This reproduces a fresh-install test. It seems my instance doesn't come back up..... I'm trying to see what gives now as I thought all IMDS polling was based on present of a /var/lib/cloud/data/poll_imds file. | 23:26 |
blackboxsw | hrm, I know this was working on earlier commits within your branch. | 23:26 |
dojordan_ | it shouldn't even create the file in the first place since the ovf_env.xml on the ISO doesn't contain that flag | 23:27 |
blackboxsw | and from my understanding you wouldn't even be providing the flag to turn that file on anyway.... | 23:27 |
blackboxsw | ^ right | 23:27 |
dojordan_ | exactly | 23:27 |
dojordan_ | did you create the marker file? | 23:29 |
dojordan_ | before rebooting? | 23:29 |
dojordan_ | also do you have serial logs? | 23:29 |
blackboxsw | I hadn't in this case, it was a fresh install. but grabbing logs now | 23:31 |
blackboxsw | hrm I hadn't enabled boot diagnostics on this instance which I think captures serial log right? trying another deployment (without this branch) to make sure my "cloud-init clean" on tip of master doesn't actually break Azure anyway | 23:37 |
dojordan_ | it actually might | 23:38 |
dojordan_ | because once we remove the ISO (after we report ready), how will the VM get the ovf_env | 23:39 |
dojordan_ | also, if you can get me the deployment ID and subscription id I can grab the logs for you | 23:39 |
blackboxsw | ok just validated the released version of cloud-init in bionic can cloud-init clean --logs --reboot on azure and come back freshly installed. | 23:40 |
dojordan_ | hrm | 23:41 |
blackboxsw | and tip of master works too 17.2-18-gd14fa1a2-1~bddeb | 23:41 |
blackboxsw | so 17.2-13-g6299e8d0-0ubuntu1 (published version) is good too. | 23:42 |
blackboxsw | will grab deployment id now | 23:42 |
blackboxsw | before I upgrade to your branch | 23:42 |
blackboxsw | "id": "/subscriptions/12aad61c-6de4-4e53-a6c6-5aff52a83777/resourceGroups/srugrp10/providers/Microsoft.Compute/virtualMachines/my-b3", | 23:42 |
dojordan_ | great | 23:43 |
dojordan_ | I'll start diggiung | 23:43 |
blackboxsw | I'll also add your ssh account to my instance if you like | 23:43 |
dojordan_ | i thought it didn't come back up | 23:43 |
blackboxsw | ssh ubuntu@40.70.56.77 | 23:43 |
blackboxsw | dojordan_: I deployed a fresh vm | 23:44 |
dojordan_ | ah | 23:44 |
blackboxsw | to test tip and published versions too | 23:44 |
blackboxsw | so I'm about to install a deb made from your branch on it | 23:44 |
blackboxsw | fell free to connect to my shared term with 'byobu' dojordan | 23:48 |
blackboxsw | feel free* | 23:48 |
blackboxsw | ok new cloud-init installed from your branch, no marker file present | 23:50 |
blackboxsw | last cloud-init run worked fine | 23:50 |
dojordan_ | @blackboxsw, not sure if i can type in your shared term but sounds good | 23:52 |
blackboxsw | ok so we're kicked for a fresh install now | 23:53 |
blackboxsw | s/install/cloud-init run/ | 23:53 |
blackboxsw | what should happen is subsequent ssh connections to the same IP will present us with an ssh key error (key has changed on new cloud-init run) | 23:53 |
blackboxsw | this happens within about 30 seconds on my last two attempts (with tip and published version of cloud-init in bionic) | 23:54 |
dojordan_ | i assume my ssh key wont be there, so my connection refused makes sense | 23:55 |
dojordan_ | yours? | 23:55 |
dojordan_ | yours? | 23:55 |
blackboxsw | correct. your's shouldn't exist again.... but I'm getting no response yet | 23:55 |
blackboxsw | from ubuntu@40.70.56.77 | 23:55 |
blackboxsw | though azure portal says it's up | 23:55 |
* blackboxsw checks the cli | 23:55 | |
blackboxsw | ssh: connect to host 40.70.56.77 port 22: Connection timed out | 23:56 |
dojordan_ | https://paste.ubuntu.com/26447610/ (logs from bionic3) | 23:57 |
blackboxsw | meh: az vm boot-diagnostics get-boot-log --ids /subscriptions/12aad61c-6de4-4e53-a6c6-5aff52a83777/resourceGroups/SRUGRP10/providers/Microsoft.Compute/virtualMachines/my-b3 | 23:58 |
blackboxsw | Please enable boot diagnostics. | 23:58 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!