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

blackboxswjocha: initial review posted for tomorrow https://code.launchpad.net/~jocha/cloud-init/+git/cloud-init/+merge/34356304:54
blackboxswand I'm outta here04:55
=== r-daneel_ is now known as r-daneel
smoserblackboxsw: https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/343127 could use a review if you were bored16:49
blackboxswlooking16:49
blackboxswwas just trying to spawn a failed instance on gce16:49
* blackboxsw was working through capturing an image and booting a new instance with it16:49
smoserwith serial console ?16:49
blackboxswas we'll need to do that inevitably if we can find a reproducer16:49
blackboxswyeah trying with serial console + root password backdoor and custom cloud-init16:50
smosercool.16:50
blackboxswI'll wrap up the gce instance from image spawn on cmdline and add a placeholder script to  qa-scripts/scripts/launch-gce. then I'll grab that review, sound good as far as priority?16:52
rharpersmoser: hrm, we actually have a run-time depends on iproute2 ;  for the minumal cloud-images, there's no iproute2 in that even though it has cloud-init, the fallback nic code runs ip route commands; which it doesn't find;   in ubuntu/devel branch the control file does not include iproute2;19:19
smoserhttp://paste.ubuntu.com/p/87ZhVjWjMW/19:27
smoserrharper: not a huge deal19:27
smoserits part of ubuntu-minimal19:27
smoserwhich .... should be part of ubuntu "minimal" image :)19:27
smoserso yes, we could add it and possibly should add it. but its goign to be there.19:28
smoserand that is the case for xenial also19:28
rharperwell, http://cloud-images.ubuntu.com/minimal/daily/bionic/ those are all broken w.r.t not having iproute2 in it19:30
blackboxswsmoser: rharper by add it, you mean an 'or' depends on iproute2 or net-tools?19:32
blackboxswor an explicit iproute2 dep in bionic & later19:32
rharperexplicit, depite the net banner, fallback nic configuration uses the 'ip' command19:32
smoserblackboxsw: well, at this point i'd chagne upstream packaging to just say iproute219:33
smoserbut would leave x, a, b as they are19:33
blackboxswok fair 'nuf19:33
smoserrharper: why would we create something with the name 'ubuntu' and 'minimal' that did not have 'ubuntu-minimal'19:34
smoser:-(19:34
rharper(╯°. °)╯︵ ┻━┻)19:34
smosereven stating:19:35
smoser It is also used to help ensure proper upgrades, so it is recommended that19:35
smoser it not be removed.19:35
dpb1smoser: you have a few hours to listen to the story about names?19:39
dpb1smoser: if you want a fun time, click https://askubuntu.com/questions/tagged/ubuntu-minimal, which is a combination of questions about the mini iso and the minimal desktop.19:40
blackboxswjust FYI, I'm able to spawn gcloud instances based on an image w/ updated cloud-init ( which logs gcloud compute instances create image-test2 --zone=us-central1-b --image upgraded-cloud-init-disk --image-project cloud-init-testing --metadata-from-file user-data=sethostname.yaml --metadata=serial-port-enable=1).  I'm dropping this stuff into qa-scripts/scripts/launch-gce now19:41
blackboxswstill no reproducer on my end19:41
dpb1I'm both happy and sad by that news19:43
rharperblackboxsw: thanks19:44
rharperI'll use that19:44
smoserhttps://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/176671120:03
ubot5`Ubuntu bug 1766711 in cloud-init (Ubuntu) "cloud-init missing dependency on iproute2" [Undecided,New]20:03
smoserbug https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/176671420:14
ubot5`Ubuntu bug 1766714 in cloud-init (Ubuntu) "cloud-init missing dependency on isc-dhcp-client" [Undecided,New]20:14
blackboxswugh, though I placed it in Package: cloud-init20:24
blackboxswArchitecture: all20:24
blackboxswDepends: ${misc:Depends},20:24
blackboxsw         ${${python}:Depends},20:24
blackboxsw         isc-dhcp-client20:24
blackboxswin packages/debian/control.in20:24
blackboxsws/I/we/20:25
smoserthats for trunk packaging . i probably blame to the foobar on the ubuntu/devel branch20:33
smoserblackboxsw:20:53
smoser https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34418620:53
smoser https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34418620:54
smoser https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34419020:54
rharpersmoser: you have a few minutes to sync on the rename stuff?20:54
smoserrharper: sure.20:54
smoserhttps://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34418120:54
blackboxswsmoser: approved and landed  https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/34419021:12
blackboxswapproved https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/344186... will land it21:12
mgerdtssmoser any more thoughts on https://code.launchpad.net/~mgerdts/cloud-init/+git/cloud-init/+merge/343712 .  Was just chatting on #smartos where one of our early adopters was surprised that a NIC that he added after the first boot did not get configured on a subsequent boot.21:16
blackboxswsmoser: I'm not merging https://code.launchpad.net/~vkuznets/cloud-init/+git/cloud-init/+merge/343601 at the moment. as I didn't want unnecessary churn on the bionic branch we want to cut21:21
rharperblackboxsw: you're still working on the recreate?21:22
rharperon gce ?21:22
* smoser out21:23
blackboxswrharper: I haven't recreated, but I can continue to spin instances up using and updated cloud-init that tracks name_assign_type21:23
blackboxswrogjt mpw O21:23
blackboxswright now I'm merging in smoser's bionic fixes21:23
rharperblackboxsw: ok; I think we have a more general solution here w.r.t the the renaming;21:23
blackboxswand generating a bionic upload mp which includes isc-dhcp-client dependencies21:23
rharpery21:24
jochablackboxsw: I've resolved the comments you made, feel free to review whenever you have time :) https://code.launchpad.net/~jocha/cloud-init/+git/cloud-init/+merge/34419221:24
rharperdid you push the launch-gce script to qa-scripts ?21:26
blackboxswrharper: noper. it's a big lift21:26
rharperI'd like to see if I can fire up a loop to trigger the failure21:26
blackboxswI'm re-writing a lot of launch-ec2 at the moment21:26
rharpercan you pastebin it to me (no without creds) ?21:26
rharperI guess I can just use your gcloud command from earlier21:27
blackboxswrharper: as in, not even functional. I'll give you a pastebin of the commands I run on gcloud21:27
rharperyeah, thanks21:27
rharperwill work on a reproducer loop there; with root login on serial console;21:27
blackboxswrharper: here's the basics https://pastebin.ubuntu.com/p/xHgHRY3vbt/21:35
rharperthx21:35
blackboxswit involved me having installed google-cloud-sdk21:36
blackboxswI think there was some setup there21:36
rharperyeah21:36
rharperI have that installed21:36
blackboxswI see your ssh pubkeys are part of our project so that should be good21:36
blackboxswin that pastebin I forgot the addition commands to dpkg -i cloud-init*deb; cloud-init clean --logs; and sudo passwd ubuntu setup before stopping the instance and creating an image21:37
rharperyeah; mostly wanted the instance image and type details and that serial port bit21:37
rharperis there a gcloud command for getting the console ?21:38
blackboxswrharper: with that metadata serial-port-enable=1 stuff you can then cloud compute connect-to-serial-port bionic-test21:43
blackboxswrharper: with that metadata serial-port-enable=1 stuff you can then "gcloud compute connect-to-serial-port bionic-test"21:43
rharpernice21:43
rharperblackboxsw: smoser: ok; I've recreated, updated the bug with details for possible fix and how to test it; https://bugs.launchpad.net/cloud-init/+bug/176628723:18
ubot5`Ubuntu bug 1766287 in cloud-init "18.04 minimal images on GCE intermittently fail to set up networking " [High,New]23:18
blackboxswrharper: nice, so maybe it was region related then ? I see you switched to europe-west123:31
rharperyes23:31
rharperand back to the 420 image23:31
blackboxswman.23:31
rharperI've not tried on the 42123:31
rharperbut I suspect that europe-west1 is just less crowded23:31
rharperalso, it's night time now23:31
blackboxswI'll give that a spin tonight if you are about EOD.23:31
rharpernow that I have the recreate, I'll try again in other zones23:31
blackboxswnice23:31
blackboxswk  back in an hour23:32
rharperk23:32

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