[GitHub] libcloud pull request: Ssh key management for softlayer

2014-06-22 Thread Itxaka
GitHub user Itxaka opened a pull request:

https://github.com/apache/libcloud/pull/321

Ssh key management for softlayer

This pull requests add ssh key management for the SoftLayer driver.

Add methods for:
list_key_pairs()
get_key_pair()
import_key_pair_from_string()
delete_key_pair()
create_key_pair()

It also adds a new property to create node ex_keyname which is the name 
of the key to be associated to the new node.

Added tests for all methods and modified the test_create_node() test to use 
a sshkey as well.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/Itxaka/libcloud 
ssh_key_management_for_softlayer

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/libcloud/pull/321.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #321


commit 49acc51e1a0603b0d0735ff289daaabe16d300b8
Author: Itxaka Serrano itxakaserr...@gmail.com
Date:   2014-06-21T04:35:33Z

First round of changes: Add Keypar object as in other drivers,  add ssh_key 
as a feature for the driver, associate the key to the node on create_node if a 
key name is used, added list_keypairs method to get all keys on the account, 
add key_name_to_id method to use the id on creating the node by providing the 
label

commit 60b0a71d2223c6fc552468504a96262accf7735f
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T12:59:59Z

implement get_keypar and catch and raise Libclouderror if no keys are 
returned

commit ff688a3674f8dafdae337e9365dbd2a541235433
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T13:08:18Z

raise KeyPairDoesNotExistError instead of Libcloud generic eror

commit 77a663f2ae37dedf2dfa70defe928e6bb9da35f5
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T14:10:23Z

added working create_key_pair and import_key_pair_from_string

commit c6ae1dc7d37504eb4962f025d91278f997974b1f
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T14:27:02Z

add delete_key_pair method

commit b403777a561cf9ad9310a7534f607a4bd9c27578
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T14:30:30Z

check if _key_name_to_id returns and empty key and raise 
KeyPairDoesNotExistError if it does

commit cd2a51178b28afe8aab1c408e8a1bee2c5230c67
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T14:38:48Z

make _key_name_to_id return the id instead of the whole key, make 
get_key_pair get just one key instead of getting all of them and then check the 
results

commit a2db2d671e6927eea124f55c4990718bb0994e4c
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T14:39:44Z

wrap the key_id on node cration around [] as we need to pass a list of 
keys, not just one

commit c2446010ebdacaae37a1bba68efa9ad140fe88f6
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T14:47:37Z

move the import to the proper place, remove Crypto import, add pycrypto to 
requirements

commit 20b02397fb1d83e0cb867772c1b345b446afe200
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T15:51:55Z

use Importerror to determine if we can use create_key_pair or not

commit 66a2e0f195032e4e39f98bff71d6ee61a2755e8d
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T17:01:41Z

add tests for the new methods, all passing

commit 605893bff3bfe120878a826842a590760d57d8ca
Author: Itxaka Serrano itxakaserr...@gmail.com
Date:   2014-06-21T04:35:33Z

Add ssh key management to SoftLayer driver. Adds methods for 
add/remove/get_one/get_all/import_from_string. Adds tests for all new methods.

commit d1954f51c1e3aed3f6d7d1920ede16b3c2a1ec84
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T17:12:03Z

Merge branch 'ssh_key_management_for_softlayer' of 
https://github.com/Itxaka/libcloud into ssh_key_management_for_softlayer

commit fb6d57493b4c60d6b2fb8b2aee05dcbd421391bb
Author: Itxaka itxaka.serr...@virdata.com
Date:   2014-06-22T17:18:52Z

Use the propers arg name




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] libcloud pull request: [LIBCLOUD-579] Allow nodes to be launched i...

2014-06-22 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/libcloud/pull/318


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


git commit: Allow nodes to be launched into a specific subnet by adding subnet parameter to create_node() method of ec2 driver

2014-06-22 Thread tomaz
Repository: libcloud
Updated Branches:
  refs/heads/trunk 2bd37b687 - 7afbfbb55


Allow nodes to be launched into a specific subnet by adding subnet parameter to 
create_node() method of ec2 driver

Closes #318

Signed-off-by: Tomaz Muraus to...@apache.org


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/7afbfbb5
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/7afbfbb5
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/7afbfbb5

