[07/18] libcloud git commit: Merge branch 'trunk' of https://github.com/apache/libcloud into trunk

2015-11-17 Thread anthonyshaw
Merge branch 'trunk' of https://github.com/apache/libcloud into trunk


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

Branch: refs/heads/trunk
Commit: 2189a6bbd97c7ffd4bf5d978b045a787044cc455
Parents: b0d8626 fccf348
Author: Anthony Shaw 
Authored: Tue Oct 20 08:29:14 2015 +1100
Committer: Anthony Shaw 
Committed: Tue Oct 20 08:29:14 2015 +1100

--
 CHANGES.rst |  41 +-
 CONTRIBUTING.rst|   2 +-
 MANIFEST.in |   3 +
 NOTICE  |   2 +-
 README.rst  |   6 +-
 docs/committer_guide.rst|   4 +-
 docs/compute/deployment.rst |   8 +-
 docs/compute/drivers/cloudsigma.rst |  14 +-
 docs/compute/drivers/ec2.rst|   5 +-
 docs/compute/drivers/gce.rst|   2 +-
 docs/compute/drivers/hpcloud.rst|   4 +-
 docs/compute/drivers/kili.rst   |   2 +-
 docs/compute/drivers/openstack.rst  |   6 +-
 docs/compute/drivers/rackspace.rst  |   2 +-
 docs/compute/drivers/vsphere.rst|   4 +-
 docs/compute/pricing.rst|   2 +-
 docs/development.rst|   8 +-
 docs/dns/drivers/durabledns.rst |  27 +
 docs/examples/compute/create_ec2_node.py|   4 +-
 .../create_ec2_node_and_associate_elastic_ip.py |   4 +-
 .../compute/create_ec2_node_custom_ami.py   |   4 +-
 docs/examples/compute/create_ec2_node_iam.py|   4 +-
 .../create_ec2_node_manual_instantiation.py |   4 +-
 .../compute/ec2/temporary_credentials.py|   4 +-
 .../dns/durabledns/instantiate_driver.py|   5 +
 docs/other/ssl-certificate-validation.rst   |   2 +-
 docs/other/using-http-proxy.rst |   4 +-
 ...-in-multithreaded-and-async-environments.rst |   2 +-
 docs/other/working-with-oo-apis.rst |   4 +-
 docs/security.rst   |   4 +-
 docs/testing.rst|   2 +-
 docs/upgrade_notes.rst  |  10 +-
 libcloud/__init__.py|   2 +-
 libcloud/common/dimensiondata.py| 130 +++-
 libcloud/common/durabledns.py   | 285 
 libcloud/compute/drivers/cloudstack.py  | 122 ++--
 libcloud/compute/drivers/dimensiondata.py   | 496 +-
 libcloud/compute/drivers/ec2.py |  10 +
 libcloud/compute/drivers/gce.py |   5 +
 libcloud/compute/drivers/softlayer.py   |   3 +-
 libcloud/compute/ssh.py |   2 +-
 libcloud/data/pricing.json  |  15 +
 libcloud/dns/drivers/dnsimple.py|  19 +-
 libcloud/dns/drivers/durabledns.py  | 660 +++
 libcloud/dns/drivers/liquidweb.py   |  53 +-
 libcloud/dns/drivers/pointdns.py|  10 +-
 libcloud/dns/drivers/vultr.py   |  25 +-
 libcloud/dns/drivers/worldwidedns.py|  32 +-
 libcloud/dns/providers.py   |   2 +
 libcloud/dns/types.py   |   3 +
 libcloud/loadbalancer/drivers/dimensiondata.py  | 136 +++-
 .../cloudstack/queryAsyncJobResult_17200.json   |   2 +-
 ...bc_8dabe5a7d0e4_network_addPublicIpBlock.xml |   7 +
 ..._8dabe5a7d0e4_network_createFirewallRule.xml |   8 +
 ..._9cbc_8dabe5a7d0e4_network_createNatRule.xml |   9 +
 ..._8dabe5a7d0e4_network_deleteFirewallRule.xml |   8 +
 ..._9cbc_8dabe5a7d0e4_network_deleteNatRule.xml |   8 +
 ...8dabe5a7d0e4_network_deleteNetworkDomain.xml |   8 +
 ...d8a_9cbc_8dabe5a7d0e4_network_deleteVlan.xml |   8 +
 ...8dabe5a7d0e4_network_deployNetworkDomain.xml |   8 +
 ...d8a_9cbc_8dabe5a7d0e4_network_deployVlan.xml |   9 +
 ...bc_8dabe5a7d0e4_network_editFirewallRule.xml |   8 +
 ...c_8dabe5a7d0e4_network_editNetworkDomain.xml |   7 +
 ..._4d8a_9cbc_8dabe5a7d0e4_network_editVlan.xml |   7 +
 ...d8a_9cbc_8dabe5a7d0e4_network_expandVlan.xml |   8 +
 ...a_9cbc_8dabe5a7d0e4_network_firewallRule.xml | 210 ++
 ...ule_d0a20f59_77b9_4f28_a63b_e58496b73a6c.xml |  18 +
 ...5_4d8a_9cbc_8dabe5a7d0e4_network_natRule.xml |  21 +
 ...ule_2187a636_7ebb_49a1_a2ff_5d617f496dce.xml |   9 +
 ...ain_8cdfd607_f429_4df6_9352_162cfc0891be.xml |   9 +
 ..._9cbc_8dabe5a7d0e4_network_publicIpBlock.xml |  10 +
 ...ock_4487241a_f0ca_11e3_9315_d4bed9b167ba.xml |   8 +
 ...ock_9945dc4a_bdce_11e4_8c14_b8ca3a5d9ef8.xml |   8 +
 ...8dabe5a7d0e4_network_removePublicIpBlock.xml |  

