sebastien goasguen recently worked on these methods to CloudStack, and I have been tweaking the equivalent methods for EC2. It we be good if we good try and align and OpenStack tweaks so that all 3 drivers work similarly - so I write a script using them and they work for all 3 drivers.
Currently the EC2 driver has the following:
- ex_find_or_import_keypair_by_key_material (I'd like to shorten the name to just ex_find_or_import_keypair)
- ex_describe_keypair (Should be renamed ex_get_keypair to be more consistent with other API's?)
These should be deprecated and removed IMO:
- ex_describe_all_keypairs (Should really be marked as deprecated)
- ex_describe_keypairs (Should really be marked as deprecated)
It doesn't currently have an ex_delete_keypair, but it should.
Right now the EC2 methods operate on and return dictionary objects that look a bit like this dict(keyName='key_name', keyFingerprint='00:...'). I would quite like to add a shared NodeAuthKeypair object that could be used for this API for all 3 drivers. This could also be passed in to methods that take an auth parameter instead of ex_keyname.
Maybe we could remove ex_ from the front of some of these methods?