[5/6] libcloud git commit: [google] Allow for old and new style service account client email address
[google] Allow for old and new style service account client email address Closes LIBCLOUD-785 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/22093a6a Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/22093a6a Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/22093a6a Branch: refs/heads/0.20.1 Commit: 22093a6a55a73274be263567effbe1af577e22c7 Parents: 302b9bb Author: Eric JohnsonAuthored: Fri Dec 18 23:57:47 2015 + Committer: Eric Johnson Committed: Fri Jan 15 15:23:25 2016 + -- CHANGES.rst | 4 libcloud/common/google.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/22093a6a/CHANGES.rst -- diff --git a/CHANGES.rst b/CHANGES.rst index c70933e..250869c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -30,6 +30,10 @@ General Compute ~~~ +- [google] Allow for old and new style service account client email address + (LIBCLOUD-785) + [Hoang Phan] + - Removed DreamHosts Compute Driver, DreamHosts users will now use the OpenStack Node driver since DreamHosts are OpenStack API compliant (GITHUB-655) http://git-wip-us.apache.org/repos/asf/libcloud/blob/22093a6a/libcloud/common/google.py -- diff --git a/libcloud/common/google.py b/libcloud/common/google.py index e29451f..0a8a476 100644 --- a/libcloud/common/google.py +++ b/libcloud/common/google.py @@ -607,7 +607,7 @@ class GoogleAuthType(object): @staticmethod def _is_sa(user_id): -return user_id.endswith('@developer.gserviceaccount.com') +return user_id.endswith('.gserviceaccount.com') class GoogleBaseConnection(ConnectionUserAndKey, PollingConnection):
[1/6] libcloud git commit: Use hasattr rather than getattr to check for existence
Repository: libcloud Updated Branches: refs/heads/0.20.1 [created] d1cf93179 Use hasattr rather than getattr to check for existence I forgot getattr throws an exception. This should have been a hasattr. Additionally added a check to make sure it's a dict before treating it as such. Closes #659 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/38b61eb1 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/38b61eb1 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/38b61eb1 Branch: refs/heads/0.20.1 Commit: 38b61eb13fcee91c1a172516da93a9c652b29024 Parents: 4087f45 Author: Greg HillAuthored: Tue Dec 15 10:42:47 2015 -0600 Committer: Eric Johnson Committed: Fri Jan 15 15:22:04 2016 + -- libcloud/dns/drivers/rackspace.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/38b61eb1/libcloud/dns/drivers/rackspace.py -- diff --git a/libcloud/dns/drivers/rackspace.py b/libcloud/dns/drivers/rackspace.py index 1e05206..4507fb1 100644 --- a/libcloud/dns/drivers/rackspace.py +++ b/libcloud/dns/drivers/rackspace.py @@ -667,9 +667,10 @@ def _rackspace_result_has_more(response, result_length, limit): def _check_ptr_extra_fields(device_or_record): -if not (getattr(device_or_record, 'extra') and +if not (hasattr(device_or_record, 'extra') and +isinstance(device_or_record.extra, dict) and device_or_record.extra.get('uri') is not None and device_or_record.extra.get('service_name') is not None): raise LibcloudError("Can't create PTR Record for %s because it " "doesn't have a 'uri' and 'service_name' in " -"'extra'") +"'extra'" % device_or_record)
[6/6] libcloud git commit: bugfix version 0.20.1
bugfix version 0.20.1 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/d1cf9317 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/d1cf9317 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/d1cf9317 Branch: refs/heads/0.20.1 Commit: d1cf931796f1064f5b1c36d35a80551488fb5d50 Parents: 22093a6 Author: Eric JohnsonAuthored: Fri Jan 15 15:39:46 2016 + Committer: Eric Johnson Committed: Fri Jan 15 15:39:46 2016 + -- libcloud/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/d1cf9317/libcloud/__init__.py -- diff --git a/libcloud/__init__.py b/libcloud/__init__.py index dee9765..e538931 100644 --- a/libcloud/__init__.py +++ b/libcloud/__init__.py @@ -20,7 +20,7 @@ libcloud provides a unified interface to the cloud computing resources. """ __all__ = ['__version__', 'enable_debug'] -__version__ = '0.20.0' +__version__ = '0.20.1' import os import codecs
[libcloud] Git Push Summary
Repository: libcloud Updated Tags: refs/tags/v0.20.1-tentative [created] d1cf93179
[jira] [Commented] (LIBCLOUD-785) GCE: Service Account User ID has been changed the postfix
[ https://issues.apache.org/jira/browse/LIBCLOUD-785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15101950#comment-15101950 ] ASF subversion and git services commented on LIBCLOUD-785: -- Commit 22093a6a55a73274be263567effbe1af577e22c7 in libcloud's branch refs/heads/0.20.1 from [~erjohnso] [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=22093a6 ] [google] Allow for old and new style service account client email address Closes LIBCLOUD-785 > GCE: Service Account User ID has been changed the postfix > - > > Key: LIBCLOUD-785 > URL: https://issues.apache.org/jira/browse/LIBCLOUD-785 > Project: Libcloud > Issue Type: Bug > Components: Core >Reporter: Hoang Phan >Assignee: Eric Johnson > Labels: gce, google-compute-engine, oauth2 > > The post-fix of Service Account has been change from > developer.gserviceaccount.com to ..iam.gserviceaccount.com. It > make user always need to use api service to authenticate. > https://github.com/apache/libcloud/blob/trunk/libcloud/common/google.py#L609 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[3/6] libcloud git commit: Fixed bug in public IP addition command
Fixed bug in public IP addition command Closes #661 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/eb49f38d Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/eb49f38d Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/eb49f38d Branch: refs/heads/0.20.1 Commit: eb49f38dfa21887774d24d0cd1079c1958ea8a7e Parents: 1b3b91c Author: anthony-shawAuthored: Mon Dec 21 09:05:16 2015 +1100 Committer: Eric Johnson Committed: Fri Jan 15 15:22:24 2016 + -- libcloud/compute/drivers/dimensiondata.py | 2 +- ..._4d8a_9cbc_8dabe5a7d0e4_network_addPublicIpBlock.xml | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/eb49f38d/libcloud/compute/drivers/dimensiondata.py -- diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py index e195045..9f22e31 100644 --- a/libcloud/compute/drivers/dimensiondata.py +++ b/libcloud/compute/drivers/dimensiondata.py @@ -873,7 +873,7 @@ class DimensionDataNodeDriver(NodeDriver): block_id = None for info in findall(response, 'info', TYPES_URN): -if info.get('name') == 'publicIpBlockId': +if info.get('name') == 'ipBlockId': block_id = info.get('value') return self.ex_get_public_ip_block(block_id) http://git-wip-us.apache.org/repos/asf/libcloud/blob/eb49f38d/libcloud/test/compute/fixtures/dimensiondata/caas_2_1_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_addPublicIpBlock.xml -- diff --git a/libcloud/test/compute/fixtures/dimensiondata/caas_2_1_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_addPublicIpBlock.xml b/libcloud/test/compute/fixtures/dimensiondata/caas_2_1_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_addPublicIpBlock.xml index 1fcb8d3..132 100644 --- a/libcloud/test/compute/fixtures/dimensiondata/caas_2_1_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_addPublicIpBlock.xml +++ b/libcloud/test/compute/fixtures/dimensiondata/caas_2_1_8a8f6abc_2745_4d8a_9cbc_8dabe5a7d0e4_network_addPublicIpBlock.xml @@ -1,7 +1,7 @@ - - -ADD_PUBLIC_IP_BLOCK -OK -Public IPv4 Address Block has been added successfully to Network Domain. - + + +ADD_PUBLIC_IP_BLOCK +OK +Public IPv4 Address Block has been added successfully to Network Domain d3320077-c2ce-4523-8c65-d417e766077b. + \ No newline at end of file
[4/6] libcloud git commit: Fix syntax error for DimensionDataStatus object
Fix syntax error for DimensionDataStatus object Closes #662 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/302b9bba Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/302b9bba Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/302b9bba Branch: refs/heads/0.20.1 Commit: 302b9bba33aeecbc2768c9d796845d31a2a1e9e4 Parents: eb49f38 Author: Ming ShengAuthored: Sun Dec 20 23:02:12 2015 +0800 Committer: Eric Johnson Committed: Fri Jan 15 15:22:37 2016 + -- libcloud/common/dimensiondata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/302b9bba/libcloud/common/dimensiondata.py -- diff --git a/libcloud/common/dimensiondata.py b/libcloud/common/dimensiondata.py index c734b75..3fc6e3c 100644 --- a/libcloud/common/dimensiondata.py +++ b/libcloud/common/dimensiondata.py @@ -298,7 +298,7 @@ class DimensionDataStatus(object): return (('') % (self.action, self.request_time, self.user_name, self.number_of_steps, self.update_time, self.step_name, self.step_number, self.step_percent_complete,
[libcloud] Git Push Summary
Repository: libcloud Updated Tags: refs/tags/v0.20.1-tentative d1cf93179 -> 87deb0449
[2/3] libcloud git commit: auroradns: Use self.connection.driver instead of self for 'driver' Closes #672
auroradns: Use self.connection.driver instead of self for 'driver' Closes #672 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/56649ca8 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/56649ca8 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/56649ca8 Branch: refs/heads/trunk Commit: 56649ca8d81ae3de1723debb17918f60bad2c6a0 Parents: de7862f Author: Wido den HollanderAuthored: Fri Jan 15 09:25:09 2016 +0100 Committer: anthony-shaw Committed: Fri Jan 15 19:39:18 2016 +1100 -- libcloud/dns/drivers/auroradns.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/56649ca8/libcloud/dns/drivers/auroradns.py -- diff --git a/libcloud/dns/drivers/auroradns.py b/libcloud/dns/drivers/auroradns.py index 7c5d73c..658f99c 100644 --- a/libcloud/dns/drivers/auroradns.py +++ b/libcloud/dns/drivers/auroradns.py @@ -575,13 +575,13 @@ class AuroraDNSDriver(DNSDriver): return Record(id=record['id'], name=name, type=record['type'], data=record['content'], zone=zone, - driver=self, ttl=record['ttl'], + driver=self.connection.driver, ttl=record['ttl'], extra=extra) def __res_to_zone(self, zone): return Zone(id=zone['id'], domain=zone['name'], type=DEFAULT_ZONE_TYPE, -ttl=DEFAULT_ZONE_TTL, driver=self, +ttl=DEFAULT_ZONE_TTL, driver=self.connection.driver, extra={'created': zone['created'], 'servers': zone['servers'], 'account_id': zone['account_id'], @@ -598,7 +598,7 @@ class AuroraDNSDriver(DNSDriver): interval=healthcheck['interval'], port=healthcheck['port'], enabled=healthcheck['enabled'], -zone=zone, driver=self) +zone=zone, driver=self.connection.driver) def __merge_extra_data(self, rdata, extra): if extra is not None:
[3/3] libcloud git commit: Updated CHANGES.rst with #672
Updated CHANGES.rst with #672 Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/9c4d15c6 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/9c4d15c6 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/9c4d15c6 Branch: refs/heads/trunk Commit: 9c4d15c674f5ef9d5bf8391bc83d5ad4ea289395 Parents: 56649ca Author: anthony-shawAuthored: Fri Jan 15 19:41:39 2016 +1100 Committer: anthony-shaw Committed: Fri Jan 15 19:41:39 2016 +1100 -- CHANGES.rst | 4 1 file changed, 4 insertions(+) -- http://git-wip-us.apache.org/repos/asf/libcloud/blob/9c4d15c6/CHANGES.rst -- diff --git a/CHANGES.rst b/CHANGES.rst index c991fd9..a6fffb3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -49,6 +49,10 @@ Compute DNS ~~~ +- Add support for 'health checks' in Aurora DNS driver + (GITHUB-672) + [Wido den Hollander] + - Make sure ``ttl`` attribute is correctly parsed and added to the ``Record`` ``extra`` dictionary. (GITHUB-675)