[06/18] libcloud git commit: Merge branch 'trunk' of https://github.com/apache/libcloud into trunk

2015-11-17 Thread anthonyshaw
Merge branch 'trunk' of https://github.com/apache/libcloud into trunk


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

Branch: refs/heads/trunk
Commit: b0d86263751f169575c7820e5cf6a6026cd71025
Parents: ab6e76a 637ff03
Author: Anthony Shaw 
Authored: Tue Oct 6 09:37:19 2015 +1100
Committer: Anthony Shaw 
Committed: Tue Oct 6 09:37:19 2015 +1100

--
 CHANGES.rst |   6 +-
 docs/_static/images/provider_logos/dnsimple.png | Bin 0 -> 20166 bytes
 .../_static/images/provider_logos/packetnet.png | Bin 0 -> 17846 bytes
 docs/_static/images/provider_logos/pointdns.png | Bin 0 -> 19816 bytes
 docs/_static/images/provider_logos/zonomi.png   | Bin 0 -> 11224 bytes
 libcloud/common/liquidweb.py|  27 +-
 libcloud/common/vultr.py|  26 +-
 libcloud/common/zonomi.py   |  26 +-
 libcloud/compute/drivers/ec2.py |  42 +-
 libcloud/compute/drivers/gce.py |  13 +-
 libcloud/dns/drivers/pointdns.py| 323 ---
 libcloud/dns/drivers/vultr.py   |  24 +-
 libcloud/dns/drivers/worldwidedns.py|  15 +-
 ...instances_with_subnet_and_security_group.xml |  87 +++
 libcloud/test/compute/test_ec2.py   |  31 ++
 .../fixtures/pointdns/_zones_1_ZONE_UPDATE.json |   9 +
 .../_zones_1_mail_redirects_CREATE.json |   8 +
 .../_zones_1_mail_redirects_DELETE.json |   5 +
 .../pointdns/_zones_1_mail_redirects_GET.json   |   8 +
 .../pointdns/_zones_1_mail_redirects_LIST.json  |  18 +
 .../_zones_1_mail_redirects_UPDATE.json |   8 +
 .../pointdns/_zones_1_redirects_CREATE.json |  11 +
 .../pointdns/_zones_1_redirects_DELETE.json |   5 +
 .../pointdns/_zones_1_redirects_GET.json|  11 +
 .../pointdns/_zones_1_redirects_LIST.json   |  24 +
 .../pointdns/_zones_1_redirects_UPDATE.json |  11 +
 libcloud/test/dns/fixtures/pointdns/error.json  |   7 +
 .../test/dns/fixtures/pointdns/not_found.json   |   1 +
 .../dns/fixtures/pointdns/redirect_error.json   |  10 +
 libcloud/test/dns/test_pointdns.py  | 557 +++
 30 files changed, 1135 insertions(+), 178 deletions(-)
