[GitHub] libcloud pull request #1208: Update Azure Blobs Storage driver documentation

2018-06-11 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/libcloud/pull/1208


---


[2/2] libcloud git commit: Add changes for #1208

2018-06-11 Thread quentinp
Add changes for #1208

Closes #1208


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

Branch: refs/heads/trunk
Commit: bc097ffe5b04990e0ca302231388ee7d5d6fe911
Parents: 85a72d5
Author: Quentin Pradet 
Authored: Mon Jun 11 21:45:32 2018 +0200
Committer: Quentin Pradet 
Committed: Mon Jun 11 21:45:32 2018 +0200

--
 CHANGES.rst | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/bc097ffe/CHANGES.rst
--
diff --git a/CHANGES.rst b/CHANGES.rst
index 0d5d04e..a92348b 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -84,9 +84,12 @@ Storage
 - Update docstring for storage provider class (GITHUB-1201)
   [Clemens Wolff]
 
-- [Azure Blob storage] Allow filtering lists by prefix (LIBCLOUD-986, 
GITHUB-1193)
+- [Azure Blob Storage] Allow filtering lists by prefix (LIBCLOUD-986, 
GITHUB-1193)
   [Joshua Hawkinson]
 
+- [Azure Blob Storage] Update driver documentation (GITHUB-1208)
+  [Clemens Wolff]
+
 - [S3] Guess s3 upload content type (LIBCLOUD-958, GITHUB-1195)
   [Iuri de Silvio]
 



[1/2] libcloud git commit: Update Azure Blobs Storage driver documentation

2018-06-11 Thread quentinp
Repository: libcloud
Updated Branches:
  refs/heads/trunk 3da62236c -> bc097ffe5


Update Azure Blobs Storage driver documentation

The current screenshots in the Azure Blobs Storage driver documentation
show an old version of the Azure portal. Some of the terminology and
where to find access keys has changed, so this commit updates the
screenshots and the wording in the documentation.

Additionally, Azure now also offers a new type of storage account called
"Blob storage" which is not supported by the current libcloud driver
implementation. This change therefore adds wording to avoid user
confusion when creating a storage account for use with libcloud.

Signed-off-by: Quentin Pradet 


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

Branch: refs/heads/trunk
Commit: 85a72d548db72a81ea8127a421a7caedf39cfe8e
Parents: 3da6223
Author: Clemens Wolff 
Authored: Wed May 9 08:42:56 2018 -0400
Committer: Quentin Pradet 
Committed: Mon Jun 11 21:44:04 2018 +0200

--
 .../images/misc/azure_blobs_account_kind.png| Bin 0 -> 292732 bytes
 .../misc/azure_blobs_manage_access_keys_1.png   | Bin 64259 -> 223140 bytes
 .../misc/azure_blobs_manage_access_keys_2.png   | Bin 26247 -> 388303 bytes
 docs/storage/drivers/azure_blobs.rst|  12 ++--
 4 files changed, 10 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/85a72d54/docs/_static/images/misc/azure_blobs_account_kind.png
--
diff --git a/docs/_static/images/misc/azure_blobs_account_kind.png 
b/docs/_static/images/misc/azure_blobs_account_kind.png
new file mode 100644
index 000..ae2b430
Binary files /dev/null and 
b/docs/_static/images/misc/azure_blobs_account_kind.png differ

http://git-wip-us.apache.org/repos/asf/libcloud/blob/85a72d54/docs/_static/images/misc/azure_blobs_manage_access_keys_1.png
--
diff --git a/docs/_static/images/misc/azure_blobs_manage_access_keys_1.png 
b/docs/_static/images/misc/azure_blobs_manage_access_keys_1.png
index ca1b1c2..ade9380 100644
Binary files a/docs/_static/images/misc/azure_blobs_manage_access_keys_1.png 
and b/docs/_static/images/misc/azure_blobs_manage_access_keys_1.png differ

