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 2014/08/05 23:02:44 UTC

[1/3] git commit: [LIBCLOUD-577] Add an example to OpenStack driver documentation which shows how to specify a tenant name.

Repository: libcloud
Updated Branches:
  refs/heads/trunk d7917ef5a -> e63adedf0


[LIBCLOUD-577] Add an example to OpenStack driver documentation which shows how
to specify a tenant name.


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

Branch: refs/heads/trunk
Commit: a2694af1a52b5377bebeeaf378c3b9bfbb05a21f
Parents: d7917ef
Author: Tomaz Muraus <to...@apache.org>
Authored: Tue Aug 5 22:40:24 2014 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Aug 5 22:42:56 2014 +0200

----------------------------------------------------------------------
 docs/compute/drivers/openstack.rst             | 14 ++++++++++++--
 docs/examples/compute/openstack/tenant_name.py |  9 +++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/a2694af1/docs/compute/drivers/openstack.rst
----------------------------------------------------------------------
diff --git a/docs/compute/drivers/openstack.rst b/docs/compute/drivers/openstack.rst
index 0d46fb7..ecf57d8 100644
--- a/docs/compute/drivers/openstack.rst
+++ b/docs/compute/drivers/openstack.rst
@@ -48,6 +48,7 @@ Available arguments:
 
   Unless you are working with a very old version of OpenStack you will either
   want to use ``2.0_apikey`` or ``2.0_password``.
+* ``ex_tenant_name`` - tenant / project name
 * ``ex_force_auth_token`` - token which is used for authentication. If this
   argument is provided, normal authentication flow is skipped and the OpenStack
   API endpoint is directly hit with the provided token.
@@ -104,8 +105,17 @@ token before the currently used one is about to expire.
 .. literalinclude:: /examples/compute/openstack/force_auth_token.py
    :language: python
 
-5. HP Cloud (www.hpcloud.com)
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+5. Connecting and specifying a tenant
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+This example shows how to connect to OpenStack installation which requires you
+to specify a tenant (``ex_tenant_name`` argument).
+
+.. literalinclude:: /examples/compute/openstack/tenant_name.py
+   :language: python
+
+6. HP Cloud (www.hpcloud.com)
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Connecting to HP Cloud US West and US East (OpenStack Havana).
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/a2694af1/docs/examples/compute/openstack/tenant_name.py
----------------------------------------------------------------------
diff --git a/docs/examples/compute/openstack/tenant_name.py b/docs/examples/compute/openstack/tenant_name.py
new file mode 100644
index 0000000..bc5d7f4
--- /dev/null
+++ b/docs/examples/compute/openstack/tenant_name.py
@@ -0,0 +1,9 @@
+from libcloud.compute.types import Provider
+from libcloud.compute.providers import get_driver
+
+
+OpenStack = get_driver(Provider.OPENSTACK)
+driver = OpenStack('your_auth_username', 'your_auth_password',
+                   ex_tenant_name='mytenant',
+                   ex_force_auth_url='http://192.168.1.101:5000',
+                   ex_force_auth_version='2.0_password')


[2/3] git commit: Sort the regions for a consistent result.

Posted by to...@apache.org.
Sort the regions for a consistent result.


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

Branch: refs/heads/trunk
Commit: aa0879d93866754a734cafb4725df63258ecf65c
Parents: a2694af
Author: Tomaz Muraus <to...@apache.org>
Authored: Tue Aug 5 22:55:40 2014 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Aug 5 22:58:20 2014 +0200

----------------------------------------------------------------------
 libcloud/test/compute/test_openstack.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/aa0879d9/libcloud/test/compute/test_openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_openstack.py b/libcloud/test/compute/test_openstack.py
index e097128..06e79ba 100644
--- a/libcloud/test/compute/test_openstack.py
+++ b/libcloud/test/compute/test_openstack.py
@@ -115,7 +115,7 @@ class OpenStackServiceCatalogTests(unittest.TestCase):
 
     def test_get_regions(self):
         regions = self.service_catalog.get_regions()
-        self.assertEqual(regions, ['ORD', 'LON'])
+        self.assertEqual(sorted(regions), ['LON', 'ORD'])
 
     def test_get_service_names(self):
         OpenStackBaseConnection.conn_classes = (OpenStack_2_0_MockHttp,


[3/3] git commit: Re-generate supported methods file.

Posted by to...@apache.org.
Re-generate supported methods file.


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

Branch: refs/heads/trunk
Commit: e63adedf059a098959fb81def0a84ec648f9ca37
Parents: aa0879d
Author: Tomaz Muraus <to...@apache.org>
Authored: Tue Aug 5 22:55:52 2014 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Tue Aug 5 22:58:24 2014 +0200

----------------------------------------------------------------------
 docs/compute/_supported_methods_image_management.rst | 2 +-
 docs/compute/_supported_methods_main.rst             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/e63adedf/docs/compute/_supported_methods_image_management.rst
----------------------------------------------------------------------
diff --git a/docs/compute/_supported_methods_image_management.rst b/docs/compute/_supported_methods_image_management.rst
index 03d104b..dcbc1d0 100644
--- a/docs/compute/_supported_methods_image_management.rst
+++ b/docs/compute/_supported_methods_image_management.rst
@@ -62,7 +62,7 @@ Provider                              list images get image create image delete
 `vCloud`_                             yes         no        no           no           no        
 `Voxel VoxCLOUD`_                     yes         no        no           no           no        
 `vps.net`_                            yes         no        no           no           no        
-`VMware vSphere`_                     no          no        no           no           no        
+`VMware vSphere`_                     yes         no        no           no           no        
 ===================================== =========== ========= ============ ============ ==========
 
 .. _`Abiquo`: http://www.abiquo.com/

http://git-wip-us.apache.org/repos/asf/libcloud/blob/e63adedf/docs/compute/_supported_methods_main.rst
----------------------------------------------------------------------
diff --git a/docs/compute/_supported_methods_main.rst b/docs/compute/_supported_methods_main.rst
index 216e1bb..fbf8feb 100644
--- a/docs/compute/_supported_methods_main.rst
+++ b/docs/compute/_supported_methods_main.rst
@@ -62,7 +62,7 @@ Provider                              list nodes create node reboot node destroy
 `vCloud`_                             yes        yes         yes         yes          yes         yes        yes        
 `Voxel VoxCLOUD`_                     yes        yes         yes         yes          yes         yes        no         
 `vps.net`_                            yes        yes         yes         yes          yes         yes        no         
-`VMware vSphere`_                     yes        no          yes         yes          no          no         no         
+`VMware vSphere`_                     yes        no          yes         yes          yes         no         no         
 ===================================== ========== =========== =========== ============ =========== ========== ===========
 
 .. _`Abiquo`: http://www.abiquo.com/