openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #11578
Re: Cannot get ssh-key in instance
On Thu, 10 May 2012, George Mihaiescu wrote:
> Hi,
>
> First, check if nova-api is running on the host where your nova-network runs (same as nova-compute if using a multi_host=true setup).
>
> Second, using the console of the instance check if your instance can access the API service by doing a:
> GET http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
>
> You can also read this doc for more info about the metadata service:
> http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html
>
>
> George
>
> ________________________________
>
> From: openstack-bounces+george.mihaiescu=q9.com@xxxxxxxxxxxxxxxxxxx [mailto:openstack-bounces+george.mihaiescu=q9.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of livemoon
> Sent: Thursday, May 10, 2012 9:26 AM
> To: Yong Sheng Gong
> Cc: openstack@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Openstack] Cannot get ssh-key in instance
>
>
> I am sure image is ok since of I use the same image in both older version installed via devstack on ubuntu11.10 and new version installed on ubuntu12.04.
>
> In older version, it can work well. but now it cannot. Am I missing something in nova.conf ?
>
>
> On Thu, May 10, 2012 at 8:29 PM, Yong Sheng Gong <gongysh@xxxxxxxxxx> wrote:
>
>
>
> have you started the instance with keypair?
>
>
>
> -----openstack-bounces+gongysh=cn.ibm.com@xxxxxxxxxxxxxxxxxxx wrote: -----
>
>
>
> To: livemoon <mwjpiero@xxxxxxxxx> <mailto:mwjpiero@xxxxxxxxx>
> From: Razique Mahroua <razique.mahroua@xxxxxxxxx> <mailto:razique.mahroua@xxxxxxxxx>
> Sent by: openstack-bounces+gongysh=cn.ibm.com@xxxxxxxxxxxxxxxxxxx
> Date: 05/10/2012 06:29PM
> Cc: openstack@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Openstack] Cannot get ssh-key in instance
>
>
> Hey livememon,
> is it possible to see the content of the rc.local. Also, are other instances able to reach the metadata server ?
>
>
>
>
> livemoon <mailto:mwjpiero@xxxxxxxxx>
> 10 mai 2012 12:24
>
> I running an instance(ubuntu or centos), and it cannot get keypair.
> In ubuntu12.04, I have install cloud-init and in centos I have add some command into /etc/rc.local
> There is some of instance's logs about cloud-init:
> cloud-init start-local running: Thu, 10 May 2012 10:17:33 +0000. up 4.47 seconds
> no instance data found in start-local
> ci-info: lo : 1 127.0.0.1 255.0.0.0 .
> ci-info: eth0 : 1 10.0.200.5 255.255.255.224 fa:16:3e:6a:30:7c
> ci-info: route-0: 0.0.0.0 10.0.200.1 0.0.0.0 eth0 UG
> ci-info: route-1: 10.0.200.0 0.0.0.0 255.255.255.224 eth0 U
> cloud-init start running: Thu, 10 May 2012 10:17:33 +0000. up 5.00 seconds
> no instance data found in start
Did you snip this log? I would have thought you'd see cloud-init
complaining about lack of data source. (re-trying on the meta-data
source).
Also, in order to debug why there is no user data service, there are 2
things you can do:
a.) mount an ubuntu image loopback, generate private ssh keys for the
host, set a password ... basically make it so that you can get in even if
there is no data source.
b.) try cirros (http://launchpad.net/cirros) upload and run one of those,
even if it fails to get the metadata service, you'll be able to log in
with password auth as 'cirros' with 'cubswin:)' as the password.
References