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 2013/08/13 16:21:40 UTC

[1/3] git commit: docs: Add a note about extenstion arguments to the FAQ entry.

Updated Branches:
  refs/heads/trunk 6bf42e1e7 -> 9e6863c0c


docs: Add a note about extenstion arguments to the FAQ entry.


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

Branch: refs/heads/trunk
Commit: 20fdc9c86bc1e115ebe67bb83a880955cb6ad019
Parents: 6bf42e1
Author: Tomaz Muraus <to...@apache.org>
Authored: Tue Aug 13 15:45:03 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Aug 13 15:45:03 2013 +0200

----------------------------------------------------------------------
 docs/faq.rst | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/20fdc9c8/docs/faq.rst
----------------------------------------------------------------------
diff --git a/docs/faq.rst b/docs/faq.rst
index ba5f898..fa1850c 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -11,8 +11,8 @@ that you can't manage block storage independent of the compute API.
 This also makes sense because in most cases you are only interested in attaching
 or detaching volumes from and to the compute nodes.
 
-What are the extension methods?
--------------------------------
+What are the extension methods and arguments?
+---------------------------------------------
 
 Libcloud acts as a lowest common denominator and exposes a unified base API
 which allows you to work with many different cloud providers through a single
@@ -23,8 +23,9 @@ functionality offered by different cloud service providers is available
 through a base API.
 
 Libcloud solves this problem and allows user to access provider specific
-functionality through so called extension methods. Extension methods are
-all the methods which are prefixed with the ``ex_``.
+functionality through a so called extension methods and arguments. Extension
+methods and arguments are all the methods and arguments which are prefixed
+with ``ex_``.
 
 Extension methods are there for your convenience, but you should be careful
 when you use them because they make switching or working with multiple


[2/3] git commit: Issue LIBCLOUD-363: Fix ElasticHosts bug. Now checks for HTTP 204 and HTTP 200 to determine drive imaging status.

Posted by to...@apache.org.
Issue LIBCLOUD-363: Fix ElasticHosts bug. Now checks for HTTP 204 and HTTP 200 to determine drive imaging status.

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/73559d0b
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/73559d0b
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/73559d0b

Branch: refs/heads/trunk
Commit: 73559d0b741e8f86dcb8c0075eac714c32466185
Parents: 20fdc9c
Author: Bob Thompson <bo...@gmail.com>
Authored: Tue Jul 16 14:31:17 2013 -0400
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Aug 13 16:15:22 2013 +0200

----------------------------------------------------------------------
 libcloud/compute/drivers/elasticstack.py   | 2 +-
 libcloud/test/compute/test_elasticstack.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/73559d0b/libcloud/compute/drivers/elasticstack.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/elasticstack.py b/libcloud/compute/drivers/elasticstack.py
index b957614..603fdf7 100644
--- a/libcloud/compute/drivers/elasticstack.py
+++ b/libcloud/compute/drivers/elasticstack.py
@@ -276,7 +276,7 @@ class ElasticStackBaseNodeDriver(NodeDriver):
             method='POST'
         )
 
-        if response.status != 204:
+        if response.status not in (200, 204):
             raise ElasticStackException('Drive imaging failed')
 
         # We wait until the drive is imaged and then boot up the node

http://git-wip-us.apache.org/repos/asf/libcloud/blob/73559d0b/libcloud/test/compute/test_elasticstack.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_elasticstack.py b/libcloud/test/compute/test_elasticstack.py
index 0b3faf8..5d30bbd 100644
--- a/libcloud/test/compute/test_elasticstack.py
+++ b/libcloud/test/compute/test_elasticstack.py
@@ -216,7 +216,7 @@ class ElasticStackMockHttp(MockHttp):
 
     def _drives_0012e24a_6eae_4279_9912_3432f698cec8_image_38df0986_4d85_4b76_b502_3878ffc80161_gunzip(self, method, url, body, headers):
         # ElasticHosts image
-        return (httplib.NO_CONTENT, body, {}, httplib.responses[httplib.NO_CONTENT])
+        return (httplib.OK, body, {}, httplib.responses[httplib.OK])
 
     def _drives_0012e24a_6eae_4279_9912_3432f698cec8_image_90aa51f2_15c0_4cff_81ee_e93aa20b9468_gunzip(self, method, url, body, headers):
         # Skalikloud image


[3/3] git commit: Update changes.

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


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

Branch: refs/heads/trunk
Commit: 9e6863c0cd887ef8172c97755bda253e3a3bdf9e
Parents: 73559d0
Author: Tomaz Muraus <to...@apache.org>
Authored: Tue Aug 13 16:21:01 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Aug 13 16:21:01 2013 +0200

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/9e6863c0/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 819d4b8..f6b534d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -41,6 +41,10 @@ Changes with Apache Libcloud in development
       (LIBCLOUD-367)
       [John Carr]
 
+    - Fix a bug in the ElasticHosts driver and check for right HTTP status
+      code when determining drive imaging success. (LIBCLOUD-363)
+      [Bob Thompson]
+
   *) Storage
 
     - Fix a regression with calling encode_container_name instead of