There are two ways to manage OpenStack cloud: using EC2 API(Amazon compatible) and nova API (native). Using native API is preferred way. OpenStack has python-novaclient project for that aim. It is command line interface for managing OpenStack. Unfortunatly it doesn’t support working with ssh-keys and we need to use euca2ools for that.
Starting from now this issue is over. Now you can perform following commands:
nova keypair-add [--pub_key <pub_key>] – creates public (if the pass to it is not passed) and private keys, saves public key into database and prints the private key into console.
nova keypair-delete – deletes keypair if it exists.
nova keypair-list – shows user’s keypairs like the eucatools do.
You can see sources on
https://github.com/griddynamics/osc-robot-python-novaclient
or binaries for RHEL
http://yum.griddynamics.net/yum/diablo/
and for CentOS
Hello , Pavel
An additional question is ….how to specify a instance using a particular keypair while booting via “nova boot” command ……
does this include in Grid Dynamic python-novaclient source ?
Thanks
Hugo Kuo
Hello, Hugo Kuo
Booting the server with the earlier created keypair is possible starting from now. Please read special post for it:
http://openstackgd.wordpress.com/2011/10/12/improving-novaclient-cli-flexibility-with-ssh-keys-while-booting-server/
And, yes, it is included in Grid Dynamic python-novaclient source: https://github.com/griddynamics/osc-robot-python-novaclient
This is cool! Was wondering if you were planning on pushing these changes back to trunk soon? I know a bunch of people who would like to use something like this. Thanks for the post…
Hello, Anthony Young
Yes, I have created pull request now in the
https://github.com/rackspace/python-novaclient.