[GitHub] libcloud pull request: correct rST filename for NFSN DNS driver do...
GitHub user ktdreyer opened a pull request: https://github.com/apache/libcloud/pull/735 correct rST filename for NFSN DNS driver docs I imported the incorrect filename. Correct this here. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ktdreyer/libcloud nfsn-docs Alternatively you can review and apply these changes as the patch at: https://github.com/apache/libcloud/pull/735.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 #735 commit febf97148498053cf4ad86efd02a225a9e3173a7 Author: Ken DreyerDate: 2016-04-01T04:15:30Z correct rST filename for NFSN DNS driver docs I imported the incorrect filename. Correct this here. --- 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. ---
[2/4] libcloud git commit: Adding tests and docs Closes #734
Adding tests and docs Closes #734 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/526bb563 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/526bb563 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/526bb563 Branch: refs/heads/trunk Commit: 526bb563e4110dc351f39a62a98ea30879cd8647 Parents: 2359148 Author: Jeffrey DunhamAuthored: Thu Mar 31 18:24:26 2016 -0400 Committer: anthony-shaw Committed: Fri Apr 1 09:35:44 2016 +1100 -- libcloud/common/dimensiondata.py| 16 libcloud/compute/drivers/dimensiondata.py | 3 ++- libcloud/test/compute/test_dimensiondata.py | 24 +--- 3 files changed, 23 insertions(+), 20 deletions(-) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/526bb563/libcloud/common/dimensiondata.py -- diff --git a/libcloud/common/dimensiondata.py b/libcloud/common/dimensiondata.py index 63df42a..84c7c9d 100644 --- a/libcloud/common/dimensiondata.py +++ b/libcloud/common/dimensiondata.py @@ -721,17 +721,17 @@ class DimensionDataServerVMWareTools(object): """ def __init__(self, status, version_status, api_version): """ -Instantiate a new :class:`DimensionDataServerCpuSpecification` +Instantiate a new :class:`DimensionDataServerVMWareTools` object -:param cpu_count: The number of CPUs -:type cpu_count: ``int`` +:param status: The status of VMWare Tools +:type status: ``str`` -:param cores_per_socket: The number of cores per socket, the -recommendation is 1 -:type cores_per_socket: ``int`` +:param version_status: The status for the version of VMWare Tools +(i.e NEEDS_UPGRADE) +:type version_status: ``str`` -:param performance: The performance type, e.g. HIGHPERFORMANCE -:type performance: ``str`` +:param api_version: The API version of VMWare Tools +:type api_version: ``str`` """ self.status = status self.version_status = version_status http://git-wip-us.apache.org/repos/asf/libcloud/blob/526bb563/libcloud/compute/drivers/dimensiondata.py -- diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py index 3c208c0..a49c9ae 100644 --- a/libcloud/compute/drivers/dimensiondata.py +++ b/libcloud/compute/drivers/dimensiondata.py @@ -2164,7 +2164,8 @@ class DimensionDataNodeDriver(NodeDriver): = element.find(fixxpath('networkInfo', TYPES_URN)) is not None cpu_spec = self._to_cpu_spec(element.find(fixxpath('cpu', TYPES_URN))) disks = self._to_disks(element) -vmware_tools = self._to_vmware_tools(element.find(fixxpath('vmwareTools', TYPES_URN))) +vmware_tools = self._to_vmware_tools( +element.find(fixxpath('vmwareTools', TYPES_URN))) extra = { 'description': findtext(element, 'description', TYPES_URN), 'sourceImageId': findtext(element, 'sourceImageId', TYPES_URN), http://git-wip-us.apache.org/repos/asf/libcloud/blob/526bb563/libcloud/test/compute/test_dimensiondata.py -- diff --git a/libcloud/test/compute/test_dimensiondata.py b/libcloud/test/compute/test_dimensiondata.py index cc8a0f8..915ed53 100644 --- a/libcloud/test/compute/test_dimensiondata.py +++ b/libcloud/test/compute/test_dimensiondata.py @@ -24,7 +24,7 @@ from libcloud.utils.py3 import httplib from libcloud.common.types import InvalidCredsError from libcloud.common.dimensiondata import DimensionDataAPIException, NetworkDomainServicePlan -from libcloud.common.dimensiondata import DimensionDataServerCpuSpecification, DimensionDataServerDisk +from libcloud.common.dimensiondata import DimensionDataServerCpuSpecification, DimensionDataServerDisk, DimensionDataServerVMWareTools from libcloud.common.dimensiondata import TYPES_URN from libcloud.compute.drivers.dimensiondata import DimensionDataNodeDriver as DimensionData from libcloud.compute.base import Node, NodeAuthPassword, NodeLocation @@ -65,6 +65,18 @@ class DimensionDataTests(unittest.TestCase, TestCaseMixin): ret = self.driver.list_nodes() self.assertEqual(len(ret), 7) +def test_node_extras(self): +DimensionDataMockHttp.type = None +ret = self.driver.list_nodes() +self.assertTrue(isinstance(ret[0].extra['vmWareTools'], DimensionDataServerVMWareTools)) +self.assertTrue(isinstance(ret[0].extra['cpu'], DimensionDataServerCpuSpecification)) +
[4/4] libcloud git commit: Change log for #730 #733 and #734
Change log for #730 #733 and #734 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/705206a8 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/705206a8 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/705206a8 Branch: refs/heads/trunk Commit: 705206a872736f67580e7de556e31c1e6adf6304 Parents: 8f9fda2 Author: anthony-shawAuthored: Fri Apr 1 09:42:02 2016 +1100 Committer: anthony-shaw Committed: Fri Apr 1 09:42:02 2016 +1100 -- CHANGES.rst | 12 1 file changed, 12 insertions(+) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/705206a8/CHANGES.rst -- diff --git a/CHANGES.rst b/CHANGES.rst index c63c0c5..0414d88 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -32,6 +32,10 @@ General Compute ~~~ +- [dimension data] added support for VMWare tools VM information inside list_nodes responses + (GITHUB-734) + [Jeff Dunham] + - [ec2] added ex_encrypted and ex_kms_key_id optional parameters to the create volume method (GITHUB-729) [Viktor Ognev] @@ -106,6 +110,10 @@ Compute Storage ~~~ +- Added Outscale storage driver + (GITHUB-730) + [Javier M. Mellid] + - Improvements to Google Auth for Storage and Compute and MIME bug fix (LIBCLOUD-800, GITHUB-689) [Scott Crunkleton] @@ -132,6 +140,10 @@ Loadbalancer DNS +- Added NearlyFreeSpeech.net (NSFN) driver + [Ken Drayer] + (GITHUB-733) + - Added Lua DNS driver [Oltjano Terpollari] (GITHUB-732)
[1/4] libcloud git commit: Adding vmWareTools object
Repository: libcloud Updated Branches: refs/heads/trunk e2c9f62da -> 705206a87 Adding vmWareTools object Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/23591483 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/23591483 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/23591483 Branch: refs/heads/trunk Commit: 23591483e95d9030b0dd8bc21ca71b8d1f39acdf Parents: e2c9f62 Author: Jeffrey DunhamAuthored: Thu Mar 31 17:17:22 2016 -0400 Committer: anthony-shaw Committed: Fri Apr 1 09:35:39 2016 +1100 -- libcloud/common/dimensiondata.py | 29 ++ libcloud/compute/drivers/dimensiondata.py | 11 +- 2 files changed, 39 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/23591483/libcloud/common/dimensiondata.py -- diff --git a/libcloud/common/dimensiondata.py b/libcloud/common/dimensiondata.py index ce8e39e..63df42a 100644 --- a/libcloud/common/dimensiondata.py +++ b/libcloud/common/dimensiondata.py @@ -715,6 +715,35 @@ class DimensionDataServerDisk(object): % (self.id, self.size_gb)) +class DimensionDataServerVMWareTools(object): +""" +A class that represents the VMWareTools for a node +""" +def __init__(self, status, version_status, api_version): +""" +Instantiate a new :class:`DimensionDataServerCpuSpecification` + +:param cpu_count: The number of CPUs +:type cpu_count: ``int`` + +:param cores_per_socket: The number of cores per socket, the +recommendation is 1 +:type cores_per_socket: ``int`` + +:param performance: The performance type, e.g. HIGHPERFORMANCE +:type performance: ``str`` +""" +self.status = status +self.version_status = version_status +self.api_version = api_version + +def __repr__(self): +return (('') +% (self.status, self.version_status, self.api_version)) + + class DimensionDataFirewallRule(object): """ DimensionData Firewall Rule for a network domain http://git-wip-us.apache.org/repos/asf/libcloud/blob/23591483/libcloud/compute/drivers/dimensiondata.py -- diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py index 05c6482..3c208c0 100644 --- a/libcloud/compute/drivers/dimensiondata.py +++ b/libcloud/compute/drivers/dimensiondata.py @@ -32,6 +32,7 @@ from libcloud.common.dimensiondata import DimensionDataNetworkDomain from libcloud.common.dimensiondata import DimensionDataVlan from libcloud.common.dimensiondata import DimensionDataServerCpuSpecification from libcloud.common.dimensiondata import DimensionDataServerDisk +from libcloud.common.dimensiondata import DimensionDataServerVMWareTools from libcloud.common.dimensiondata import DimensionDataPublicIpBlock from libcloud.common.dimensiondata import DimensionDataFirewallRule from libcloud.common.dimensiondata import DimensionDataFirewallAddress @@ -2129,6 +2130,12 @@ class DimensionDataNodeDriver(NodeDriver): cores_per_socket=int(element.get('coresPerSocket')), performance=element.get('speed')) +def _to_vmware_tools(self, element): +return DimensionDataServerVMWareTools( +status=element.get('runningStatus'), +version_status=element.get('versionStatus'), +api_version=element.get('apiVersion')) + def _to_disks(self, object): disk_elements = object.findall(fixxpath('disk', TYPES_URN)) return [self._to_disk(el) for el in disk_elements] @@ -2157,6 +2164,7 @@ class DimensionDataNodeDriver(NodeDriver): = element.find(fixxpath('networkInfo', TYPES_URN)) is not None cpu_spec = self._to_cpu_spec(element.find(fixxpath('cpu', TYPES_URN))) disks = self._to_disks(element) +vmware_tools = self._to_vmware_tools(element.find(fixxpath('vmwareTools', TYPES_URN))) extra = { 'description': findtext(element, 'description', TYPES_URN), 'sourceImageId': findtext(element, 'sourceImageId', TYPES_URN), @@ -2182,7 +2190,8 @@ class DimensionDataNodeDriver(NodeDriver): 'operatingSystem', TYPES_URN)).get('displayName'), 'status': status, -'disks': disks +'disks': disks, +'vmWareTools': vmware_tools } public_ip = findtext(element, 'publicIpAddress', TYPES_URN)
[3/4] libcloud git commit: Regenerate provider tables
Regenerate provider tables Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/8f9fda2f Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/8f9fda2f Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/8f9fda2f Branch: refs/heads/trunk Commit: 8f9fda2f76e4fa05699199427d66364ac3a5c444 Parents: 526bb56 Author: anthony-shawAuthored: Fri Apr 1 09:36:38 2016 +1100 Committer: anthony-shaw Committed: Fri Apr 1 09:36:38 2016 +1100 -- docs/compute/_supported_methods_block_storage.rst | 2 ++ docs/compute/_supported_methods_image_management.rst| 2 ++ docs/compute/_supported_methods_key_pair_management.rst | 2 ++ docs/compute/_supported_methods_main.rst| 2 ++ docs/compute/_supported_providers.rst | 2 ++ docs/dns/_supported_methods.rst | 2 ++ docs/dns/_supported_providers.rst | 4 ++-- docs/loadbalancer/_supported_methods.rst| 2 ++ docs/loadbalancer/_supported_providers.rst | 2 ++ docs/storage/_supported_methods_cdn.rst | 4 docs/storage/_supported_methods_main.rst| 6 +- docs/storage/_supported_providers.rst | 4 12 files changed, 31 insertions(+), 3 deletions(-) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/8f9fda2f/docs/compute/_supported_methods_block_storage.rst -- diff --git a/docs/compute/_supported_methods_block_storage.rst b/docs/compute/_supported_methods_block_storage.rst index 081de50..dc1649b 100644 --- a/docs/compute/_supported_methods_block_storage.rst +++ b/docs/compute/_supported_methods_block_storage.rst @@ -4,6 +4,7 @@ Provider list volumes create volume destroy volume attach volume detach volume list snapshots create snapshot = = == = = == === `Abiquo`_ no nono nonono no +`Aliyun ECS`_ yes yes yes yes yes yesyes `PCextreme AuroraCompute`_yes yes yes yes yes no yes `Azure Virtual machines`_ yes yes yes yes yes no yes `Bluebox Blocks`_ no nono nonono no @@ -79,6 +80,7 @@ Provider list volumes create volume destroy volume = = == = = == === .. _`Abiquo`: http://www.abiquo.com/ +.. _`Aliyun ECS`: https://www.aliyun.com/product/ecs .. _`PCextreme AuroraCompute`: https://www.pcextreme.com/aurora/compute .. _`Azure Virtual machines`: http://azure.microsoft.com/en-us/services/virtual-machines/ .. _`Bluebox Blocks`: http://bluebox.net http://git-wip-us.apache.org/repos/asf/libcloud/blob/8f9fda2f/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 12d113b..c55752e 100644 --- a/docs/compute/_supported_methods_image_management.rst +++ b/docs/compute/_supported_methods_image_management.rst @@ -4,6 +4,7 @@ Provider list images get image create image delete image copy image = === = == `Abiquo`_ yes nono no no +`Aliyun ECS`_ yes yes yes yes yes `PCextreme AuroraCompute`_yes nono no no `Azure Virtual machines`_ yes nono no no `Bluebox Blocks`_ yes nono no no @@ -79,6 +80,7 @@ Provider list images get image create image delete = === = == .. _`Abiquo`: http://www.abiquo.com/ +.. _`Aliyun ECS`: https://www.aliyun.com/product/ecs ..
[GitHub] libcloud pull request: DimensionData: Adding VMWareTools object to...
Github user asfgit closed the pull request at: https://github.com/apache/libcloud/pull/734 --- 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. ---
libcloud git commit: add NearlyFreeSpeech.net DNS driver Closes #733
Repository: libcloud Updated Branches: refs/heads/trunk 2a450e407 -> e2c9f62da add NearlyFreeSpeech.net DNS driver Closes #733 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/e2c9f62d Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/e2c9f62d Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/e2c9f62d Branch: refs/heads/trunk Commit: e2c9f62da71875b66b119764952db830e0cf809c Parents: 2a450e4 Author: Ken DreyerAuthored: Wed Mar 30 07:46:00 2016 -0600 Committer: anthony-shaw Committed: Fri Apr 1 09:33:33 2016 +1100 -- docs/dns/_supported_providers.rst | 2 + docs/dns/drivers/nfsn.net | 25 +++ docs/examples/dns/nfsn/instantiate_driver.py| 5 + libcloud/common/nfsn.py | 114 +++ libcloud/dns/drivers/nfsn.py| 198 +++ libcloud/dns/providers.py | 2 + libcloud/dns/types.py | 2 +- libcloud/test/common/test_nfsn.py | 65 ++ .../test/dns/fixtures/nfsn/list_one_record.json | 9 + .../test/dns/fixtures/nfsn/list_records.json| 16 ++ .../dns/fixtures/nfsn/list_records_created.json | 23 +++ .../dns/fixtures/nfsn/record_not_removed.json | 4 + .../test/dns/fixtures/nfsn/zone_not_found.json | 4 + libcloud/test/dns/test_nfsn.py | 148 ++ 14 files changed, 616 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/e2c9f62d/docs/dns/_supported_providers.rst -- diff --git a/docs/dns/_supported_providers.rst b/docs/dns/_supported_providers.rst index 884c03d..5454f0e 100644 --- a/docs/dns/_supported_providers.rst +++ b/docs/dns/_supported_providers.rst @@ -14,6 +14,7 @@ Provider Documentation Provider constan `Host Virtual DNS`_ :doc:`Click ` HOSTVIRTUAL :mod:`libcloud.dns.drivers.hostvirtual` :class:`HostVirtualDNSDriver` `Linode DNS`_ LINODE :mod:`libcloud.dns.drivers.linode` :class:`LinodeDNSDriver` `Liquidweb DNS`_ :doc:`Click ` LIQUIDWEB :mod:`libcloud.dns.drivers.liquidweb`:class:`LiquidWebDNSDriver` +`NearlyFreeSpeech.net DNS`_ NFSN :mod:`libcloud.dns.drivers.nfsn` :class:`NFSNDNSDriver` `Point DNS`_ :doc:`Click ` POINTDNS :mod:`libcloud.dns.drivers.pointdns` :class:`PointDNSDriver` `Rackspace DNS`_RACKSPACE :mod:`libcloud.dns.drivers.rackspace`:class:`RackspaceDNSDriver` `Rackspace DNS (UK)`_ RACKSPACE_UK :mod:`libcloud.dns.drivers.rackspace`:class:`RackspaceUKDNSDriver` @@ -37,6 +38,7 @@ Provider Documentation Provider constan .. _`Host Virtual DNS`: https://www.hostvirtual.com/ .. _`Linode DNS`: http://www.linode.com/ .. _`Liquidweb DNS`: https://www.liquidweb.com +.. _`NearlyFreeSpeech.net DNS`: https://www.nearlyfreespeech.net/ .. _`Point DNS`: https://pointhq.com/ .. _`Rackspace DNS`: http://www.rackspace.com/ .. _`Rackspace DNS (UK)`: http://www.rackspace.com/ http://git-wip-us.apache.org/repos/asf/libcloud/blob/e2c9f62d/docs/dns/drivers/nfsn.net -- diff --git a/docs/dns/drivers/nfsn.net b/docs/dns/drivers/nfsn.net new file mode 100644 index 000..89551f4 --- /dev/null +++ b/docs/dns/drivers/nfsn.net @@ -0,0 +1,25 @@ +NFSN DNS Driver Documentation +=== + +`NFSN`_, Inc. is a U.S. company that provides web hosting and domain name +server services. + +Instantiating the driver + + +To instantiate the driver you need to pass the account name and API key to the +driver constructor as shown below. Obtain your API key from NFSN by submitting +a secure support request via the `control panel`_. + +.. literalinclude:: /examples/dns/nfsn/instantiate_driver.py + :language: python + +API Docs + + +.. autoclass:: libcloud.dns.drivers.nfsn.NFSNDNSDriver +:members: +:inherited-members: + +.. _`NFSN`: https://www.nearlyfreespeech.net/ +.. _`control panel`: https://members.nearlyfreespeech.net/ http://git-wip-us.apache.org/repos/asf/libcloud/blob/e2c9f62d/docs/examples/dns/nfsn/instantiate_driver.py -- diff --git a/docs/examples/dns/nfsn/instantiate_driver.py
[jira] [Commented] (LIBCLOUD-807) support NearlyFreeSpeech.net
[ https://issues.apache.org/jira/browse/LIBCLOUD-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15220783#comment-15220783 ] ASF GitHub Bot commented on LIBCLOUD-807: - Github user asfgit closed the pull request at: https://github.com/apache/libcloud/pull/733 > support NearlyFreeSpeech.net > > > Key: LIBCLOUD-807 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-807 > Project: Libcloud > Issue Type: New Feature > Components: DNS >Reporter: Ken Dreyer > > NearlyFreeSpeech.net is a US-based web host that offers an API to manage its > DNS services (https://www.nearlyfreespeech.net/services/dns). > I have a work-in-progress driver for NFSN that I'll clean up and submit for > inclusion in libcloud. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[GitHub] libcloud pull request: [LIBCLOUD-807] add NearlyFreeSpeech.net DNS...
Github user asfgit closed the pull request at: https://github.com/apache/libcloud/pull/733 --- 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. ---
libcloud git commit: Add S3_RGW_OUTSCALE provider Closes #730
Repository: libcloud Updated Branches: refs/heads/trunk 9230d9e4e -> 2a450e407 Add S3_RGW_OUTSCALE provider Closes #730 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/2a450e40 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/2a450e40 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/2a450e40 Branch: refs/heads/trunk Commit: 2a450e4072c0468440877ec3decf3b21eaf369fa Parents: 9230d9e Author: Javier M. MellidAuthored: Wed Mar 30 15:00:03 2016 + Committer: anthony-shaw Committed: Fri Apr 1 09:31:00 2016 +1100 -- libcloud/storage/drivers/s3.py | 31 +++ libcloud/storage/providers.py | 2 ++ libcloud/storage/types.py | 2 ++ 3 files changed, 35 insertions(+) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/2a450e40/libcloud/storage/drivers/s3.py -- diff --git a/libcloud/storage/drivers/s3.py b/libcloud/storage/drivers/s3.py index 789a284..c4c249c 100644 --- a/libcloud/storage/drivers/s3.py +++ b/libcloud/storage/drivers/s3.py @@ -60,6 +60,15 @@ S3_AP_NORTHEAST2_HOST = 's3-ap-northeast-2.amazonaws.com' S3_AP_NORTHEAST_HOST = S3_AP_NORTHEAST1_HOST S3_SA_EAST_HOST = 's3-sa-east-1.amazonaws.com' +S3_RGW_OUTSCALE_HOSTS_BY_REGION =\ +{'eu-west-1': 'osu.eu-west-1.outscale.com', + 'eu-west-2': 'osu.eu-west-2.outscale.com', + 'us-west-1': 'osu.us-west-1.outscale.com', + 'us-east-2': 'osu.us-east-2.outscale.com', + 'cn-southeast-1': 'osu.cn-southeast-1.outscale.hk'} + +S3_RGW_OUTSCALE_DEFAULT_REGION = 'eu-west-2' + API_VERSION = '2006-03-01' NAMESPACE = 'http://s3.amazonaws.com/doc/%s/' % (API_VERSION) @@ -1004,3 +1013,25 @@ class S3SAEastStorageDriver(S3StorageDriver): name = 'Amazon S3 (sa-east-1)' connectionCls = S3SAEastConnection ex_location_name = 'sa-east-1' + + +class S3RGWOutscaleConnection(S3Connection): +pass + + +class S3RGWOutscaleStorageDriver(S3StorageDriver): + +def __init__(self, key, secret=None, secure=True, host=None, port=None, + api_version=None, region=S3_RGW_OUTSCALE_DEFAULT_REGION, + **kwargs): +if region not in S3_RGW_OUTSCALE_HOSTS_BY_REGION: +raise LibcloudError('Unknown region (%s)' % (region), driver=self) +self.name = 'OUTSCALE Ceph RGW S3 (%s)' % (region) +self.ex_location_name = region +self.region_name = region +self.connectionCls = S3RGWOutscaleConnection +self.connectionCls.host = S3_RGW_OUTSCALE_HOSTS_BY_REGION[region] +super(S3RGWOutscaleStorageDriver, self).__init__(key, secret, + secure, host, port, + api_version, region, + **kwargs) http://git-wip-us.apache.org/repos/asf/libcloud/blob/2a450e40/libcloud/storage/providers.py -- diff --git a/libcloud/storage/providers.py b/libcloud/storage/providers.py index 1cb31e4..1d38558 100644 --- a/libcloud/storage/providers.py +++ b/libcloud/storage/providers.py @@ -42,6 +42,8 @@ DRIVERS = { ('libcloud.storage.drivers.s3', 'S3APNE2StorageDriver'), Provider.S3_SA_EAST: ('libcloud.storage.drivers.s3', 'S3SAEastStorageDriver'), +Provider.S3_RGW_OUTSCALE: +('libcloud.storage.drivers.s3', 'S3RGWOutscaleStorageDriver'), Provider.NINEFOLD: ('libcloud.storage.drivers.ninefold', 'NinefoldStorageDriver'), Provider.GOOGLE_STORAGE: http://git-wip-us.apache.org/repos/asf/libcloud/blob/2a450e40/libcloud/storage/types.py -- diff --git a/libcloud/storage/types.py b/libcloud/storage/types.py index 2c17ef0..131d4f6 100644 --- a/libcloud/storage/types.py +++ b/libcloud/storage/types.py @@ -37,6 +37,7 @@ class Provider(object): :cvar S3_EU_WEST: Amazon S3 EU West (Ireland) :cvar S3_AP_SOUTHEAST_HOST: Amazon S3 Asia South East (Singapore) :cvar S3_AP_NORTHEAST_HOST: Amazon S3 Asia South East (Tokyo) +:cvar S3_RGW_OUTSCALE: OUTSCALE RGW S3 :cvar NINEFOLD: Ninefold :cvar GOOGLE_STORAGE Google Storage :cvar S3_US_WEST_OREGON: Amazon S3 US West 2 (Oregon) @@ -54,6 +55,7 @@ class Provider(object): S3_AP_NORTHEAST1 = 's3_ap_northeast_1' S3_AP_NORTHEAST2 = 's3_ap_northeast_2' S3_SA_EAST = 's3_sa_east' +S3_RGW_OUTSCALE = 's3_rgw_outscale' NINEFOLD = 'ninefold' GOOGLE_STORAGE = 'google_storage' S3_US_WEST_OREGON = 's3_us_west_oregon'
[GitHub] libcloud pull request: Outscale storage providers
Github user asfgit closed the pull request at: https://github.com/apache/libcloud/pull/730 --- 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: DimensionData: Adding VMWareTools object to...
GitHub user jadunham1 opened a pull request: https://github.com/apache/libcloud/pull/734 DimensionData: Adding VMWareTools object to extra for Node object Added a new VMWareTools object to represent the vmware tools. Tests + Docs included You can merge this pull request into a Git repository by running: $ git pull https://github.com/jadunham1/libcloud feature/vmwaretools Alternatively you can review and apply these changes as the patch at: https://github.com/apache/libcloud/pull/734.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 #734 commit 3a48098c6f693d195e71dc57f7668c467f03d641 Author: Jeffrey DunhamDate: 2016-03-31T21:17:22Z Adding vmWareTools object commit 5e04d2c156ff1b58daca74e9ba04044a0a60462c Author: Jeffrey Dunham Date: 2016-03-31T22:24:26Z Adding tests and docs --- 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. ---
[jira] [Updated] (LIBCLOUD-606) Can not connect to AWS with IAM role temporary credentials
[ https://issues.apache.org/jira/browse/LIBCLOUD-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zach Carlson updated LIBCLOUD-606: -- Attachment: ec2-route53-token-auth-support.patch ec2-route53-token-auth-support.patch is largely the same as the other one, but also makes the route53 provider able to use token authentication. > Can not connect to AWS with IAM role temporary credentials > -- > > Key: LIBCLOUD-606 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-606 > Project: Libcloud > Issue Type: Bug > Components: Compute >Reporter: Katriel Traum >Priority: Minor > Attachments: ec2-route53-token-auth-support.patch, > ec2-unbreak-token-auth.patch, test_iam.py > > > Can not connect to AWS with IAM role temporary credentials. > Using key, secret and token, with debug enabled, I get the following headers: > # begin 44002048 request -- > curl -i -X GET -H 'Host: ec2.eu-west-1.amazonaws.com' -H 'X-LC-Request-ID: > 44002048' -H 'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.15.1 > (Amazon EC2 (eu-west-1)) ' --compress > 'https://ec2.eu-west-1.amazonaws.com:443/?SignatureVersion=2==2014-08-21T14%3A45%3A19Z=HmacSHA256=2013-10-15==DescribeInstances' > # begin 44002048:44002696 response -- > HTTP/1.1 401 Unauthorized^M > Transfer-Encoding: chunked^M > Date: Thu, 21 Aug 2014 14:45:19 GMT^M > Server: AmazonEC2^M > ^M > fe^M > > AuthFailureAWS was not able to > validate the provided access > credentials5032a22a-e2d2-45f6-be8f-92d3294d1aec^M > 0^M > # end 44002048:44002696 response -- > It doesn't seem like the supplied token is in the header -- This message was sent by Atlassian JIRA (v6.3.4#6332)