http://git-wip-us.apache.org/repos/asf/libcloud/blob/85a72d54/docs/_static/images/misc/azure_blobs_manage_access_keys_2.png
--
diff --git a/docs/_static/images/misc/azure_blobs_manage_access_keys_2.png 
b/docs/_static/images/misc/azure_blobs_manage_access_keys_2.png
index 6337fcd..2596465 100644
Binary files a/docs/_static/images/misc/azure_blobs_manage_access_keys_2.png 
and b/docs/_static/images/misc/azure_blobs_manage_access_keys_2.png differ

http://git-wip-us.apache.org/repos/asf/libcloud/blob/85a72d54/docs/storage/drivers/azure_blobs.rst
--
diff --git a/docs/storage/drivers/azure_blobs.rst 
b/docs/storage/drivers/azure_blobs.rst
index 043b1e0..ac9e881 100644
--- a/docs/storage/drivers/azure_blobs.rst
+++ b/docs/storage/drivers/azure_blobs.rst
@@ -7,7 +7,7 @@ Connecting to Azure Blobs
 To connect to Azure Blobs you need your storage account name and access key.
 
 You can retrieve this information in the Azure Management Portal by going to
-Storage -> Manage Access Keys as shown on the screenshots below.
+"Storage Accounts" -> "Access Keys" as shown on the screenshots below.
 
 .. figure:: /_static/images/misc/azure_blobs_manage_access_keys_1.png
 :align: center
@@ -16,7 +16,15 @@ Storage -> Manage Access Keys as shown on the screenshots 
below.
 
 .. figure:: /_static/images/misc/azure_blobs_manage_access_keys_2.png
 :align: center
-:width: 500
+:width: 900
+
+Note that libcloud only supports general purpose storage accounts so make sure
+to select the "Storage (general purpose v1)" account kind when creating your
+storage account as shown on the screenshot below.
+
+.. figure:: /_static/images/misc/azure_blobs_account_kind.png
+:align: center
+:width: 900
 
 Instantiating a driver
 ~~



[1/3] libcloud git commit: docstring + automated test

2018-06-11 Thread quentinp
Repository: libcloud
Updated Branches:
  refs/heads/trunk 125037469 -> 3da62236c


docstring + automated test

Signed-off-by: Quentin Pradet 


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

Branch: refs/heads/trunk
Commit: 02d6e280d08cb435706d162ffc8524a342edb645
Parents: f05cfe6
Author: Arturo Noha 
Authored: Tue Oct 10 15:46:51 2017 +0100
Committer: Quentin Pradet 
Committed: Mon Jun 11 21:14:20 2018 +0200

--
 libcloud/compute/drivers/ec2.py   | 5 -
 libcloud/test/compute/test_ec2.py | 6 --
 2 files changed, 8 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/02d6e280/libcloud/compute/drivers/ec2.py
--
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index ad0c6dd..d7b6a56 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -5104,6 +5104,9 @@ class BaseEC2NodeDriver(NodeDriver):
 :param  protocol: tcp/udp/icmp
 :type   protocol: ``str``
 
