[rhos-list] EXTERNAL: Re: SSH Key Injection not working.
Minton, Rich
rich.minton at lmco.com
Fri Mar 22 17:40:29 UTC 2013
Super. It looks like I'm still having an issue with ssh keys. Cloud-init doesn't seem to insert the key into "authorized_keys".
Here is the output of the boot.log.
Starting cloud-init: Cloud-init v. 0.7.1 running 'init-local' at Fri, 22 Mar 2013 17:21:51 +0000. Up 66.13 seconds.
Starting cloud-init: Cloud-init v. 0.7.1 running 'init' at Fri, 22 Mar 2013 17:21:53 +0000. Up 67.51 seconds.
ci-info: ++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++
ci-info: +--------+------+-------------+---------------+-------------------+
ci-info: | Device | Up | Address | Mask | Hw-Address |
ci-info: +--------+------+-------------+---------------+-------------------+
ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | . |
ci-info: | eth0 | True | 10.10.16.13 | 255.255.255.0 | fa:16:3e:43:6d:4d |
ci-info: +--------+------+-------------+---------------+-------------------+
ci-info: +++++++++++++++++++++++++++++++Route info+++++++++++++++++++++++++++++++
ci-info: +-------+-------------+------------+---------------+-----------+-------+
ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
ci-info: +-------+-------------+------------+---------------+-----------+-------+
ci-info: | 0 | 10.10.16.0 | 0.0.0.0 | 255.255.255.0 | eth0 | U |
ci-info: | 1 | 169.254.0.0 | 0.0.0.0 | 255.255.0.0 | eth0 | U |
ci-info: | 2 | 0.0.0.0 | 10.10.16.7 | 0.0.0.0 | eth0 | UG |
ci-info: +-------+-------------+------------+---------------+-----------+-------+
2013-03-22 13:21:56,519 - util.py[WARNING]: Applying ssh credentials failed!
Starting cloud-init: Cloud-init v. 0.7.1 running 'modules:config' at Fri, 22 Mar 2013 17:21:57 +0000. Up 71.30 seconds.
Starting cloud-init: Cloud-init v. 0.7.1 running 'modules:final' at Fri, 22 Mar 2013 17:21:58 +0000. Up 72.85 seconds.
2013-03-22 13:21:59,147 - util.py[WARNING]: Running ssh-authkey-fingerprints (<module 'cloudinit.config.cc_ssh_authkey_fingerprints' from '/usr/lib/python2.6/site-packages/cloudinit/config/cc_ssh_authkey_fingerprints.pyc'>) failed
ec2:
ec2: #############################################################
ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
ec2: 1024 de:0d:95:89:10:b3:f8:a5:12:09:62:87:58:f5:52:35 /etc/ssh/ssh_host_dsa_key.pub (DSA)
ec2: 2048 48:d3:2c:ac:98:4e:57:dc:07:8a:4e:c8:0c:68:56:35 /etc/ssh/ssh_host_key.pub (RSA1)
ec2: 2048 97:62:2b:dd:09:3c:5d:c6:30:7e:8a:16:89:27:82:6a /etc/ssh/ssh_host_rsa_key.pub (RSA)
ec2: -----END SSH HOST KEY FINGERPRINTS-----
ec2: #############################################################
-----BEGIN SSH HOST KEY KEYS-----
2048 35 21889849139367763563389351601377820796073793617449436599221977659445135002476223129833833651351484232076837788805006750680052997128685757303892593965137923198447956864014079923478870309110547046664268287380298838332284048302681336615302514348725862981947986908242642891955318438217141018134624513598829945193978261667926153861849588173917651884170461212835461964580843245838698025157376233972830294897970640494259212138531890829666635458094297349958505817038457555402332013792018319388616117427759769435072425962956358797493569252499044371829936847980644362073198927847473883205821775406782358666256423235107872534147
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAs/IUMJ56v2OLNGNKiooyV0cY4gITD56Km64WL3RtHc9TrHGOXOcxNJHRsHS0JFkxPY9PXNlIuoqF6/FxTmPwW1KeqDigT4/a9Ho5WSaVEmRSdID2fPtBawZeUlZQH3KHMIcCGYkixQpb8o5JNNn0LNUEI1N7YkbnliK2zuewWwMoXYUqKvqi6LRlov6HFRP9EbyrZYVFWCpbRy6ZlP781VF3QR7PdAMl/IZWZmG7uMuRGCqfhUEJVYMFxLgShL/1QE6/eW7jc0tcHBaPo5CZReMQy3kE1TO9XltCTLsWYbhc1Sn7O1BaqIC3W8mOfEz39QKQ/tBMpgOcRK88Xtbz2Q==
-----END SSH HOST KEY KEYS-----
Cloud-init v. 0.7.1 finished at Fri, 22 Mar 2013 17:21:59 +0000. Datasource DataSourceEc2. Up 73.49 seconds
Starting ntpd: [ OK ]
NetBackup Authentication daemon not started.
NetBackup network daemon started.
NetBackup client daemon started.
NetBackup SAN Client Fibre Transport daemon started.
NetBackup Bare Metal Restore Boot Server daemon started.
Starting postfix: [ OK ]
Starting abrt daemon: [ OK ]
Starting crond: [ OK ]
Starting McAfee Agent services... [ OK ]
Starting SMB services: [ OK ]
Starting atd: [ OK ]
Starting Red Hat Network Daemon: [ OK ]
Starting rhsmcertd...[ OK ]
Starting certmonger: [ OK ]
AUTHORIZED_KEYS:
********************************
********************************
[root at uvslv-diu04dv log]#
-----Original Message-----
From: Joshua Harlow [mailto:harlowja at yahoo-inc.com]
Sent: Friday, March 22, 2013 1:13 PM
To: Minton, Rich; Russell Bryant; rhos-list at redhat.com
Subject: Re: [rhos-list] EXTERNAL: Re: SSH Key Injection not working.
If u need more help. I am the second most active dev (and added all the RH
stuffs) in cloud-init.
Here to serve :-P
-Josh
On 3/22/13 9:33 AM, "Minton, Rich" <rich.minton at lmco.com<mailto:rich.minton at lmco.com>> wrote:
>It looks like my problem was with the older cloud-init package. I
>updated to the latest Red Hat version of cloud-init and now everything
>works great.
>
>Thanks,
>Rick
>
>-----Original Message-----
>From: rhos-list-bounces at redhat.com<mailto:rhos-list-bounces at redhat.com>
>[mailto:rhos-list-bounces at redhat.com]
>On Behalf Of Russell Bryant
>Sent: Friday, March 22, 2013 6:32 AM
>To: rhos-list at redhat.com<mailto:rhos-list at redhat.com>
>Subject: EXTERNAL: Re: [rhos-list] SSH Key Injection not working.
>
>On 03/21/2013 06:13 PM, Minton, Rich wrote:
>> While logged into the VM, I can run
>> http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key and
>> the ssh key is returned. So I guess the metadata service is working
>> properly. Do I need to have the .ssh directory and the
>> authorized_keys file already in place and with the correct permissions?
>
>If you were able to verify that the metadata server returns the SSH
>key, then the problem seems to be with however the instance is trying
>to get it (as in, an issue with the image, not OpenStack).
>
>--
>Russell Bryant
>
>_______________________________________________
>rhos-list mailing list
>rhos-list at redhat.com<mailto:rhos-list at redhat.com>
>https://www.redhat.com/mailman/listinfo/rhos-list
>
>_______________________________________________
>rhos-list mailing list
>rhos-list at redhat.com<mailto:rhos-list at redhat.com>
>https://www.redhat.com/mailman/listinfo/rhos-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhos-list/attachments/20130322/8fcd9b6f/attachment.htm>
More information about the rhos-list
mailing list