You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/02 02:03:24 UTC

[1/5] libcloud git commit: Allow multiple preemptible instances to be created

Repository: libcloud
Updated Branches:
  refs/heads/trunk d8757c9d3 -> ecbd39936


Allow multiple preemptible instances to be created


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

Branch: refs/heads/trunk
Commit: 3f7a8ce9d07292687917a96ad71aec5c0f97543f
Parents: 216a24f
Author: John Baublitz <jo...@cambridgesemantics.com>
Authored: Wed Nov 9 12:21:49 2016 -0500
Committer: John Baublitz <jo...@cambridgesemantics.com>
Committed: Mon Nov 28 15:13:44 2016 -0500

----------------------------------------------------------------------
 libcloud/compute/drivers/gce.py | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/3f7a8ce9/libcloud/compute/drivers/gce.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index e0d5ea0..bc09ef6 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -4446,7 +4446,8 @@ class GCENodeDriver(NodeDriver):
             ex_service_accounts=None, timeout=DEFAULT_TASK_COMPLETION_TIMEOUT,
             description=None, ex_can_ip_forward=None, ex_disks_gce_struct=None,
             ex_nic_gce_struct=None, ex_on_host_maintenance=None,
-            ex_automatic_restart=None, ex_image_family=None):
+            ex_automatic_restart=None, ex_image_family=None,
+            ex_preemptible=None):
         """
         Create multiple nodes and return a list of Node objects.
 
@@ -4579,6 +4580,12 @@ class GCENodeDriver(NodeDriver):
 
         :return:  A list of Node objects for the new nodes.
         :rtype:   ``list`` of :class:`Node`
+
+        :keyword  ex_preemptible: Defines whether the instance is preemptible.
+                                        (If not supplied, the instance will
+                                         not be preemptible)
+        :type     ex_preemptible: ``bool`` or ``None``
+
         """
         if image and ex_disks_gce_struct:
             raise ValueError("Cannot specify both 'image' and "
@@ -4625,7 +4632,8 @@ class GCENodeDriver(NodeDriver):
                       'ex_disks_gce_struct': ex_disks_gce_struct,
                       'ex_nic_gce_struct': ex_nic_gce_struct,
                       'ex_on_host_maintenance': ex_on_host_maintenance,
-                      'ex_automatic_restart': ex_automatic_restart}
+                      'ex_automatic_restart': ex_automatic_restart,
+                      'ex_preemptible': ex_preemptible}
         # List for holding the status information for disk/node creation.
         status_list = []
 
@@ -7636,7 +7644,8 @@ class GCENodeDriver(NodeDriver):
             ex_nic_gce_struct=node_attrs['ex_nic_gce_struct'],
             ex_on_host_maintenance=node_attrs['ex_on_host_maintenance'],
             ex_automatic_restart=node_attrs['ex_automatic_restart'],
-            ex_subnetwork=node_attrs['subnetwork'])
+            ex_subnetwork=node_attrs['subnetwork'],
+            ex_preemptible=node_attrs['ex_preemptible'])
 
         try:
             node_res = self.connection.request(request, method='POST',


[3/5] libcloud git commit: Fix identation problems in docs

Posted by an...@apache.org.
Fix identation problems in docs


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

Branch: refs/heads/trunk
Commit: dbb20ce653c2f70b5a9c5f1f39a2de5eaa9e0257
Parents: e8d08aa
Author: John Baublitz <jo...@cambridgesemantics.com>
Authored: Tue Nov 29 11:42:27 2016 -0500
Committer: John Baublitz <jo...@cambridgesemantics.com>
Committed: Tue Nov 29 11:42:27 2016 -0500

----------------------------------------------------------------------
 libcloud/compute/drivers/gce.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/dbb20ce6/libcloud/compute/drivers/gce.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 8261c11..08df9f6 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -4534,12 +4534,12 @@ class GCENodeDriver(NodeDriver):
         :type     description: ``str`` or ``None``
 
         :keyword  ex_can_ip_forward: Set to ``True`` to allow this node to
-                                  send/receive non-matching src/dst packets.
+                                     send/receive non-matching src/dst packets.
         :type     ex_can_ip_forward: ``bool`` or ``None``
 
         :keyword  ex_preemptible: Defines whether the instance is preemptible.
-                                        (If not supplied, the instance will
-                                         not be preemptible)
+                                  (If not supplied, the instance will
+                                  not be preemptible)
         :type     ex_preemptible: ``bool`` or ``None``
 
         :keyword  ex_disks_gce_struct: Support for passing in the GCE-specific


[2/5] libcloud git commit: Fix for documentation

Posted by an...@apache.org.
Fix for documentation


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

Branch: refs/heads/trunk
Commit: e8d08aa2e7f69f2aa96da60151789828a2d02c83
Parents: 3f7a8ce
Author: John Baublitz <jo...@cambridgesemantics.com>
Authored: Tue Nov 29 11:00:18 2016 -0500
Committer: John Baublitz <jo...@cambridgesemantics.com>
Committed: Tue Nov 29 11:00:18 2016 -0500

----------------------------------------------------------------------
 libcloud/compute/drivers/gce.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/e8d08aa2/libcloud/compute/drivers/gce.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index bc09ef6..8261c11 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -4537,6 +4537,11 @@ class GCENodeDriver(NodeDriver):
                                   send/receive non-matching src/dst packets.
         :type     ex_can_ip_forward: ``bool`` or ``None``
 
+        :keyword  ex_preemptible: Defines whether the instance is preemptible.
+                                        (If not supplied, the instance will
+                                         not be preemptible)
+        :type     ex_preemptible: ``bool`` or ``None``
+
         :keyword  ex_disks_gce_struct: Support for passing in the GCE-specific
                                        formatted disks[] structure. No attempt
                                        is made to ensure proper formatting of
@@ -4581,11 +4586,6 @@ class GCENodeDriver(NodeDriver):
         :return:  A list of Node objects for the new nodes.
         :rtype:   ``list`` of :class:`Node`
 
-        :keyword  ex_preemptible: Defines whether the instance is preemptible.
-                                        (If not supplied, the instance will
-                                         not be preemptible)
-        :type     ex_preemptible: ``bool`` or ``None``
-
         """
         if image and ex_disks_gce_struct:
             raise ValueError("Cannot specify both 'image' and "


[4/5] libcloud git commit: Merge branch 'github-954' into trunk Closes #954

Posted by an...@apache.org.
Merge branch 'github-954' into trunk
Closes #954


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

Branch: refs/heads/trunk
Commit: 9b011a9f8ca48e92fdd6aaa9de2d6f2b2a067d9c
Parents: d8757c9 dbb20ce
Author: Anthony Shaw <an...@apache.org>
Authored: Sun Apr 2 12:02:19 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Sun Apr 2 12:02:19 2017 +1000

----------------------------------------------------------------------

----------------------------------------------------------------------



[5/5] libcloud git commit: changes for #954

Posted by an...@apache.org.
changes for #954


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

Branch: refs/heads/trunk
Commit: ecbd399363690ba2d19e333b2a2ff2f26fd0b02b
Parents: 9b011a9
Author: Anthony Shaw <an...@apache.org>
Authored: Sun Apr 2 12:03:18 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Sun Apr 2 12:03:18 2017 +1000

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/ecbd3993/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index ccdb572..ec58245 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -24,6 +24,10 @@ Common
 Compute
 ~~~~~~~
 
+- [GCE] Allow preemptible instances to be created
+  [GITHUB-954]
+  (John Baublitz)
+
 - Add support for forcing detachment of EBS volumes to EC2 driver
   [GITHUB-1007]
   (Sergey Babak)