+:param  description: description to be added to the rules inserted
+:type   description: ``str``
+
 :rtype: ``bool``
 """
 
@@ -7657,7 +7660,7 @@ class BaseEC2NodeDriver(NodeDriver):
   % (index)] = cidr_ip
 if description is not None:
 ip_ranges['IpPermissions.1.IpRanges.%s.Description'
-  % (index)] = description
+  % (index)] = description
 
 params.update(ip_ranges)
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/02d6e280/libcloud/test/compute/test_ec2.py
--
diff --git a/libcloud/test/compute/test_ec2.py 
b/libcloud/test/compute/test_ec2.py
index 17f293e..05ac026 100644
--- a/libcloud/test/compute/test_ec2.py
+++ b/libcloud/test/compute/test_ec2.py
@@ -329,10 +329,12 @@ class EC2Tests(LibcloudTestCase, TestCaseMixin):
 
 def test_authorize_security_group_ingress(self):
 ranges = ['1.1.1.1/32', '2.2.2.2/32']
-resp = self.driver.ex_authorize_security_group_ingress('sg-42916629', 
22, 22, cidr_ips=ranges)
+description = "automated authorised IP ingress test"
+resp = self.driver.ex_authorize_security_group_ingress('sg-42916629', 
22, 22, cidr_ips=ranges, description=description)
 self.assertTrue(resp)
 groups = [{'group_id': 'sg-949265ff'}]
-resp = self.driver.ex_authorize_security_group_ingress('sg-42916629', 
22, 23, group_pairs=groups)
+description = "automated authorised group ingress test"
+resp = self.driver.ex_authorize_security_group_ingress('sg-42916629', 
22, 23, group_pairs=groups, description=description)
 self.assertTrue(resp)
 
 def test_authorize_security_group_egress(self):



[2/3] libcloud git commit: Add description to ex_authorize_security_group_ingress (same for all cidrIps)

2018-06-11 Thread quentinp
Add description to ex_authorize_security_group_ingress (same for all cidrIps)

Signed-off-by: Quentin Pradet 


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

Branch: refs/heads/trunk
Commit: f05cfe6208e593ef4b7ad5c8f825bcfb728c9c50
Parents: 1250374
Author: Arturo Noha 
Authored: Thu Oct 5 10:58:46 2017 +0100
Committer: Quentin Pradet 
Committed: Mon Jun 11 21:14:20 2018 +0200

--
 libcloud/compute/drivers/ec2.py | 10 +++---
 1 file changed, 7 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/f05cfe62/libcloud/compute/drivers/ec2.py
--
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index eb21c12..ad0c6dd 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -5070,7 +5070,7 @@ class BaseEC2NodeDriver(NodeDriver):
 
 def ex_authorize_security_group_ingress(self, id, from_port, to_port,
 cidr_ips=None, group_pairs=None,
-protocol='tcp'):
+protocol='tcp', description=None):
 """
 Edit a Security Group to allow specific ingress traffic using
 CIDR blocks or either a group ID, group name or user ID (account).
@@ -5112,7 +5112,8 @@ class BaseEC2NodeDriver(NodeDriver):
 from_port,
 to_port,
 cidr_ips,
-group_pairs)
+group_pairs,
+description)
 
 params["Action"] = 'AuthorizeSecurityGroupIngress'
 