--




[13/18] libcloud git commit: Monitoring functions and tests for servers in both MCP 1 and 2

2015-11-17 Thread anthonyshaw
Monitoring functions and tests for servers in both MCP 1 and 2


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

Branch: refs/heads/trunk
Commit: cd24ef2c9d8dac1a96291f69b648324c96c94bc1
Parents: 6229e9d
Author: Anthony Shaw 
Authored: Fri Oct 30 12:28:52 2015 +1100
Committer: Anthony Shaw 
Committed: Fri Oct 30 12:28:52 2015 +1100

--
 libcloud/compute/drivers/dimensiondata.py   | 78 
 ...9cbc_8dabe5a7d0e4_report_usageMonitoring.xml |  8 ++
 ...a7d0e4_server_changeServerMonitoringPlan.xml |  8 ++
 ...be5a7d0e4_server_disableServerMonitoring.xml |  8 ++
 ...abe5a7d0e4_server_enableServerMonitoring.xml |  8 ++
 libcloud/test/compute/test_dimensiondata.py | 39 ++
 6 files changed, 149 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/cd24ef2c/libcloud/compute/drivers/dimensiondata.py
--
diff --git a/libcloud/compute/drivers/dimensiondata.py 
b/libcloud/compute/drivers/dimensiondata.py
index 5a86875..270a7ca 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -1001,6 +1001,14 @@ class DimensionDataNodeDriver(NodeDriver):
 return self._to_nat_rule(rule, network_domain)
 
 def ex_delete_nat_rule(self, rule):
+"""
+Delete an existing NAT rule
+
+:param  rule: The rule to delete
+:type   rule: :class:`DimensionDataNatRule`
+
+:rtype: ``bool``
+"""
 update_node = ET.Element('deleteNatRule', {'xmlns': TYPES_URN})
 update_node.set('id', rule.id)
 result = self.connection.request_with_orgId_api_2(
@@ -1026,6 +1034,76 @@ class DimensionDataNodeDriver(NodeDriver):
 filter(lambda x: x.id == id, self.list_locations()))[0]
 return location
 
