/srv/irclogs.ubuntu.com/2017/11/29/#cloud-init.txt

Raboohi14:51
Raboowhat usually comes after the ssh key generation?14:51
Raboohave a node that is stuck after the ssh key generation14:51
dpb1Raboo: physical system?  cloud?15:22
dpb1could be a RNG issue.15:22
Raboodpb1 physical16:00
Rabooit gets stuck when running trusty, but when i tested xenial it worked..16:01
Raboobut i would like it to work on trusty again16:01
dpb1Raboo: through maas I assume?16:02
Raboodpb1 nope, I use The Foreman16:02
Raboohttps://theforeman.org/16:03
dpb1Raboo: your images are up to date for Ubuntu?16:03
Rabooyes, i build it daily16:03
smoserRaboo: most likely, trusty is just not going to work easily16:03
smoserit has no dynanmic network configuration16:03
Rabooand i even triggered a manual build today when it failed16:03
smosermeaning that the images have 'dhcp eth0'16:04
smoserand if you dont have a 'eth0' or its not dhcp..16:04
smoserbut maybe thats not your issue.16:04
Raboothe network came up16:04
smoseryeah, then i assume it is that you dont have a eth0 ?16:04
Rabooit printed ip before it generated ssh keys16:04
smoseror eth0 is not plugged in and some other.16:04
smoseroh.16:04
Rabooit's a bond0 actually16:04
smoserhm...  ... i'm not really sure where youd' be hung then.16:04
Rabooand i could ping the node16:05
Raboothe most annoying thing is that it got stuck. It didn't fail and drop to a console so I could read logs16:05
Rabooso very hard to debug16:05
Rabooi think it got stuck at the end of "init" phase16:07
dpb1Raboo: what cloud init version are you using in your trusty images?16:12
dpb1Raboo: is it the one in the trusty-updates pocket?16:13
Raboodpb1 hmm let me try to find out, i think it was 17 something16:16
Raboois there a binary or a config file that contains a version string?16:20
Raboocould be 0.7.5.16:21
Rabooit's the same as in https://cloud-images.ubuntu.com/trusty/current/16:24
Rabooit contains this file ./usr/lib/python2.7/dist-packages/cloud_init-0.7.5.egg-info16:25
Rabooso i guess it's 0.7.516:25
Raboo./usr/share/doc/cloud-init/changelog.Debian.gz says at the top of the file "cloud-init (0.7.5-0ubuntu1.22) trusty; urgency=medium"16:26
dpb1Raboo: ok16:29
Raboothis used to work before, don't know if ubuntu has bricked something since I update my images daily16:31
smoser:-(16:47
smoserRaboo: you can open a bug. just please provide as much information as you can.17:20
smoseryou can just "backdoor" the image too17:20
smoserthen you can go in with the backdoor to get other info17:21
smoserhttp://bazaar.launchpad.net/~smoser/+junk/backdoor-image/view/head:/backdoor-image17:21
Raboosmoser what does the backdoor do in short?17:32
Raboocause i have a local user already17:33
Rabooproblem was it doesn't even drop to the console where i can login17:36
smoseryou said it set up network17:56
smoserno ?17:56
smoserjust ssh in17:56
Raboosmoser i don't think sshd is started18:17
Rabooi'm going to reinstall another node tomorrow, see if i can replicate the issue on another node.18:19
dpb1Raboo: from the sounds of it, that could be what is stalling, actually (sshd startup)18:44
smoserrharper: https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/33414719:36
smosercan you ack that ?19:36
rharperacked19:38
blackboxswok I'm out of the way on the two branches (no more changes from me on these): https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/333513 https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/33011521:17
blackboxswjust pushed latest changes/rebase and fixes21:17
blackboxswhitting review queue21:17
powersjsmoser: seems you pulled your KVM fix, so I am going to enable the KVM tests in jenkins22:21
blackboxswsmoser: rharper http://pastebin.ubuntu.com/26075320/ shouldn't our v1 instance-data.json actually surface public-hostname instead of local-hostname  from metadata? Right now the instance-data.json sources cloud.get_hostname() which grabs local-hostname from metadata if present22:30
blackboxswcheckout the ec2 section of that pastebin22:30
rharperblackboxsw: what does hostname on the instance say now ?22:31
rharperI suspect it retains the .internal hostname22:31
blackboxsw  "public-hostname": "ip-10-0-20-27",22:31
rharperan external/public hostname is for facing outward IIUC22:31
rharperno, run 'hostname' on your instance22:31
blackboxswwhich is actually grabs from hostname on the cmdline22:31
rharperie, what actually ended up in the Linux hostname value22:31
blackboxswubuntu@ip-10-0-20-27:~$ hostname22:31
blackboxswip-10-0-20-2722:31
rharperok22:32
blackboxswbut for ec2 instances, you can't really get ahold of that local 'hostname'22:32
rharperthen I would think that should match in the data (which  is what you're pointing out, yes?)22:32
rharpercan you not resolve that now ?22:32
rharperthe .internal ?22:32
rharperwhat resolver is configured on the instance ?22:32
blackboxswI can from within amazon, but not from home22:32
rharperright22:33
rharperwhich is fine22:33
rharperthe instnace.json is from within the instance22:33
rharperbut, I think what's happening is that the hostname public value is not yet when dump the instance data22:33
rharperbut it's a valid hostname on the instance22:34
rharperso, there's a little fuzziness w.r.t what that value should reflect22:34
rharpershould it be the hostname at the time we process the metadata (which is what I think it is doing now)22:34
blackboxswright it's a valid hostname on the instance, what would you call the public-hostname which you can reference external to a given machine?22:34
rharperor should it reflect what the hostname value will be eventually (after cc_hostname runs)22:34
rharperpublic-hostname22:34
rharperI think22:34
rharperwe might need other cloud examples to see what makes the most sense22:35
blackboxsw@ the time we process metadata, we could query md['network']['public-hostname'] and it'd give us ec2-18-216-195-116.us-east-2.compute.amazonaws.com22:35
rharperI think I'd be fine with tagging hostnames with public or private22:35
rharperand let instance users pick22:36
rharperand skip having a instance_json['hostname']  value22:36
blackboxswyeah +122:36
rharperor have it include a dictionary of public/private values22:36
blackboxswI have ['v1'][22:36
rharperright, I see that22:36
blackboxswI have ['v1']['public-hostname'] which I think is a misnomer (as it's actually the local/private hostname)22:36
blackboxswso I'll surface public/private hostname keys which will allow us to differentiate22:37
rharper"public-hostname": "ip-10-0-20-27",22:37
rharperyes, that seems wrong22:37
rharperthat's the .internal one22:37
blackboxswyeah definitely feeling like that22:37
rharperbut you're saying it has a hostname that matches22:37
blackboxsweven though that's what our cloud.get_hostname() logic defaults to22:37
blackboxswI even believe cloud.get_hostname() should probably default to the public hostname where available instead of private22:38
rharperI wouldn't change what that does22:38
blackboxswbut, it currently doesn't (and that behavior is surfaced in multiple cc modules already.22:38
blackboxswyeah22:38
rharperbut in our rendering of the data into json, we could pick something else (or call it differently)22:38
blackboxswok will tweak that. as public/private is more explicit22:38
rharperdepending on the scripts folks may want the local/private name, for configuring services, etc22:39
rharperbut if they're injecting values to configure a service to point to another host, those would be the public ones22:39
blackboxswright22:39
rharperso I think we need both values22:39
blackboxsw+122:39
blackboxswvote 'private-hostname' vs 'local-hostname'?22:39
rharperhrm; I dunno22:52
rharperI kinda like public/private symmetry22:53
rharperbut I honestly have no strong feelings22:53

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