@@ -7635,7 +7636,7 @@ class BaseEC2NodeDriver(NodeDriver):
 
 def _get_common_security_group_params(self, group_id, protocol,
   from_port, to_port, cidr_ips,
-  group_pairs):
+  group_pairs, description=None):
 """
 Return a dictionary with common query parameters which are used when
 operating on security groups.
@@ -7654,6 +7655,9 @@ class BaseEC2NodeDriver(NodeDriver):
 
 ip_ranges['IpPermissions.1.IpRanges.%s.CidrIp'
   % (index)] = cidr_ip
+if description is not None:
+ip_ranges['IpPermissions.1.IpRanges.%s.Description'
+  % (index)] = description
 
 params.update(ip_ranges)
 



[GitHub] libcloud pull request #1122: Add description to ex_authorize_security_group_...

2018-06-11 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/libcloud/pull/1122


---


[3/3] libcloud git commit: Add changes for #1122

2018-06-11 Thread quentinp
Add changes for #1122

Closes #1122


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

Branch: refs/heads/trunk
Commit: 3da62236c09b2a9f30a78fc06a9ac4250bfd7924
Parents: 02d6e28
Author: Quentin Pradet 
Authored: Mon Jun 11 21:15:06 2018 +0200
Committer: Quentin Pradet 
Committed: Mon Jun 11 21:15:06 2018 +0200

--
 CHANGES.rst | 3 +++
 1 file changed, 3 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/3da62236/CHANGES.rst
--
diff --git a/CHANGES.rst b/CHANGES.rst
index f5bac25..0d5d04e 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -26,6 +26,9 @@ Compute
 - [EC2] Add AWS eu-west-3 (Paris) region (GITHUB-1175)
   [Anthony Monthe]
 
+- [EC2] Add description to ex_authorize_security_group_ingress (GITHUB-1122)
+  [Arturo Noha]
+
 - [GCE] Expand Firewall options coverage (LIBCLOUD-960, GITHUB-1144)
   [maxlip]
 



[GitHub] libcloud pull request #1217: [gce] ex_create_network can have NoneType routi...

2018-06-11 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/libcloud/pull/1217


---


[2/2] libcloud git commit: Add changes for #1217

2018-06-11 Thread quentinp
Add changes for #1217

Closes #1217


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

Branch: refs/heads/trunk
Commit: 12503746962da6dd15fb57e17977a026091004e0
Parents: 93ad4b8
Author: Quentin Pradet 
Authored: Mon Jun 11 21:07:08 2018 +0200
Committer: Quentin Pradet 
Committed: Mon Jun 11 21:07:08 2018 +0200

--
 CHANGES.rst | 3 +++
 1 file changed, 3 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/12503746/CHANGES.rst
--
diff --git a/CHANGES.rst b/CHANGES.rst
index 407505a..f5bac25 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -48,6 +48,9 @@ Compute
 - [GCE] Fix _find_zone_or_region for >500 instances (GITHUB-1203)
   [Léo Ferlin-Sutton]
 
+- [GCE] Allow routing_mode=None in ex_create_network (GITHUB-1217)
+  [Daniel Hunsaker]
+
 - [OpenStack] Implement Glance Image API v2 (GITHUB-1151)
   [Rick van de Loo]
 



[1/2] libcloud git commit: [gce] ex_create_network can have NoneType routing_mode

2018-06-11 Thread quentinp
Repository: libcloud
Updated Branches:
  refs/heads/trunk 6de9bb4cf -> 125037469


[gce] ex_create_network can have NoneType routing_mode

Check for that before trying string operations on it.

Signed-off-by: Quentin Pradet 


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

Branch: refs/heads/trunk
Commit: 93ad4b8733604cd1e1ef6162ef9d65344820ff60
Parents: 6de9bb4
Author: Daniel Hunsaker 
Authored: Mon May 14 14:54:35 2018 -0600
Committer: Quentin Pradet 
Committed: Mon Jun 11 21:05:34 2018 +0200

--
 libcloud/compute/drivers/gce.py | 15 ---
 1 file changed, 8 insertions(+), 7 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/93ad4b87/libcloud/compute/drivers/gce.py
--
diff --git a/libcloud/compute/drivers/gce.py b/libcloud/compute/drivers/gce.py
index 484022e..3dfc87d 100644
--- a/libcloud/compute/drivers/gce.py
+++ b/libcloud/compute/drivers/gce.py
@@ -3892,13 +3892,14 @@ class GCENodeDriver(NodeDriver):
 else:
 network_data['autoCreateSubnetworks'] = (mode.lower() == 'auto')
 
-if routing_mode.lower() not in ['regional', 'global']:
-raise ValueError("Invalid Routing Mode: '%s'. Must be 'REGIONAL', "
- "or 'GLOBAL'." % routing_mode)
-else:
-network_data['routingConfig'] = {
-'routingMode': routing_mode.upper()
-}
+if routing_mode:
+if routing_mode.lower() not in ['regional', 'global']:
+raise ValueError("Invalid Routing Mode: '%s'. Must be "
+ "'REGIONAL', or 'GLOBAL'." % routing_mode)
+else:
+network_data['routingConfig'] = {
+'routingMode': routing_mode.upper()
+}
 
 request = '/global/networks'
 



[jira] [Commented] (LIBCLOUD-956) Add Scaleway Compute driver

2018-06-11 Thread ASF GitHub Bot (JIRA)


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

ASF GitHub Bot commented on LIBCLOUD-956:
-

Github user asfgit closed the pull request at:

https://github.com/apache/libcloud/pull/1121


> Add Scaleway Compute driver
> ---
>
> Key: LIBCLOUD-956
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-956
> Project: Libcloud
>  Issue Type: New Feature
>  Components: Compute
>Reporter: Dan Hunsaker
>Priority: Major
>
> Adds support for Scaleway as a compute provider. Functionality is fairly 
> basic, but does work properly. Tests are in place to verify, with fixtures 
> pulled from the Scaleway docs, or actual responses to the associated requests 
> where the docs aren't clear.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[3/4] libcloud git commit: [scaleway] Give paginated requests their own request method

2018-06-11 Thread quentinp
[scaleway] Give paginated requests their own request method

This allows pagination to be less surprising when it happens, and simplifies 
the response parsing.

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

Branch: refs/heads/trunk
Commit: b9c3eac8145274adb22194f9d8b1f66c6ad08575
Parents: 6a3e50a
Author: Daniel Hunsaker 
Authored: Tue Jun 5 10:10:31 2018 -0600
Committer: Daniel Hunsaker 
Committed: Tue Jun 5 10:10:31 2018 -0600

--
 libcloud/compute/drivers/scaleway.py | 83 +++
 1 file changed, 39 insertions(+), 44 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b9c3eac8/libcloud/compute/drivers/scaleway.py
--
diff --git a/libcloud/compute/drivers/scaleway.py 
b/libcloud/compute/drivers/scaleway.py
index f33a186..2c313bf 100644
--- a/libcloud/compute/drivers/scaleway.py
+++ b/libcloud/compute/drivers/scaleway.py
@@ -56,21 +56,6 @@ class ScalewayResponse(JsonResponse):
 valid_response_codes = [httplib.OK, httplib.ACCEPTED,
 httplib.CREATED, httplib.NO_CONTENT]
 
-def parse_body(self):
-body = super(ScalewayResponse, self).parse_body()
-
-links = self.connection.connection.getresponse().links
-if links and 'next' in links:
-response = self.connection.request(links['next']['url'],
-   data=self.connection.data,
-   method=self.connection.method)
-next = response.object
-merged = {root: child + next[root]
-  for root, child in list(body.items())}
-body = merged
-
-return body
-
 def parse_error(self):
 return super(ScalewayResponse, self).parse_error()['message']
 
@@ -88,8 +73,7 @@ class ScalewayConnection(ConnectionUserAndKey):
 responseCls = ScalewayResponse
 
 def request(self, action, params=None, data=None, headers=None,
-method='GET', raw=False, stream=False, region=None,
-paged=False):
+method='GET', raw=False, stream=False, region=None):
 if region:
 old_host = self.host
 self.host = SCALEWAY_API_HOSTS[region.id
@@ -98,19 +82,34 @@ class ScalewayConnection(ConnectionUserAndKey):
 if not self.host == old_host:
 self.connect()
 
-if paged:
-if params is None:
-params = {}
-
-if isinstance(params, dict):
-params['per_page'] = 100
-else:
-params.append(('per_page', 100))
-
 return super(ScalewayConnection, self).request(action, params, data,
headers, method, raw,
stream)
 
+def _request_paged(self, action, params=None, data=None, headers=None,
+   method='GET', raw=False, stream=False, region=None):
+if params is None:
+params = {}
+
+if isinstance(params, dict):
+params['per_page'] = 100
+else:
+params.append(('per_page', 100))
+
+results = self.request(action, params, data, headers,
+   method, raw, stream, region).object
+
+links = self.connection.getresponse().links
+while links and 'next' in links:
+next = self.request(links['next']['url'], data=data,
+headers=headers, method=method,
+raw=raw, stream=stream).object
+merged = {root: child + next[root]
+  for root, child in list(results.items())}
+results = merged
+
+return results
+
 def add_default_headers(self, headers):
 """
 Add headers that are necessary for every request