+def ex_enable_monitoring(self, node, service_plan="ESSENTIALS"):
+"""
+Enables cloud monitoring on a node
+
+:param   node: The node to monitor
+:typenode: :class:`Node`
+
+:param   service_plan: The service plan, one of ESSENTIALS or
+   ADVANCED
+:typeservice_plan: ``str``
+
+:rtype: ``bool``
+"""
+update_node = ET.Element('enableServerMonitoring',
+ {'xmlns': TYPES_URN})
+update_node.set('id', node.id)
+ET.SubElement(update_node, 'servicePlan').text = service_plan
+result = self.connection.request_with_orgId_api_2(
+'server/enableServerMonitoring',
+method='POST',
+data=ET.tostring(update_node)).object
+
+response_code = findtext(result, 'responseCode', TYPES_URN)
+return response_code in ['IN_PROGRESS', 'OK']
+
+def ex_update_monitoring_plan(self, node, service_plan="ESSENTIALS"):
+"""
+Updates the service plan on a node with monitoring
+
+:param   node: The node to monitor
+:typenode: :class:`Node`
+
+:param   service_plan: The service plan, one of ESSENTIALS or
+   ADVANCED
+:typeservice_plan: ``str``
+
+:rtype: ``bool``
+"""
+update_node = ET.Element('changeServerMonitoringPlan',
+ {'xmlns': TYPES_URN})
+update_node.set('id', node.id)
+ET.SubElement(update_node, 'servicePlan').text = service_plan
+result = self.connection.request_with_orgId_api_2(
+'server/changeServerMonitoringPlan',
+method='POST',
+data=ET.tostring(update_node)).object
+
+response_code = findtext(result, 'responseCode', TYPES_URN)
+return response_code in ['IN_PROGRESS', 'OK']
+
+def ex_disable_monitoring(self, node):
+"""
+Disables cloud monitoring for a node
+
+:param   node: The node to stop monitoring
+:typenode: :class:`Node`
+
+:rtype: ``bool``
+"""
+update_node = ET.Element('disableServerMonitoring',
+ {'xmlns': TYPES_URN})
+update_node.set('id', node.id)
+result = self.connection.request_with_orgId_api_2(
+'server/disableServerMonitoring',
+method='POST',
+data=ET.tostring(update_node)).object
+
+response_code = findtext(result, 'responseCode', TYPES_URN)
+return response_code in ['IN_PROGRESS', 'OK']
+
 def _to_nat_rules(self, object, network_domain):
 rules = []
 for element in findall(object, 

[17/18] libcloud git commit: Merge remote-tracking branch 'libcloud/trunk' into trunk

2015-11-17 Thread anthonyshaw
Merge remote-tracking branch 'libcloud/trunk' into trunk


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

Branch: refs/heads/trunk
Commit: 2a415a8085b1874604824e5d98ca2c88268bfb36
Parents: 1d21f44 849043e
Author: Anthony Shaw 
Authored: Wed Nov 18 18:43:25 2015 +1100
Committer: Anthony Shaw 
Committed: Wed Nov 18 18:43:25 2015 +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/development.rst| 2 +-
 docs/dns/_supported_methods.rst | 2 ++
 docs/dns/_supported_providers.rst   | 2 ++
 docs/storage/_supported_methods_cdn.rst | 2 +-
 docs/storage/_supported_methods_main.rst| 2 +-
 docs/storage/_supported_providers.rst   | 2 +-
 11 files changed, 13 insertions(+), 9 deletions(-)
--




[15/18] libcloud git commit: Merge branch 'trunk' of https://github.com/apache/libcloud into trunk

2015-11-17 Thread anthonyshaw
Merge branch 'trunk' of https://github.com/apache/libcloud into trunk


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

Branch: refs/heads/trunk
Commit: 43fbf566720bfa6710959234628d0dad2f1c26a9
Parents: ee6f984 800189e
Author: Anthony Shaw 
Authored: Thu Nov 12 12:19:41 2015 +1100
Committer: Anthony Shaw 
Committed: Thu Nov 12 12:19:41 2015 +1100

--
 CHANGES.rst  |   9 ++
 contrib/update_google_prices.py  |  87 ++
 contrib/utils.py |  48 
 contrib/utils_test.py|  65 +++
 libcloud/compute/drivers/cloudstack.py   |   3 +-
 libcloud/compute/drivers/gce.py  |   2 +-
 libcloud/data/pricing.json   | 158 ++
 libcloud/test/compute/test_cloudstack.py |   4 +
 8 files changed, 352 insertions(+), 24 deletions(-)
--




[jira] [Commented] (LIBCLOUD-761) Extend Dimension Data driver to support monitoring features and network management

2015-11-17 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/LIBCLOUD-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15010424#comment-15010424
 ] 

ASF subversion and git services commented on LIBCLOUD-761:
--

Commit 8abaf891c17c984a6bda5d7cd7d785dc4545826d in libcloud's branch 
refs/heads/trunk from [~anthonypjshaw]
[ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=8abaf89 ]

Merge branch 'LIBCLOUD-761_Network_and_monitoring_support' into trunk

Conflicts:
libcloud/compute/drivers/dimensiondata.py
libcloud/test/compute/test_dimensiondata.py


> Extend Dimension Data driver to support monitoring features and network 
> management
> --
>
> Key: LIBCLOUD-761
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-761
> Project: Libcloud
>  Issue Type: New Feature
>Reporter: Anthony Shaw
>
> Add more functions to the DD driver to cover off monitoring (on, off, set 
> plan) and network management for MCP 1.0 data centers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[14/18] libcloud git commit: Merge remote-tracking branch 'libcloud/trunk' into trunk

2015-11-17 Thread anthonyshaw
Merge remote-tracking branch 'libcloud/trunk' into trunk


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

Branch: refs/heads/trunk
Commit: ee6f9845a0b75e14c088aaca4cd72e58fb894f9b
Parents: b90060b a5d4554
Author: Anthony Shaw 
Authored: Mon Nov 9 09:19:21 2015 +1100
Committer: Anthony Shaw 
Committed: Mon Nov 9 09:19:21 2015 +1100

