Keypairs refers to SSH keypairs and consist of two elements—a public key and a private key. Keypairs are used for access to our Linux hosts via SSH. The public portion of our keypair is injected into our instance at boot-time through a service known as cloud-init. Cloud-init can perform many tasks, one of which is managing this public keypair injection. Only this specific combination of the public and private key will allow us access to our instances.
To begin with, ensure that you are logged in to your Ubuntu client that has access to the Nova Client tools. This can be installed using the following commands:
sudo apt-get update sudo apt-get –y install python-novaclient
And ensure you have set the following credentials set:
export OS_TENANT_NAME=cookbook export OS_USERNAME=admin export OS_PASSWORD=openstack export OS_AUTH_URL=http://172.16.0.200:5000/v2.0/ export OS_NO_CACHE=1