Re: [jclouds/jclouds-labs] Fix SGE.removeSecurityGroup for when the SG doesn't exist (#399)

2017-07-07 Thread Svet
Thanks @nacx, merging.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/399#issuecomment-313610076

Re: [jclouds/jclouds-labs] Fix SGE.removeSecurityGroup for when the SG doesn't exist (#399)

2017-07-07 Thread Svet
Merged in 
[master](https://git1-us-west.apache.org/repos/asf?p=jclouds-labs.git;a=commit;h=1450892fd841b683fc5da5acb38a853b5e45605b)
 and 
[2.0.x](https://git1-us-west.apache.org/repos/asf?p=jclouds-labs.git;a=shortlog;h=refs/heads/2.0.x).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/399#issuecomment-313612033

Re: [jclouds/jclouds-labs] Fix SGE.removeSecurityGroup for when the SG doesn't exist (#399)

2017-07-07 Thread Svet
Closed #399.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/399#event-1154029335

[jclouds/jclouds-labs] JCLOUDS-1255 Server API migration. (#400)

2017-07-07 Thread Trevor Flanagan
Adding the Server API - deploy, clone, list, start, stop server.

Live Tests

Mock Tests
You can view, comment on, or merge this pull request online at:

  https://github.com/jclouds/jclouds-labs/pull/400

-- Commit Summary --

  * JCLOUDS-1255 Server API migration.

-- File Changes --

M dimensiondata/pom.xml (2)
M 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/DimensionDataCloudControlApi.java
 (4)
M 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/domain/Disk.java
 (12)
M 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/domain/Server.java
 (26)
M 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/domain/State.java
 (2)
D 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/domain/VMwareTools.java
 (59)
A 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/domain/options/CloneServerOptions.java
 (128)
A 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/domain/options/CreateServerOptions.java
 (200)
A 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/features/ServerApi.java
 (216)
R 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/predicates/NetworkDomainState.java
 (4)
A 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/predicates/ServerState.java
 (58)
A 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/predicates/ServerStatus.java
 (58)
A 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/predicates/VMToolsRunningStatus.java
 (50)
R 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/predicates/VlanState.java
 (4)
M 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/utils/DimensionDataCloudControlResponseUtils.java
 (41)
M 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/features/NetworkApiLiveTest.java
 (14)
A 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/features/ServerApiLiveTest.java
 (128)
A 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/features/ServerApiMockTest.java
 (230)
M 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/internal/BaseDimensionDataCloudControlApiLiveTest.java
 (6)
A dimensiondata/src/test/resources/cloneServerResponse.json (16)
A dimensiondata/src/test/resources/deleteServer.json (9)
A dimensiondata/src/test/resources/deployServerResponse.json (14)
A dimensiondata/src/test/resources/powerOffServer.json (9)
A dimensiondata/src/test/resources/rebootServer.json (9)
A dimensiondata/src/test/resources/reconfigureServer.json (9)
A dimensiondata/src/test/resources/server.json (60)
A dimensiondata/src/test/resources/servers.json (85)

-- Patch Links --

https://github.com/jclouds/jclouds-labs/pull/400.patch
https://github.com/jclouds/jclouds-labs/pull/400.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/400


[jira] [Created] (JCLOUDS-1318) Security group created for the server is not deleted

2017-07-07 Thread Andrea Turli (JIRA)
Andrea Turli created JCLOUDS-1318:
-

 Summary: Security group created for the server is not deleted
 Key: JCLOUDS-1318
 URL: https://issues.apache.org/jira/browse/JCLOUDS-1318
 Project: jclouds
  Issue Type: Bug
  Components: jclouds-compute
Affects Versions: 2.0.1
Reporter: Andrea Turli
Assignee: Andrea Turli
 Fix For: 2.1.0, 2.0.3


In some Openstack provider, during destroyNode the server gets deleted while 
the securityGroup created for it can't be deleted because of 

{{org.jclouds.http.HttpResponseException: command: DELETE 
https://compute.gra1.cloud.ovh.net/v2/68d8aaf362544fa78b040d7783fdad63/os-security-groups/f6957437-3035-463a-833f-253d21bc6c43
 HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: 
[{"badRequest": {"message": "Security Group 
f6957437-3035-463a-833f-253d21bc6c43 in use.", "code": 400}}]}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jclouds/jclouds] [JCLOUDS-1318] fix based on nodeTerminatePredicate (#1117)

2017-07-07 Thread Andrea Turli
- wait for server deletion, before deleting the security group

I'd like this to be backported to 2.0.x as well
You can view, comment on, or merge this pull request online at:

  https://github.com/jclouds/jclouds/pull/1117

-- Commit Summary --

  * [JCLOUDS-1318] fix based on nodeTerminatePredicate

-- File Changes --

M 
apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/config/NovaComputeServiceContextModule.java
 (30)
M 
apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/functions/CleanupServer.java
 (11)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/1117.patch
https://github.com/jclouds/jclouds/pull/1117.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1117


[jira] [Commented] (JCLOUDS-1318) Security group created for the server is not deleted

2017-07-07 Thread Andrea Turli (JIRA)

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

Andrea Turli commented on JCLOUDS-1318:
---

see https://github.com/jclouds/jclouds/pull/1117

> Security group created for the server is not deleted
> 
>
> Key: JCLOUDS-1318
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1318
> Project: jclouds
>  Issue Type: Bug
>  Components: jclouds-compute
>Affects Versions: 2.0.1
>Reporter: Andrea Turli
>Assignee: Andrea Turli
> Fix For: 2.1.0, 2.0.3
>
>
> In some Openstack provider, during destroyNode the server gets deleted while 
> the securityGroup created for it can't be deleted because of 
> {{org.jclouds.http.HttpResponseException: command: DELETE 
> https://compute.gra1.cloud.ovh.net/v2/68d8aaf362544fa78b040d7783fdad63/os-security-groups/f6957437-3035-463a-833f-253d21bc6c43
>  HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: 
> [{"badRequest": {"message": "Security Group 
> f6957437-3035-463a-833f-253d21bc6c43 in use.", "code": 400}}]}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


Re: [jclouds/jclouds] [JCLOUDS-1318] fix based on nodeTerminatePredicate (#1117)

2017-07-07 Thread Geoff Macartney
geomacy commented on this pull request.



> @@ -95,6 +101,7 @@ public Boolean apply(String id) {
   }
 
   boolean serverDeleted = 
novaApi.getServerApi(regionAndId.getRegion()).delete(regionAndId.getId());
+  checkState(nodeTerminatedPredicate.apply(id), "server was not destroyed 
in the configured timeout");

Is it desirable to throw an exception here, or should we just log a warning? 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1117#pullrequestreview-48575884

Re: [jclouds/jclouds] [JCLOUDS-1318] fix based on nodeTerminatePredicate (#1117)

2017-07-07 Thread Andrea Turli
andreaturli commented on this pull request.



> @@ -95,6 +101,7 @@ public Boolean apply(String id) {
   }
 
   boolean serverDeleted = 
novaApi.getServerApi(regionAndId.getRegion()).delete(regionAndId.getId());
+  checkState(nodeTerminatedPredicate.apply(id), "server was not destroyed 
in the configured timeout");

good question @geomacy, maybe a warning is enough

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1117#discussion_r126121858

Re: [jclouds/jclouds] [JCLOUDS-1318] fix based on nodeTerminatePredicate (#1117)

2017-07-07 Thread Andrea Turli
andreaturli commented on this pull request.



> @@ -95,6 +101,7 @@ public Boolean apply(String id) {
   }
 
   boolean serverDeleted = 
novaApi.getServerApi(regionAndId.getRegion()).delete(regionAndId.getId());
+  checkState(nodeTerminatedPredicate.apply(id), "server was not destroyed 
in the configured timeout");

Thinking about it more, I guess `destroyNode` should not invoke `CleanUpServer` 
but simply
```
  boolean serverDeleted = 
novaApi.getServerApi(regionAndId.getRegion()).delete(regionAndId.getId());
  checkState(nodeTerminatedPredicate.apply(id), "server was not destroyed 
in the configured timeout");
```
as `CleanUpServer` will be invoked by 
https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/compute/NovaComputeService.java#L99
 anyways. I'll test it, meanwhile wdyt?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1117#discussion_r126122879

[jclouds/jclouds-labs] Jclouds 46 network and image tests (#401)

2017-07-07 Thread Boris Trishkin
JCLOUD-58 - Live test changes for ServerImageApi and NetworkApi
JCLOUD-53 - Correct Zones configuration in Mock Tests / Live Tests
You can view, comment on, or merge this pull request online at:

  https://github.com/jclouds/jclouds-labs/pull/401

-- Commit Summary --

  * JCLOUD-58 - Live test changes for ServerImageApi and NetworkApi
  * JCLOUD-53 - Correct Zones configuration in Mock Tests / Live Tests

-- File Changes --

M dimensiondata/pom.xml (7)
M 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/features/InfrastructureApi.java
 (7)
M 
dimensiondata/src/main/java/org/jclouds/dimensiondata/cloudcontrol/features/NetworkApi.java
 (26)
M 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/features/InfrastructureApiLiveTest.java
 (11)
M 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/features/InfrastructureApiMockTest.java
 (11)
M 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/features/NetworkApiLiveTest.java
 (119)
M 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/features/NetworkApiMockTest.java
 (197)
M 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/features/ServerImageApiLiveTest.java
 (7)
M 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/internal/BaseDimensionDataCloudControlApiLiveTest.java
 (30)
M 
dimensiondata/src/test/java/org/jclouds/dimensiondata/cloudcontrol/internal/BaseDimensionDataCloudControlMockTest.java
 (21)

-- Patch Links --

https://github.com/jclouds/jclouds-labs/pull/401.patch
https://github.com/jclouds/jclouds-labs/pull/401.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/401


Re: [jclouds/jclouds] [JCLOUDS-1318] fix based on nodeTerminatePredicate (#1117)

2017-07-07 Thread Ignasi Barrera
nacx approved this pull request.



> @@ -165,6 +169,14 @@ protected TemplateOptions 
> provideTemplateOptions(Injector injector, TemplateOpti
}
 
@Provides
+   @com.google.inject.name.Named(TIMEOUT_NODE_TERMINATED)
+   protected Predicate provideDropletTerminatedPredicate(final NovaApi 
api, ComputeServiceConstants.Timeouts timeouts,

Rename method to `provideServerTerminatedPredicate`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1117#pullrequestreview-48611247

[jira] [Created] (JCLOUDS-1319) CredentialStore leaking

2017-07-07 Thread Graeme Miller (JIRA)
Graeme Miller created JCLOUDS-1319:
--

 Summary: CredentialStore leaking
 Key: JCLOUDS-1319
 URL: https://issues.apache.org/jira/browse/JCLOUDS-1319
 Project: jclouds
  Issue Type: Bug
Reporter: Graeme Miller
Priority: Critical


The class CredentialStoreModule provides a CredentialStore to various 
ComputeServices through the method provideCredentialStore. 
provideCredentialStore creates the map using a backing map called BACKING that 
is defined statically in CredentialStoreModule. What this means is that 
although we are calling provideCredentialStore on the creation of each 
ComputeService, we are sharing a map over ComputeServices. This may very well 
be a deliberate design decision, I am not sure, but it is important to the bug 
I am seeing.

An issue arrises due to the class 
GetLoginForProviderFromPropertiesAndStoreCredentialsOrReturnNull. This class is 
used to provide default LoginCredentials when creating a ComputeService. It 
checks the CredentialStore, and if there is nothing in it, it will create the 
LoginCredentials and store them in the CredentialStore with a key called 
'image'. The problem is that the class 
GetLoginForProviderFromPropertiesAndStoreCredentialsOrReturnNull is used by 
multiple providers so they all use the key 'image'. 

So, if you create a ComputeService for Azure ARM and then later one for AWS it 
will use the LoginCredentials created for Azure ARM in the AWS ComputeService. 
This causes an issue as these LoginCredentials are used in 
EC2PopulateDefaultLoginCredentialsForImageStrategy to get the default user to 
log in as. Azure ARM chooses jclouds as the default user, whereas AWS chooses 
root. If you therefore create the Azure context and then the AWS context you 
will end up using the wrong ssh user for AWS.

Solutions:
*) don't share CredentialStore across ComputerServices
*) Store the LoginCredentials in the map against a key with the provider name 
in it. 
*) Don't store the LoginCredentials in the map at all, create it every time



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JCLOUDS-1304) Azure: Support for custom data during VM creation to support the injection of cloud-init user-data

2017-07-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on JCLOUDS-1304:
--

Commit 914e3a6f856582049dcaaf035ef38aca40a5dd33 in jclouds's branch 
refs/heads/master from [~gaul]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=914e3a6 ]

JCLOUDS-1304: B2 native prefix and delimiter

Previously B2 emulated prefix and delimiter via client-side filtering.
Enabled by recent service additions.


> Azure: Support for custom data during VM creation to support the injection of 
> cloud-init user-data
> --
>
> Key: JCLOUDS-1304
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1304
> Project: jclouds
>  Issue Type: Improvement
>Reporter: Vikas Rangarajan
>
> Azure provides the ability to inject custom user data during VM creation 
> which can then be executed by cloud init to allow automatic VM provisioning 
> following boot. cloud init is a popular way to inject provisioning scripts 
> during VM creation, providing a cleaner alternative to ssh-based 
> provisioning. This functionality existed in azurecompute-arm before the 
> refactoring which replaced the VM deployment template API with the VM api.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JCLOUDS-1304) Azure: Support for custom data during VM creation to support the injection of cloud-init user-data

2017-07-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on JCLOUDS-1304:
--

Commit aade963c62eb9f723e0f2095fde3ce248ba21334 in jclouds-labs's branch 
refs/heads/2.0.x from [~gaul]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=aade963 ]

JCLOUDS-1304: B2 native prefix and delimiter

Previously B2 emulated prefix and delimiter via client-side filtering.
Enabled by recent service additions.


> Azure: Support for custom data during VM creation to support the injection of 
> cloud-init user-data
> --
>
> Key: JCLOUDS-1304
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1304
> Project: jclouds
>  Issue Type: Improvement
>Reporter: Vikas Rangarajan
>
> Azure provides the ability to inject custom user data during VM creation 
> which can then be executed by cloud init to allow automatic VM provisioning 
> following boot. cloud init is a popular way to inject provisioning scripts 
> during VM creation, providing a cleaner alternative to ssh-based 
> provisioning. This functionality existed in azurecompute-arm before the 
> refactoring which replaced the VM deployment template API with the VM api.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JCLOUDS-1314) B2 native prefix and delimiter support

2017-07-07 Thread Andrew Gaul (JIRA)

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

Andrew Gaul commented on JCLOUDS-1314:
--

Commit 914e3a6f856582049dcaaf035ef38aca40a5dd33 in jclouds's branch 
refs/heads/master from Andrew Gaul
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=914e3a6 ]

JCLOUDS-1304: B2 native prefix and delimiter

Previously B2 emulated prefix and delimiter via client-side filtering.
Enabled by recent service additions.

> B2 native prefix and delimiter support
> --
>
> Key: JCLOUDS-1314
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1314
> Project: jclouds
>  Issue Type: New Feature
>  Components: jclouds-blobstore
>Affects Versions: 2.0.1
>Reporter: Andrew Gaul
>Assignee: Andrew Gaul
>Priority: Minor
>
> Enabled by recent additions to the B2 API:
> https://www.backblaze.com/b2/docs/b2_list_file_names.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JCLOUDS-1314) B2 native prefix and delimiter support

2017-07-07 Thread Andrew Gaul (JIRA)

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

Andrew Gaul commented on JCLOUDS-1314:
--

Commit aade963c62eb9f723e0f2095fde3ce248ba21334 in jclouds-labs's branch 
refs/heads/2.0.x from Andrew Gaul
[ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=aade963 ]

JCLOUDS-1304: B2 native prefix and delimiter

Previously B2 emulated prefix and delimiter via client-side filtering.
Enabled by recent service additions.

> B2 native prefix and delimiter support
> --
>
> Key: JCLOUDS-1314
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1314
> Project: jclouds
>  Issue Type: New Feature
>  Components: jclouds-blobstore
>Affects Versions: 2.0.1
>Reporter: Andrew Gaul
>Assignee: Andrew Gaul
>Priority: Minor
>
> Enabled by recent additions to the B2 API:
> https://www.backblaze.com/b2/docs/b2_list_file_names.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JCLOUDS-1304) Azure: Support for custom data during VM creation to support the injection of cloud-init user-data

2017-07-07 Thread Andrew Gaul (JIRA)

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

Andrew Gaul commented on JCLOUDS-1304:
--

Mistyped the JIRA issue; sorry for the spam.

> Azure: Support for custom data during VM creation to support the injection of 
> cloud-init user-data
> --
>
> Key: JCLOUDS-1304
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1304
> Project: jclouds
>  Issue Type: Improvement
>Reporter: Vikas Rangarajan
>
> Azure provides the ability to inject custom user data during VM creation 
> which can then be executed by cloud init to allow automatic VM provisioning 
> following boot. cloud init is a popular way to inject provisioning scripts 
> during VM creation, providing a cleaner alternative to ssh-based 
> provisioning. This functionality existed in azurecompute-arm before the 
> refactoring which replaced the VM deployment template API with the VM api.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Resolved] (JCLOUDS-1314) B2 native prefix and delimiter support

2017-07-07 Thread Andrew Gaul (JIRA)

 [ 
https://issues.apache.org/jira/browse/JCLOUDS-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Gaul resolved JCLOUDS-1314.
--
   Resolution: Fixed
Fix Version/s: 2.0.3
   2.1.0

> B2 native prefix and delimiter support
> --
>
> Key: JCLOUDS-1314
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1314
> Project: jclouds
>  Issue Type: New Feature
>  Components: jclouds-blobstore
>Affects Versions: 2.0.1
>Reporter: Andrew Gaul
>Assignee: Andrew Gaul
>Priority: Minor
> Fix For: 2.1.0, 2.0.3
>
>
> Enabled by recent additions to the B2 API:
> https://www.backblaze.com/b2/docs/b2_list_file_names.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


Build failed in Jenkins: jclouds-labs-2.0.x-branch #117

2017-07-07 Thread jenkins-no-reply
See 


Changes:

[Andrew Gaul] JCLOUDS-1304: B2 native prefix and delimiter

--
[...truncated 796.23 KB...]
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[36192] received request: POST /b2api/v1/b2_start_large_file 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[36192] done accepting connections: Socket closed
[pool-3-thread-4] Test 
testStartLargeFile(org.jclouds.b2.features.MultipartApiMockTest) succeeded: 
670ms
Test suite progress: tests succeeded: 24, failed: 0, skipped: 0.
Jul 07, 2017 1:35:09 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[60322] received request: POST 
/b2api/v1/b2_upload_part/4a48fe8875c6214145260818/c001_v0001007_t0042 HTTP/1.1 
and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:35:09 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[60322] done accepting connections: Socket closed
[pool-3-thread-1] Test 
testUploadPart(org.jclouds.b2.features.MultipartApiMockTest) succeeded: 2703ms
Test suite progress: tests succeeded: 25, failed: 0, skipped: 0.
Starting test testAllContains(org.jclouds.b2.B2ProviderMetadataTest)
Starting test testOfApiContains(org.jclouds.b2.B2ProviderMetadataTest)
Starting test testTransformableToContains(org.jclouds.b2.B2ProviderMetadataTest)
Starting test testWithId(org.jclouds.b2.B2ProviderMetadataTest)
[pool-4-thread-1] Test testAllContains(org.jclouds.b2.B2ProviderMetadataTest) 
succeeded: 2ms
Test suite progress: tests succeeded: 26, failed: 0, skipped: 0.
[pool-4-thread-2] Test testOfApiContains(org.jclouds.b2.B2ProviderMetadataTest) 
succeeded: 3ms
Test suite progress: tests succeeded: 27, failed: 0, skipped: 0.
[pool-4-thread-3] Test 
testTransformableToContains(org.jclouds.b2.B2ProviderMetadataTest) succeeded: 
2ms
Test suite progress: tests succeeded: 28, failed: 0, skipped: 0.
[pool-4-thread-4] Test testWithId(org.jclouds.b2.B2ProviderMetadataTest) 
succeeded: 2ms
Test suite progress: tests succeeded: 29, failed: 0, skipped: 0.
Tests run: 29, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.006 sec - in 
TestSuite

Results :

Tests run: 29, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.11:check (default) @ b2 ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.1
[INFO] 
[INFO] --- maven-bundle-plugin:2.3.7:bundle (default-bundle) @ b2 ---
[INFO] 
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ b2 ---
[INFO] 
[INFO] --- apache-rat-plugin:0.10:check (default) @ b2 ---
[INFO] 51 implicit excludes (use -debug for more details).
[INFO] Exclude: **/src/test/resources/**/*.sh
[INFO] Exclude: **/src/test/resources/**/*.bat
[INFO] Exclude: **/src/test/resources/**/*.cmd
[INFO] Exclude: **/src/test/resources/**/*.txt
[INFO] Exclude: **/src/test/resources/**/*.gz
[INFO] Exclude: **/src/test/resources/**/*.xml
[INFO] Exclude: **/src/test/resources/**/*.html
[INFO] Exclude: **/src/test/resources/**/*.iso
[INFO] Exclude: **/src/test/resources/**/ssh*.pub
[INFO] Exclude: **/LICENSE.txt
[INFO] Exclude: **/header.txt
[INFO] Exclude: **/NOTICE.txt
[INFO] Exclude: **/DISCLAIMER
[INFO] Exclude: **/BUILD.txt
[INFO] Exclude: **/CHANGES.txt
[INFO] Exclude: **/README.md
[INFO] Exclude: **/README.txt
[INFO] Exclude: **/DEPENDENCIES
[INFO] Exclude: **/CONTRIBUTING.md
[INFO] Exclude: **/*json
[INFO] Exclude: **/*readme
[INFO] Exclude: **/*ProviderMetadata
[INFO] Exclude: **/*ApiMetadata
[INFO] Exclude: **/*LoggingModule
[INFO] Exclude: **/*ViewMBeanFactory
[INFO] Exclude: **/target/**
[INFO] Exclude: **/test-output/**
[INFO] Exclude: **/bin/**
[INFO] Exclude: **/.settings/**
[INFO] Exclude: **/.classpath
[INFO] Exclude: **/.dir-locals.el
[INFO] Exclude: **/.project
[INFO] Exclude: **/.idea/**
[INFO] Exclude: **/*.iml
[INFO] Exclude: **/*.eml
[INFO] Exclude: **/*.ipr
[INFO] Exclude: **/*.iws
[INFO] Exclude: **/*.DS_STORE
[INFO] Exclude: **/TAGS
[INFO] Exclude: **/.metadata/**
[INFO] Exclude: **/atlassian-ide-plugin.xml
[INFO] Exclude: **/.DS_Store
[INFO] Exclude: .mailmap
[INFO] Exclude: .git/**
[INFO] Exclude: **/.gitignore
[INFO] Exclude: **/.gitattributes
[INFO] Exclude: .repository/**
[INFO] Exclude: .java-version
[INFO] Exclude: nb-configuration.xml
[INFO] Exclude: nbactions.xml
[INFO] Exclude: **/.factorypath
[INFO] Exclude: **/.apt_generated/**
[INFO] Exclude: .repository/**
[INFO] Exclude: gc.log
[INFO] 51 resources included (use -debug for more details)
Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 
'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not 
recognized.
Compiler warnings:
  WARNING:  'org.apache.xerces

Build failed in Jenkins: jclouds-labs-2.0.x-branch » Apache jclouds B2 API #117

2017-07-07 Thread jenkins-no-reply
See 


Changes:

[Andrew Gaul] JCLOUDS-1304: B2 native prefix and delimiter

--
[...truncated 19.52 KB...]
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[49179] received request: POST /b2api/v1/b2_get_upload_url 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[54011] done accepting connections: Socket closed
[pool-2-thread-1] Test 
testGetUploadUrlDeletedBucket(org.jclouds.b2.features.ObjectApiMockTest) 
succeeded: 106ms
Test suite progress: tests succeeded: 11, failed: 0, skipped: 0.
Starting test testListFileNames(org.jclouds.b2.features.ObjectApiMockTest)
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
execute
INFO: MockWebServer[45602] starting to accept connections
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[39453] done accepting connections: Socket closed
[pool-2-thread-5] Test 
testGetFileInfo(org.jclouds.b2.features.ObjectApiMockTest) succeeded: 386ms
Test suite progress: tests succeeded: 12, failed: 0, skipped: 0.
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[54213] received request: GET /b2api/v1/b2_authorize_account 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Starting test testListFileVersions(org.jclouds.b2.features.ObjectApiMockTest)
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
execute
INFO: MockWebServer[44524] starting to accept connections
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[54213] received request: POST /b2api/v1/b2_hide_file 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[51937] done accepting connections: Socket closed
[pool-2-thread-4] Test 
testGetFileInfoDeletedFileVersion(org.jclouds.b2.features.ObjectApiMockTest) 
succeeded: 141ms
Test suite progress: tests succeeded: 13, failed: 0, skipped: 0.
Starting test testUploadFile(org.jclouds.b2.features.ObjectApiMockTest)
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
execute
INFO: MockWebServer[55876] starting to accept connections
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[49179] done accepting connections: Socket closed
[pool-2-thread-3] Test 
testGetUploadUrl(org.jclouds.b2.features.ObjectApiMockTest) succeeded: 143ms
Test suite progress: tests succeeded: 14, failed: 0, skipped: 0.
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[54213] done accepting connections: Socket closed
[pool-2-thread-2] Test testHideFile(org.jclouds.b2.features.ObjectApiMockTest) 
succeeded: 108ms
Test suite progress: tests succeeded: 15, failed: 0, skipped: 0.
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[45602] received request: GET /b2api/v1/b2_authorize_account 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[44524] received request: GET /b2api/v1/b2_authorize_account 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[45602] received request: POST /b2api/v1/b2_list_file_names 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[44524] received request: POST 
/b2api/v1/b2_list_file_versions HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[55876] received request: POST 
/b2api/v1/b2_upload_file/4a48fe8875c6214145260818/c001_v0001007_t0042 HTTP/1.1 
and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[55876] done accepting connections: Socket closed
[pool-2-thread-4] Test 
testUploadFile(org.jclouds.b2.features.ObjectApiMockTest) succeeded: 75ms
Test suite progress: tests succeeded: 16, failed: 0, skipped: 0.
Jul 07, 2017 1:35:06 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[45602] done accepting connections: Socket closed
[pool-2-thread-1] Test 
testListFileNames(org.jclouds.b2.features.ObjectApiMockTest) succeeded: 127ms
Test suite progress: tests succeeded: 17, failed: 0, skipped: 0.
Jul 07, 2017 

Build failed in Jenkins: jclouds » Apache jclouds B2 API #3609

2017-07-07 Thread jenkins-no-reply
See 


Changes:

[Andrew Gaul] JCLOUDS-1304: B2 native prefix and delimiter

--
[...truncated 19.37 KB...]
[pool-1-thread-5] Test 
testListFileVersions(org.jclouds.b2.features.ObjectApiMockTest) succeeded: 758ms
Test suite progress: tests succeeded: 13, failed: 0, skipped: 0.
Starting test testCreateBucket(org.jclouds.b2.features.BucketApiMockTest)
Starting test 
testDeleteAlreadyDeletedBucket(org.jclouds.b2.features.BucketApiMockTest)
Starting test testDeleteBucket(org.jclouds.b2.features.BucketApiMockTest)
Starting test testListBuckets(org.jclouds.b2.features.BucketApiMockTest)
Starting test testUpdateBucket(org.jclouds.b2.features.BucketApiMockTest)
Jul 07, 2017 1:51:22 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
execute
INFO: MockWebServer[42839] starting to accept connections
Jul 07, 2017 1:51:22 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
execute
INFO: MockWebServer[53797] starting to accept connections
Jul 07, 2017 1:51:22 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
execute
INFO: MockWebServer[51976] starting to accept connections
Jul 07, 2017 1:51:22 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
execute
INFO: MockWebServer[58879] starting to accept connections
Jul 07, 2017 1:51:22 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
execute
INFO: MockWebServer[46470] starting to accept connections
Jul 07, 2017 1:51:22 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[42839] received request: GET /b2api/v1/b2_authorize_account 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:51:22 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[42839] received request: POST /b2api/v1/b2_delete_bucket 
HTTP/1.1 and responded: HTTP/1.1 400 OK
Jul 07, 2017 1:51:22 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[53797] received request: GET /b2api/v1/b2_authorize_account 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:51:22 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[53797] received request: POST /b2api/v1/b2_delete_bucket 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:51:23 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[51976] received request: GET /b2api/v1/b2_authorize_account 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:51:23 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[58879] received request: GET /b2api/v1/b2_authorize_account 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:51:23 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[46470] received request: GET /b2api/v1/b2_authorize_account 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:51:23 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[51976] received request: POST /b2api/v1/b2_update_bucket 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:51:23 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[58879] received request: POST /b2api/v1/b2_create_bucket 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:51:23 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[42839] done accepting connections: Socket closed
[pool-2-thread-2] Test 
testDeleteAlreadyDeletedBucket(org.jclouds.b2.features.BucketApiMockTest) 
succeeded: 108ms
Test suite progress: tests succeeded: 14, failed: 0, skipped: 0.
Jul 07, 2017 1:51:23 PM com.squareup.okhttp.mockwebserver.MockWebServer$3 
processOneRequest
INFO: MockWebServer[46470] received request: POST /b2api/v1/b2_list_buckets 
HTTP/1.1 and responded: HTTP/1.1 200 OK
Jul 07, 2017 1:51:23 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[53797] done accepting connections: Socket closed
[pool-2-thread-3] Test 
testDeleteBucket(org.jclouds.b2.features.BucketApiMockTest) succeeded: 112ms
Test suite progress: tests succeeded: 15, failed: 0, skipped: 0.
Jul 07, 2017 1:51:23 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[58879] done accepting connections: Socket closed
[pool-2-thread-1] Test 
testCreateBucket(org.jclouds.b2.features.BucketApiMockTest) succeeded: 147ms
Test suite progress: tests succeeded: 16, failed: 0, skipped: 0.
Jul 07, 2017 1:51:23 PM com.squareup.okhttp.mockwebserver.MockWebServer$2 
acceptConnections
INFO: MockWebServer[51976] done accepting connections: Socket closed
[pool-2-thread-5] Test 
testUpdateBucket(org.jclouds.b2.features.BucketApiMockTest) succeeded: 147ms
Test suite progress: tests succeeded: 17, failed: 0, skipped: 0.
Jul 07, 2017 1:51:23 PM com.sq

Build failed in Jenkins: jclouds #3609

2017-07-07 Thread jenkins-no-reply
See 


Changes:

[Andrew Gaul] JCLOUDS-1304: B2 native prefix and delimiter

--
[...truncated 3.87 MB...]
[JENKINS] Archiving 

 to 
org.apache.jclouds/jclouds-core/2.1.0-20170707.173446-88/jclouds-core-2.1.0-20170707.173446-88-javadoc.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds/jclouds-core/2.1.0-20170707.173446-88/jclouds-core-2.1.0-20170707.173446-88-sources.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds/jclouds-core/2.1.0-20170707.173446-88/jclouds-core-2.1.0-20170707.173446-88-test-sources.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds.provider/elastichosts-tor-p/2.1.0-SNAPSHOT/elastichosts-tor-p-2.1.0-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.jclouds.provider/google-cloud-storage/2.1.0-SNAPSHOT/google-cloud-storage-2.1.0-SNAPSHOT.pom
[JENKINS] Archiving 
 to 
org.apache.jclouds/jclouds-all/2.1.0-SNAPSHOT/jclouds-all-2.1.0-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.jclouds.provider/rackspace-cloudloadbalancers-uk/2.1.0-SNAPSHOT/rackspace-cloudloadbalancers-uk-2.1.0-SNAPSHOT.pom
[JENKINS] Archiving 
 to 
org.apache.jclouds/jclouds-allblobstore/2.1.0-SNAPSHOT/jclouds-allblobstore-2.1.0-SNAPSHOT.pom
[JENKINS] Archiving 
 to 
org.apache.jclouds.api/s3/2.1.0-SNAPSHOT/s3-2.1.0-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.jclouds.api/s3/2.1.0-20170707.174055-86/s3-2.1.0-20170707.174055-86.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds.api/s3/2.1.0-20170707.174055-86/s3-2.1.0-20170707.174055-86-tests.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds.api/s3/2.1.0-20170707.174055-86/s3-2.1.0-20170707.174055-86-javadoc.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds.api/s3/2.1.0-20170707.174055-86/s3-2.1.0-20170707.174055-86-sources.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds.api/s3/2.1.0-20170707.174055-86/s3-2.1.0-20170707.174055-86-test-sources.jar
[JENKINS] Archiving 
 to 
org.apache.jclouds.driver/jclouds-enterprise/2.1.0-SNAPSHOT/jclouds-enterprise-2.1.0-SNAPSHOT.pom
[JENKINS] Archiving 

 to 
org.apache.jclouds.driver/jclouds-enterprise/2.1.0-20170707.175013-79/jclouds-enterprise-2.1.0-20170707.175013-79.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds.driver/jclouds-enterprise/2.1.0-20170707.175013-79/jclouds-enterprise-2.1.0-20170707.175013-79-tests.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds.driver/jclouds-enterprise/2.1.0-20170707.175013-79/jclouds-enterprise-2.1.0-20170707.175013-79-javadoc.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds.driver/jclouds-enterprise/2.1.0-20170707.175013-79/jclouds-enterprise-2.1.0-20170707.175013-79-sources.jar
[JENKINS] Archiving 

 to 
org.apache.jclouds.driver/jclouds-enterprise/2.1.0-20170707.175013-79/jclouds-enterprise-2.1.0-20170707.175013-79-test-sources.jar
[JENKINS] Archiving 
 to 
org.apache.jclouds.common/openstack-common/2.1.0-SNAPSHOT/openstack-common-2.1.0-SNAPSHOT.pom
[JENKINS] Archiving 


[jira] [Commented] (JCLOUDS-1314) B2 native prefix and delimiter support

2017-07-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on JCLOUDS-1314:
--

Commit 8344ddcc2c789d0c2051f79ad1742ffaceddf201 in jclouds's branch 
refs/heads/master from [~gaul]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=8344ddc ]

JCLOUDS-1314: Remove unused import


> B2 native prefix and delimiter support
> --
>
> Key: JCLOUDS-1314
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1314
> Project: jclouds
>  Issue Type: New Feature
>  Components: jclouds-blobstore
>Affects Versions: 2.0.1
>Reporter: Andrew Gaul
>Assignee: Andrew Gaul
>Priority: Minor
> Fix For: 2.1.0, 2.0.3
>
>
> Enabled by recent additions to the B2 API:
> https://www.backblaze.com/b2/docs/b2_list_file_names.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (JCLOUDS-1314) B2 native prefix and delimiter support

2017-07-07 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on JCLOUDS-1314:
--

Commit 81049dc12c590a84961b428efc496f682ec69cb4 in jclouds-labs's branch 
refs/heads/2.0.x from [~gaul]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=81049dc ]

JCLOUDS-1314: Remove unused import


> B2 native prefix and delimiter support
> --
>
> Key: JCLOUDS-1314
> URL: https://issues.apache.org/jira/browse/JCLOUDS-1314
> Project: jclouds
>  Issue Type: New Feature
>  Components: jclouds-blobstore
>Affects Versions: 2.0.1
>Reporter: Andrew Gaul
>Assignee: Andrew Gaul
>Priority: Minor
> Fix For: 2.1.0, 2.0.3
>
>
> Enabled by recent additions to the B2 API:
> https://www.backblaze.com/b2/docs/b2_list_file_names.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


Jenkins build is back to normal : jclouds-labs-2.0.x-branch #118

2017-07-07 Thread jenkins-no-reply
See 




Jenkins build is back to normal : jclouds-labs-2.0.x-branch » Apache jclouds B2 API #118

2017-07-07 Thread jenkins-no-reply
See 




Jenkins build is back to normal : jclouds » Apache jclouds B2 API #3610

2017-07-07 Thread jenkins-no-reply
See 




Jenkins build is back to normal : jclouds #3610

2017-07-07 Thread jenkins-no-reply
See 




Re: [jclouds/jclouds] DLO - Lower Level Provider API changes (#1105)

2017-07-07 Thread Timur Alperovich
timuralp commented on this pull request.

Here are the ones I spotted. If you can configure your editor to remove 
trailing white space, please clean them up. If you can't that's fine. Maybe 
that will get cleaned up before merging.

> +  // configure the blobstore to use multipart uploading of the file
+  for (int partNumber = 0; partNumber < 3; partNumber++) {
+ String objName = String.format("%s/%s/%s", objectName, "dlo", 
partNumber);
+ String data = String.format("%s%s", "data", partNumber);
+ ByteSource payload = ByteSource.wrap(data.getBytes(Charsets.UTF_8));
+ Blob blob = blobStore.blobBuilder(objName)
+   .payload(payload)
+   .build();
+ String etag = blobStore.putBlob(defaultContainerName, blob);
+ assertNotNull(etag);
+ total_size += data.length();
+  }
+  
+  getApi().getDynamicLargeObjectApi(regionId, 
defaultContainerName).putManifest(objectName,
+ImmutableMap.of("myfoo", "Bar"));
+ 

There is trailing white space on this line. I don't know if there is a way to 
get github to highlight it.

> +  SwiftObject object1s = getApi().getObjectApi(regionId, 
> containerName).get(name);
+  assertThat(object1s.getETag()).isEqualTo(etag1s);
+  
assertThat(object1s.getPayload().getContentMetadata().getContentLength()).isEqualTo(Long.valueOf(1024L
 * 1024L));
+   }
+
+   protected void deleteAllObjectsInContainerDLO(String regionId, final String 
containerName) {
+   ObjectList objects = getApi().getObjectApi(regionId, 
containerName).list(new ListContainerOptions());
+  if (objects == null) {
+ return;
+  }
+  List pathsToDelete = Lists.transform(objects, new 
Function() {
+ public String apply(SwiftObject input) {
+return containerName + "/" + input.getName();
+ }
+  });
+  

Trailing white space here and line 134.

> +   @SuppressWarnings("deprecation")
+   @Test
+   public void uploadLargeFile() throws Exception {
+  MockWebServer server = mockOpenStackServer();
+  server.enqueue(addCommonHeaders(new 
MockResponse().setBody(stringFromResource("/access.json";
+  server.enqueue(new MockResponse().setBody("").addHeader(ETAG, 
"89d903bc35dede724fd52c51437ff5fd"));
+  server.enqueue(new MockResponse().setBody("").addHeader(ETAG, 
"d41d8cd98f00b204e9800998ecf8427e"));
+  server.enqueue(addCommonHeaders(new 
MockResponse().addHeader("X-Object-Manifest", "myContainer/myObject")));
+
+  try {
+ SwiftApi api = api(server.getUrl("/").toString(), "openstack-swift");
+ assertEquals(api.getObjectApi("DFW", 
containerName).put(objectName.concat("1"), Payloads.newPayload("data1")),
+   "89d903bc35dede724fd52c51437ff5fd");
+ assertEquals(api.getDynamicLargeObjectApi("DFW", 
containerName).putManifest(objectName,
+   ImmutableMap.of("MyFoo", "Bar"), ImmutableMap.of("MyFoo", 
"Bar")), "d41d8cd98f00b204e9800998ecf8427e");
+  

Trailing white space here.

> +  MockWebServer server = mockOpenStackServer();
+  server.enqueue(addCommonHeaders(new 
MockResponse().setBody(stringFromResource("/access.json";
+  server.enqueue(new MockResponse().setBody("").addHeader(ETAG, 
"89d903bc35dede724fd52c51437ff5fd"));
+  server.enqueue(new MockResponse().setBody("").addHeader(ETAG, 
"d41d8cd98f00b204e9800998ecf8427e"));
+  server.enqueue(addCommonHeaders(new 
MockResponse().addHeader("X-Object-Manifest", "myContainer/myObject")));
+
+  try {
+ SwiftApi api = api(server.getUrl("/").toString(), "openstack-swift");
+ assertEquals(api.getObjectApi("DFW", 
containerName).put(objectName.concat("1"), Payloads.newPayload("data1")),
+   "89d903bc35dede724fd52c51437ff5fd");
+ assertEquals(api.getDynamicLargeObjectApi("DFW", 
containerName).putManifest(objectName,
+   ImmutableMap.of("MyFoo", "Bar"), ImmutableMap.of("MyFoo", 
"Bar")), "d41d8cd98f00b204e9800998ecf8427e");
+  
+ assertEquals(server.getRequestCount(), 3);
+ assertAuthentication(server);
+ 

Trailing white space.

> +
+  try {
+ SwiftApi api = api(server.getUrl("/").toString(), "openstack-swift");
+ assertEquals(api.getObjectApi("DFW", 
containerName).put(objectName.concat("1"), Payloads.newPayload("data1")),
+   "89d903bc35dede724fd52c51437ff5fd");
+ assertEquals(api.getDynamicLargeObjectApi("DFW", 
containerName).putManifest(objectName,
+   ImmutableMap.of("MyFoo", "Bar"), ImmutableMap.of("MyFoo", 
"Bar")), "d41d8cd98f00b204e9800998ecf8427e");
+  
+ assertEquals(server.getRequestCount(), 3);
+ assertAuthentication(server);
+ 
+ RecordedRequest uploadRequest = server.takeRequest();
+ assertEquals(uploadRequest.getRequestLine(),
+   "PUT 
/v1/MossoCloudFS_5bcf396e-39dd-45ff-93a1-712b9aba90a9/myContainer/myObjectT