Branch: refs/heads/trunk
Commit: 7afbfbb55e8d301fb0c62dd03dcf1d117dbb1e4a
Parents: 2bd37b6
Author: Lior Goikhburg goikhb...@gmail.com
Authored: Fri Jun 20 17:27:49 2014 +0400
Committer: Tomaz Muraus to...@apache.org
Committed: Sun Jun 22 20:12:45 2014 +0200

--
 CHANGES.rst | 5 +
 libcloud/compute/drivers/ec2.py | 6 ++
 2 files changed, 11 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/7afbfbb5/CHANGES.rst
--
diff --git a/CHANGES.rst b/CHANGES.rst
index 839a570..a6e6f25 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -243,6 +243,11 @@ Compute
   (GITHUB-317)
   [Pablo Orduña]
 
+- Allow user to launch EC2 node in a specific VPC subnet by passing
+  ``ex_subnet`` argument to the create_node method.
+  (GITHUB-318)
+  [Lior Goikhburg]
+
 Storage
 ~~~
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/7afbfbb5/libcloud/compute/drivers/ec2.py
--
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index db4ed76..1f86789 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -2047,6 +2047,9 @@ class BaseEC2NodeDriver(NodeDriver):
 
 :keywordex_ebs_optimized: EBS-Optimized if True
 :type   ex_ebs_optimized: ``bool``
+
+:keywordex_subnet: The subnet to launch the instance into.
+:type   ex_subnet: :class:`.EC2Subnet`
 
 image = kwargs[image]
 size = kwargs[size]
@@ -2118,6 +2121,9 @@ class BaseEC2NodeDriver(NodeDriver):
 if 'ex_ebs_optimized' in kwargs:
 params['EbsOptimized'] = kwargs['ex_ebs_optimized']
 
+if 'ex_subnet' in kwargs:
+params['SubnetId'] = kwargs['ex_subnet'].id
+
 object = self.connection.request(self.path, params=params).object
 nodes = self._to_nodes(object, 'instancesSet/item')
 



[jira] [Commented] (LIBCLOUD-579) Allow nodes to be launched into a specific subnet by adding subnet parameter to create_node() method of ec2 driver

2014-06-22 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/LIBCLOUD-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14040205#comment-14040205
 ] 

ASF GitHub Bot commented on LIBCLOUD-579:
-

Github user asfgit closed the pull request at:

https://github.com/apache/libcloud/pull/318


 Allow nodes to be launched into a specific subnet by adding subnet parameter 
 to create_node() method of ec2 driver
 --

 Key: LIBCLOUD-579
 URL: https://issues.apache.org/jira/browse/LIBCLOUD-579
 Project: Libcloud
  Issue Type: Improvement
Reporter: Lior Goikhburg
Priority: Minor

 .



--
This message was sent by Atlassian JIRA
(v6.2#6252)


git commit: Bump version to 0.15.0.

2014-06-22 Thread tomaz
Repository: libcloud
Updated Branches:
  refs/heads/trunk 7afbfbb55 - e71615f8d


Bump version to 0.15.0.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/e71615f8
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/e71615f8
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/e71615f8

Branch: refs/heads/trunk
Commit: e71615f8daadeda5d145929fea6f373e3b445ed5
Parents: 7afbfbb
Author: Tomaz Muraus to...@apache.org
Authored: Sun Jun 22 20:20:33 2014 +0200
Committer: Tomaz Muraus to...@apache.org
Committed: Sun Jun 22 20:20:33 2014 +0200

--
 CHANGES.rst  | 4 ++--
 libcloud/__init__.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/e71615f8/CHANGES.rst
--
diff --git a/CHANGES.rst b/CHANGES.rst
index a6e6f25..5e2dcca 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,8 +1,8 @@
 Changelog
 =
 
-Changes with Apache Libcloud in development

+Changes with Apache Libcloud 0.15.0
+---
 
 General
 ~~~

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e71615f8/libcloud/__init__.py
--
diff --git a/libcloud/__init__.py b/libcloud/__init__.py
index 04de453..8e969a6 100644
--- a/libcloud/__init__.py
+++ b/libcloud/__init__.py
@@ -20,7 +20,7 @@ libcloud provides a unified interface to the cloud computing 
resources.
 
 
 __all__ = ['__version__', 'enable_debug']
-__version__ = '0.14.1'
+__version__ = '0.15.0'
 
 import os