summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/create_keypairs.py
AgeCommit message (Collapse)AuthorFilesLines
2017-07-26Added configuration for keypair size.spisarski1-4/+11
Removed hardcoded key byte value of 1024 and added the abiltiy for the user to define their key size. JIRA: SNAPS-20 Change-Id: I81654420e558aae8a03bed902bb8be8f025b992c Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-24Added keypair config for key file deletion.spisarski1-4/+29
Added KeypairSetting attribute named 'delete_on_clean' which is used to override the keypair creator's logic for deleting its associated public/private key files. JIRA: SNAPS-105 Change-Id: I337db99daa6bf7d4b42e8729a92a4baef5c73140 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-20Created new class KeypairSettingsError.spisarski1-1/+7
Raising KeypairSettingsError in KeypairSettings instead of Exception. JIRA: SNAPS-133 Change-Id: Ie67f1da429f7d7a5e1c71c4f2f30bf9d11bbe209 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-02Add a warning of keypair creationboucherv1-0/+4
Put a warning if the public key already exist in OpenStack but the private key file is not found Change-Id: Ie2dc5b9f6a6abb0831e1826130d5c283cf3f34ec Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-06-20Changes to KeypairSettings constructor to use kwargs.spisarski1-31/+35
And changed line lengths to 79 for pep8. JIRA: SNAPS-98 Change-Id: I01f7f459bc46ed818d75d30f8bea7b1e09b5b376 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-25Updated installation documents and fixed problems found during investigation.spisarski1-0/+7
The code changes are primarily required when the runtime environment is Windows. JIRA: SNAPS-75 Change-Id: Ia2134861dd96e1d2c4b597f42fb348929e787a51 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-16Ensure creators' constructors cannot raise exceptions.spisarski1-0/+3
While creating unit tests for vPing that is using SNAPS, exceptions can be raised when retrieving their respective OpenStack clients with incorrect credentials. Moved client retrieval to the create() method which one should expect exceptions to be raised. JIRA: SNAPS-81 Change-Id: Id8e4279f60b97704b25a89c6312dcf2ebdc3f459 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-08Modified code to support both Python 2.7 and 3.xspisarski1-24/+18
* Tested on Python 2.7.10 and 3.4.4 * Updated installation documentation JIRA: SNAPS-30 Change-Id: I94a37d218be8ea47bbbcfb560197737430fcb3ba Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-15Initial patch with all code from CableLabs repository.spisarski1-0/+121
Change-Id: I70a2778718c5e7f21fd14e4ad28c9269d3761cc7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>