You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2016/04/13 18:09:37 UTC

[1/3] libcloud git commit: Added location filter in list_nodes of CloudStack

Repository: libcloud
Updated Branches:
  refs/heads/trunk c472bb8c2 -> 4816cbbfd


Added location filter in list_nodes of CloudStack

Closes #737

Signed-off-by: Tomaz Muraus <to...@tomaz.me>


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

Branch: refs/heads/trunk
Commit: 2f777cae68129f9d3e5f2a4f53bf695e79df7271
Parents: c472bb8
Author: lionel <li...@sixsq.com>
Authored: Wed Apr 6 15:01:59 2016 +0200
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Wed Apr 13 18:08:13 2016 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/cloudstack.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/2f777cae/libcloud/compute/drivers/cloudstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/cloudstack.py b/libcloud/compute/drivers/cloudstack.py
index 33edda7..387e1c7 100644
--- a/libcloud/compute/drivers/cloudstack.py
+++ b/libcloud/compute/drivers/cloudstack.py
@@ -1348,7 +1348,7 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, NodeDriver):
 
         return locations
 
-    def list_nodes(self, project=None):
+    def list_nodes(self, project=None, location=None):
         """
         @inherits: :class:`NodeDriver.list_nodes`
 
@@ -1356,12 +1356,21 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, NodeDriver):
                              the defined project.
         :type       project: :class:`.CloudStackProject`
 
+        :keyword    location: Limit nodes returned to those in the defined
+                              location.
+        :type       location: :class:`.NodeLocation`
+
         :rtype: ``list`` of :class:`CloudStackNode`
         """
 
         args = {}
+
         if project:
             args['projectid'] = project.id
+
+        if location is not None:
+            args['zoneid'] = location.id
+
         vms = self._sync_request('listVirtualMachines', params=args)
         addrs = self._sync_request('listPublicIpAddresses', params=args)
         port_forwarding_rules = self._sync_request('listPortForwardingRules')


[3/3] libcloud git commit: Fix changelog formatting which was causing docs build failure.

Posted by to...@apache.org.
Fix changelog formatting which was causing docs build failure.


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

Branch: refs/heads/trunk
Commit: 4816cbbfd6305eb46dbb6067f625aca7d07455af
Parents: 8a00059
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Wed Apr 13 18:09:01 2016 +0200
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Wed Apr 13 18:09:01 2016 +0200

----------------------------------------------------------------------
 CHANGES.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/4816cbbf/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index b4cbd95..64c61d2 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -10,8 +10,9 @@ General
 Compute
 ~~~~~~~
 
-- Fix a race condition on GCE driver `list_nodes()`- Invoking GCE’s `list_nodes()` while some VMs are being shutdown can result
-  in the `following`libcloud.common.google.ResourceNotFoundError` exception to be raised.
+- Fix a race condition on GCE driver `list_nodes()`- Invoking GCE’s
+  `list_nodes()` while some VMs are being shutdown can result in the following
+  `libcloud.common.google.ResourceNotFoundError` exception to be raised.
   (GITHUB-727)
   [Lénaïc Huard]
 


[2/3] libcloud git commit: Update changelog.

Posted by to...@apache.org.
Update changelog.


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

Branch: refs/heads/trunk
Commit: 8a0005916123d2a893ddf4716693d872747fc1ba
Parents: 2f777ca
Author: Tomaz Muraus <to...@tomaz.me>
Authored: Wed Apr 13 18:08:24 2016 +0200
Committer: Tomaz Muraus <to...@tomaz.me>
Committed: Wed Apr 13 18:08:24 2016 +0200

----------------------------------------------------------------------
 CHANGES.rst | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/8a000591/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 2eca5d8..b4cbd95 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -15,6 +15,11 @@ Compute
   (GITHUB-727)
   [Lénaïc Huard]
 
+- Allow user to filter nodes by location by adding optional `location`
+  argument to the `list_nodes()` method in the CloudStack driver.
+  (GITHUB-737)
+  [Lionel Schaub]
+
 DNS
 ~~~