I have a VM with Ubuntu 12.04 and devstack up and running.
Now I want to create an ubuntu instance and ssh into it. I downloaded the current image from http://cloud-images.ubuntu.com/precise/current/ . I uploaded this image via the dashboard to openstack. Next I launched an instance based on this image with a keypair I created and added also via the dashboard before.
The instance is up. I can ping it and ssh seems also to be working but I always get the error Permission denied (publickey). If I view the log I see the instance creates ssh keypairs on the first boot. I also launched the instance via command line (nova boot) - same.
Before the instance creates ssh keypairs on first boot following warning occurs:
cloud-init start running: Wed, 15 Jan 2014 09:31:53 +0000. up 98.75 seconds found data source: DataSourceConfigDrive [net,ver=2][source=/dev/sr0] 2014-01-15 09:31:57,082 - __init__.py[WARNING]: Unhandled non-multipart userdata ''
Therefore I suppose my public key isn't pushed / injected into the instance with the help of cloud init. But I also tried to create the instance with nova boot and pass userdata (especially the ssh key) via the argument --user-data.