--
 .editorconfig   |  19 +++
 .travis.yml |  26 ++--
 CHANGES.rst |  78 ++--
 contrib/Dockerfile  |   4 +-
 doap_libcloud.rdf   |   9 +-
 docs/compute/drivers/auroracompute.rst  |  40 +-
 .../compute/auroracompute/instantiate_driver.py |   8 ++
 .../auroracompute/instantiate_driver_region.py  |   9 ++
 .../storage/auroraobjects/instantiate.py|   8 ++
 docs/storage/drivers/auroraobjects.rst  |  20 ++-
 docs/upgrade_notes.rst  |   2 +-
 libcloud/__init__.py|   6 +-
 libcloud/compute/base.py|  12 +-
 libcloud/compute/drivers/auroracompute.py   |  34 -
 libcloud/compute/drivers/cloudstack.py  |  43 ++-
 libcloud/compute/drivers/ec2.py |  22 +++-
 libcloud/compute/drivers/openstack.py   |  20 ++-
 libcloud/compute/drivers/rackspace.py   |  11 +-
 libcloud/compute/types.py   |  26 ++--
 libcloud/dns/drivers/worldwidedns.py|  87 -
 libcloud/storage/drivers/auroraobjects.py   |   2 +-
 .../compute/fixtures/ec2/describe_snapshots.xml |   2 +-
 libcloud/test/compute/test_auroracompute.py |  28 -
 libcloud/test/compute/test_cloudstack.py|   2 +
 libcloud/test/compute/test_digitalocean_v1.py   |   2 +-
 libcloud/test/compute/test_digitalocean_v2.py   |   2 +-
 libcloud/test/compute/test_ec2.py   |   6 +-
 libcloud/test/compute/test_ibm_sce.py   |   2 +-
 libcloud/test/compute/test_openstack.py |   4 +-
 ...ify_asp_CREATE_RECORD_MAX_ENTRIES_WITH_ENTRY |  46 +++
 ...ns_list_domain_asp_CREATE_RECORD_MAX_ENTRIES |  46 +++
 ...api_dns_list_domain_asp_CREATE_SECOND_RECORD |  46 +++
 libcloud/test/dns/test_worldwidedns.py  | 126 +++
 libcloud/test/test_init.py  |  61 +
 setup.py|   1 +
 tox.ini |  58 +++--
 36 files changed, 758 insertions(+), 160 deletions(-)
--




[02/18] libcloud git commit: Merge pull request #2 from mingsheng36/patch-1

2015-11-17 Thread anthonyshaw
Merge pull request #2 from mingsheng36/patch-1

Corrected dd-ap 'host'

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

Branch: refs/heads/trunk
Commit: 51b7845ec0dac2fe5f9d871bded05e543edda46e
Parents: 64f5664 b97168e
Author: Anthony Shaw 
Authored: Thu Sep 17 20:34:46 2015 +1000
Committer: Anthony Shaw 
Committed: Thu Sep 17 20:34:46 2015 +1000

--
 libcloud/common/dimensiondata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--




[08/18] libcloud git commit: Merge branch 'trunk' of https://github.com/apache/libcloud into trunk

2015-11-17 Thread anthonyshaw
Merge branch 'trunk' of https://github.com/apache/libcloud into trunk


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

Branch: refs/heads/trunk
Commit: 20a2cf7cf88959a37d027b1e53519c11f4c18de3
Parents: 2189a6b 3bcd60a
Author: Anthony Shaw 
Authored: Fri Oct 23 16:22:26 2015 +1100
Committer: Anthony Shaw 
Committed: Fri Oct 23 16:22:26 2015 +1100

--
 docs/examples/compute/azure/instantiate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--




[03/18] libcloud git commit: Merge branch 'trunk' of github.com:DimensionDataCBUSydney/libcloud into trunk

2015-11-17 Thread anthonyshaw
Merge branch 'trunk' of github.com:DimensionDataCBUSydney/libcloud into trunk


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

Branch: refs/heads/trunk
Commit: d051b581629fdd2e8a5222911a52d43c798a8a7c
Parents: 44691a7 51b7845
Author: Anthony Shaw 
Authored: Wed Sep 23 15:49:20 2015 +1000
Committer: Anthony Shaw 
Committed: Wed Sep 23 15:49:20 2015 +1000

--

--