Ask Your Question

Openstack Juno Keypair Injection failed

asked 2015-06-20 08:32:33 -0500

Rajasekar Ramasamy gravatar image


I have configured Juno on CentOS 7 by following openstack installation document. All features are working fine except keypair authentication. I have created a keypair and used that keypair to launch a instance. Instance launch is successful but ssh-keypair auth is not working only password authentication is working.

By default keypair injection will be enabled or need to enable in Juno?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-06-22 10:28:23 -0500

mpetason gravatar image

Keypair Auth depends on the images you are using. If you have not configured the image to use Cloud Init then it will not pull the appropriate information. You should be using OpenStack ready images that pull data about themselves from metadata.

Normal OpenStack images do not usually have password based auth on, except for Cirros which is a test VM. Every other image should support SSH key injection with cloud init.

You can see exactly what is going on within the instance from a controller node:

source openrc
nova list --all-tenants
nova show [uuid]
nova console-log [uuid]

The UUID will be the ID of the instance that is having issues. You can take a look with show, then use console-log to see what happened during boot.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2015-06-20 08:32:33 -0500

Seen: 362 times

Last updated: Jun 22 '15