/srv/irclogs.ubuntu.com/2014/10/22/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== ijw_ is now known as ijw
=== harlowja_away is now known as harlowja
championofcyrodiHi guys.  I'm running ubuntu 14.04 and everytime i reboot a nova instance using SSH i get: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!, where the ECDSA key is changed and i have to clean it from my known hosts file.  Is there a way or document describing how to disable this ssh key injection so that it is always the same, or that it doesnt not change?19:42
harlowjai'd ask your cloud provider, they are likely the ones that are changing the keys around and doing injection19:47
harlowjaor doing something else (probably isn't cloud-init doing this)19:47
championofcyrodii'm running my own fuel+mantis cluster w/ openstack19:49
championofcyrodi(which i guess makes me the only cloud provider i can ask)19:50
harmwthis isn't keyinjection, it's c-i resetting your ssh host keys. Isn't that configurable in c-i.conf?19:51
championofcyrodiI would think it is, but I'm not sure what the key/value pair is to configure.19:52
harmwyou're just using the default config?19:52
championofcyrodiyea19:52
harmwhmk, well I doubt thats the problem then19:52
harmwdid you check the logs?19:52
championofcyrodii pass in my own user-data to install some packages. but that's it.19:52
harmwsounds fairly harmless :)19:52
championofcyrodilet me check the logs...19:53
harmwbtw harlowja, my instance is only again after applying some hardcore raw sql :p19:55
harlowjahardcore sql19:55
harlowjasounds naughty19:55
harlowjalol19:55
harmwdamn right19:55
harlowja*hardcore raw sql19:55
harlowjalol19:55
championofcyrodimaybe this?  http://pastebin.com/zDYVkGnP19:56
harmwwell there is the reason why you keep having to edit your known_hosts file19:57
harmwbut what causes it (my guess, something in c-i.conf)19:57
championofcyrodiI see an 'ssh' module set in the init stage...19:58
championofcyrodihmm this is frustrating.  I am seeing a module named 'ssh_config' is performing the action(s) in the DEBUG logs from cloud-init.log.   However, I'm not finding "c-i.conf" anywhere in this distro, nor am I finding anything matching the string "ssh_config"20:10
championofcyrodionly 'ssh', 'ssh-authkey-fingerprints', and 'ssh-import-id'20:11
championofcyrodiclear20:11
championofcyrodioops20:11
kwadronautwell, the import-id is something you want to run only *once* per instance20:25
championofcyrodii think i found it...20:40
championofcyrodihttp://cloudinit.readthedocs.org/en/latest/topics/examples.html#configure-instances-ssh-keys20:40
championofcyrodiit looks like i'll need to define it in the #cloud-config, otherwise it's randomly generated everytime.20:40
smoserchampionofcyrodi, cloud-init will re-run the ssh key creation on 'per-instance' basis.20:59
smoserits not "every time".21:00
championofcyrodiso maybe the known key was just an issue for instances i terminated and re-created.21:00
smoserits every time it sees a new instance-id.21:00
smoserwell, that would be very much by design :)21:00
championofcyrodithanks for telling me that.  is there a doc that describes the modules and when they are used?21:01
championofcyrodii found this, which has been helpful: http://cloudinit.readthedocs.org/en/latest/topics/modules.html  but the modules section is empty21:01
smoserhttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/doc/examples/cloud-config.txt#L30021:01
smoserthen look at the ocnfig on your system (which cna be changed in user-data) in /etc/cloud/cloud.cfg and /etc/cloud/cloud.cfg.d/*.cfg21:02
championofcyrodithank you!!! you have saved my bacon.21:03
smoserthe dfeault frequency is 'per-instance'.21:03
smoseryou can change that ifyou'd like. but generally you do not want ot have multiple systems with the same ssh host keys.21:03
smoserif you change it to 'once', it will write a file /var/lib/cloud/something-or-other/ssh.once21:04
smoserand if that file is still there, it will never run it again21:04
harlowjahmmm, need to work on that module.html doc 21:22
smoserharlowja, 2.021:27
harlowjaya21:27
smoserthink about how to do it well.21:27
harlowjalol21:27
harlowjahmmm21:27
smoserand then tell dumb people like smoser21:27
harlowja:-P21:32
harlowjasmoser modules that have self-contained docs would be cool, then can use that in online docs :)21:36
smoseryeah, that is what i want. 21:38
smoserconfig modules with python comment that describe them.21:38
harlowja>>> from cloudinit.config import cc_ssh21:38
harlowja>>> cc_ssh.__doc__21:38
smoseryeah.21:38
harlowjaput a module level comment/docstring and it can be found21:38
harlowjaby magic!21:38
harlowjaha21:38
harlowjathen sphinx can read that afaik21:38
harlowjadoesn't seem so hard21:39
harlowjaget er' done21:40

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