@@ -168,13 +167,13 @@ class ScalewayNodeDriver(NodeDriver):
 :return: list of node size objects
 :rtype: ``list`` of :class:`.NodeSize`
 """
-response = self.connection.request('/products/servers', region=region,
-   paged=True)
-sizes = response.object['servers']
+response = self.connection._request_paged('/products/servers',
+  region=region)
+sizes = response['servers']
 
-response = self.connection.request('/products/servers/availability',
-   region=region, paged=True)
-avai

[GitHub] libcloud pull request #1121: Scaleway Rebased

2018-06-11 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/libcloud/pull/1121


---


[1/4] libcloud git commit: Scaleway Compute Driver (squashed)

2018-06-11 Thread quentinp
Repository: libcloud
Updated Branches:
  refs/heads/trunk c58e89222 -> 6de9bb4cf


Scaleway Compute Driver (squashed)

@bonifaido
- Scaleway Compute Driver
- Replace Scaleway logo
- Remove double slashes
- Fix private_ips access
@danhunsaker
- [scaleway] Update sizes; all location support
- [scaleway] Unify NodeImage handling
- [scaleway] More metadata
- [scaleway] Add SSH KeyPair Support
- [scaleway] Automatically handle minimum sizes
- [scaleway] Add Tests
- [scaleway] Lint Fixes
@sieben
- Remove useless parenthesis and add more specific exception
- Add an example for Scaleway
@danhunsaker
- [scaleway] Add docs
- [scaleway] Add pagination support
- [scaleway] Switch to API instead of hard-coded sizes
  The Scaleway API provides size info after all. Let's make use of it!
  Also, fix some of the docs...
- [scaleway] Fix size calcs
  And alert when trying to create a node with too much storage for the given 
server size. Base that calculation on the actual image size, rather than a 
hard-coded default.

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

Branch: refs/heads/trunk
Commit: 3315e9769403da9a26c27ddca1123b0432d958c4
Parents: c58e892
Author: Daniel Hunsaker 
Authored: Mon May 21 13:11:26 2018 -0600
Committer: Daniel Hunsaker 
Committed: Tue Jun 5 10:06:03 2018 -0600

--
 docs/_static/images/provider_logos/scaleway.png | Bin 0 -> 11527 bytes
 docs/compute/drivers/scaleway.rst   |  30 +
 docs/examples/compute/scaleway/create_node.py   |  16 +
 docs/examples/compute/scaleway/list_nodes.py|   9 +
 docs/examples/compute/scaleway/list_volumes.py  |  12 +
 libcloud/compute/drivers/scaleway.py| 665 +++
 libcloud/compute/providers.py   |   2 +
 libcloud/compute/types.py   |   1 +
 .../compute/fixtures/scaleway/create_image.json |  21 +
 .../compute/fixtures/scaleway/create_node.json  |  40 ++
 .../fixtures/scaleway/create_volume.json|  13 +
 .../scaleway/create_volume_snapshot.json|  15 +
 .../test/compute/fixtures/scaleway/error.json   |   1 +
 .../fixtures/scaleway/error_invalid_image.json  |   1 +
 .../compute/fixtures/scaleway/get_image.json|  21 +
 .../fixtures/scaleway/list_availability.json|  13 +
 .../compute/fixtures/scaleway/list_images.json  |  42 ++
 .../compute/fixtures/scaleway/list_nodes.json   |  74 +++
 .../fixtures/scaleway/list_nodes_empty.json |   3 +
 .../compute/fixtures/scaleway/list_sizes.json   |  76 +++
 .../scaleway/list_volume_snapshots.json |  30 +
 .../compute/fixtures/scaleway/list_volumes.json |  26 +
 .../fixtures/scaleway/list_volumes_empty.json   |   3 +
 .../compute/fixtures/scaleway/reboot_node.json  |   9 +
 .../compute/fixtures/scaleway/token_info.json   |  14 +
 .../compute/fixtures/scaleway/user_info.json|  15 +
 libcloud/test/compute/test_scaleway.py  | 334 ++
 libcloud/test/secrets.py-dist   |   5 +-
 28 files changed, 1489 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/3315e976/docs/_static/images/provider_logos/scaleway.png
--
diff --git a/docs/_static/images/provider_logos/scaleway.png 
b/docs/_static/images/provider_logos/scaleway.png
new file mode 100644
index 000..2a2b9e0
Binary files /dev/null and b/docs/_static/images/provider_logos/scaleway.png 
differ

http://git-wip-us.apache.org/repos/asf/libcloud/blob/3315e976/docs/compute/drivers/scaleway.rst
--
diff --git a/docs/compute/drivers/scaleway.rst 
b/docs/compute/drivers/scaleway.rst
new file mode 100644
index 000..0afffec
--- /dev/null
+++ b/docs/compute/drivers/scaleway.rst
@@ -0,0 +1,30 @@
+Scaleway Compute Driver Documentation
+=
+
+`Scaleway`_ is a dedicated bare metal cloud hosting provider based in Paris
+
+.. figure:: /_static/images/provider_logos/scaleway.png
+:align: center
+:width: 300
+:target: https://www.scaleway.com/
+
+Instantiating a driver and listing nodes
+
+
+.. literalinclude:: /examples/compute/scaleway/list_nodes.py
+   :language: python
+
+Instantiating a driver and listing volumes
+--
+
+.. literalinclude:: /examples/compute/scaleway/list_volumes.py
+  :language: python
+
+API Docs
+
+
+.. autoclass:: libcloud.compute.drivers.scaleway.ScalewayNodeDriver
+:members:
+:inherited-members:
+
+.. _`Scaleway`: https://www.scaleway.com/

http://git-wip-us.apache.org/r

[GitHub] libcloud pull request #777: Scaleway Compute Driver

2018-06-11 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/libcloud/pull/777


---


[2/4] libcloud git commit: [scaleway] Resolve TODOs

2018-06-11 Thread quentinp
[scaleway] Resolve TODOs



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

Branch: refs/heads/trunk
Commit: 6a3e50a686487df958a702f76f147b8270fa9496
Parents: 3315e97
Author: Daniel Hunsaker 
Authored: Tue Jun 5 10:09:23 2018 -0600
Committer: Daniel Hunsaker 
Committed: Tue Jun 5 10:09:23 2018 -0600

--
 libcloud/compute/drivers/scaleway.py | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/6a3e50a6/libcloud/compute/drivers/scaleway.py
--
diff --git a/libcloud/compute/drivers/scaleway.py 
b/libcloud/compute/drivers/scaleway.py
index bbe726d..f33a186 100644
--- a/libcloud/compute/drivers/scaleway.py
+++ b/libcloud/compute/drivers/scaleway.py
@@ -141,8 +141,10 @@ class ScalewayNodeDriver(NodeDriver):
 name = 'Scaleway'
 website = 'https://www.scaleway.com/'
 
-SNAPSHOT_STATE_MAP = {  # TODO map all states
-'snapshotting': VolumeSnapshotState.CREATING
+SNAPSHOT_STATE_MAP = {
+'snapshotting': VolumeSnapshotState.CREATING,
+'available': VolumeSnapshotState.AVAILABLE,
+'error': VolumeSnapshotState.ERROR
 }
 
 def list_locations(self):
@@ -245,7 +247,7 @@ class ScalewayNodeDriver(NodeDriver):
 'organization': self.key,
 'name': name,
 'arch': node.extra['arch'],
-'root_volume': node.extra['volumes']['0']['id']  # TODO check this
+'root_volume': node.extra['volumes']['0']['id']
 }
 response = self.connection.request('/images', data=json.dumps(data),
region=region,



[4/4] libcloud git commit: Add changes for #1121

2018-06-11 Thread quentinp
Add changes for #1121

Closes #1121 and closes #777


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

Branch: refs/heads/trunk
Commit: 6de9bb4cfa416e39a2ee94d5a6acd96d049b8bdb
Parents: b9c3eac
Author: Quentin Pradet 
Authored: Mon Jun 11 20:59:18 2018 +0200
Committer: Quentin Pradet 
Committed: Mon Jun 11 21:01:49 2018 +0200

--
 CHANGES.rst | 3 +++
 1 file changed, 3 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/libcloud/blob/6de9bb4c/CHANGES.rst
--
diff --git a/CHANGES.rst b/CHANGES.rst
index 8a8787a..407505a 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -63,6 +63,9 @@ Compute
 - [OpenStack v2] Fix image members methods (GITHUB-1190)
   [Rick van de Loo]
 
+- [Scaleway] New Scaleway driver (GITHUB-1121)
+  [Daniel Hunsaker, Nándor István Krácser, Rémy Léone]
+
 DNS
 ~~~