9908 Commits

Author SHA1 Message Date
Andrea Turli
11423a074c Revert "bump sshj version to 0.20.0"
This reverts commit 8268a2dbef746ecf92a1c1cd758cd0804d88b42d.
2017-03-06 17:34:20 +01:00
Andrea Turli
8268a2dbef bump sshj version to 0.20.0
- this version contains some bux fixes especially useful for OSGi
2017-03-06 17:21:07 +01:00
Andrea Turli
40d18f2006 [JCLOUDS-1233] bump jax-rs version 2017-03-06 17:20:06 +01:00
Ignasi Barrera
c6d8f80445 Take into account the template properties everytime the builder is retrieved 2017-03-06 16:52:51 +01:00
Ignasi Barrera
9575929246 JCLOUDS-1249: Fix OpenStack server rollback 2017-03-06 11:24:50 +01:00
Geert Vanheusden
f210283cac JCLOUDS-1218: filesystem get blob without xattrs
Some filesystems, notably Docker and Mac OS X, do not support xattr
which causes an IOException when getting a blob.
2017-03-01 13:44:02 -08:00
Archana Chinnaiah
f76c09cbe6 JCLOUDS-1246: Allow extending SwiftBlobStoreContextModule 2017-03-01 11:49:17 -08:00
Ignasi Barrera
cbc750cb8b Next development version 2.0.2-SNAPSHOT 2017-02-22 10:32:50 +01:00
Ignasi Barrera
bafa52be97 Apache jclouds 2.0.1-rc2 release rel/jclouds-2.0.1 rel/jclouds-2.0.1-rc2 2017-02-22 10:28:10 +01:00
Geoff Macartney
e294de025e JCLOUDS-1237: Add compareTo() for IpPermission. 2017-02-21 23:14:15 +01:00
Fritz Elfert
0c1fe36a66 JCLOUDS-1239: Handle gzipped userdata in logging 2017-02-16 11:10:35 +01:00
Geoff Macartney
c4245acd35 Fix O(n^2) response time for "list-security-groups" on openstack-nova.
For https://issues.apache.org/jira/browse/JCLOUDS-1235.

This change takes the approach of storing the information about the
overall list of groups within the `SecurityGroupInRegion` when it is
created, so that any subsequent conversion operation has access to all
the groups in the same region as the one to be converted.

It also collapses the functionality of `NovaSecurityGroupToSecurityGroup`,
`SecurityGroupRuleToIpPermission` and `FindSecurityGroupWithNameAndReturnTrue`
all into `NovaSecurityGroupInRegionToSecurityGroup`, and deletes the
now unused-classes SecurityGroupRuleToIpPermission,
NovaSecurityGroupToSecurityGroup and associated tests.
2017-02-13 12:34:12 +01:00
Andrea Turli
663123a97c update netty driver
- use a fix version to avoid package renaming issues
2017-02-06 17:10:40 +01:00
Ignasi Barrera
88b7184a45 Fix Chef live tests 2017-02-03 00:21:34 +01:00
Ignasi Barrera
eda50cdec6 Fix container presence check in filesystem provider 2017-02-01 17:42:59 +01:00
Ignasi Barrera
3749543809 Fix compute service integration tests 2017-01-31 11:51:51 +01:00
Andrea Turli
10a585e504 change hostname command to get the short form 2017-01-31 10:22:03 +01:00
Svetoslav Neykov
86f518dddc Select the latest available java package to install dynamically 2017-01-25 10:47:32 +01:00
Andrew Gaul
a5dd78b0cc Correct regex in ExpandProperties
Previously Android choked on this incomplete regex.
2017-01-25 00:22:28 -08:00
Andrew Gaul
efc568b482 Propagate error on non-existent container or key 2017-01-18 11:21:02 -08:00
Timur Alperovich
3668a9905b GetBucketLocation should use path-style requests.
When making a GetBucketLocation request, Amazon may route the request
to the bucket region. When making it with v4 signer, the request may
fail because of the region mismatch. Concretely, a request to
test.s3.amazonaws.com may resolve to s3-us-west-2-w.amazonaws.com. The
request itself is prepared for the us-east-1 region (s3.amazonaws.com
endpoint), but then fails when the DNS resolution points to a
us-west-2 endpoint.

Bucket-in-path works around this for the GetBucketLocation requests.
That means that every GetBucketLocation request will be of the form:
https://s3.amazonaws.com/{bucket}?location. This ensures that jclouds
requests will not be subjected to Amazon's routing/DNS pointers.

Fixes: JCLOUDS-1213
2017-01-11 22:54:36 -08:00
Zack Shoylev
5dd1032b25 Allow ipv6 address blocks 2017-01-10 14:35:43 -06:00
mildis
a1733e5b68 WindowsEveryonePrincipal : update regex for FR
"Everyone" in a french Windows is "Tout le monde".
Thus, the line.split(" ") returns only "Tout" and putBlob() throws an exception.
The modified regex search for the first two consecutive white char to return the name.
Windows's whoami returns a bunch of 0x20 between the name and the type.
2017-01-10 13:34:44 -06:00
Etienne CARRIERE
01d749694e JCLOUDS-1220: Possibility to change the name of Header of Identity v1 protocol 2017-01-05 16:19:18 +01:00
Andrea Turli
1d562d910e update Docker README
improve description for osx
2017-01-05 09:24:27 +01:00
Vijay Panghal
79ad45d6b9 Make user agent header configurable
Jclouds sends default user agent string with each request to cloud
services. But some of the application would like to overide this and
send custom user agent instead.

This commit define a string property to overide this default user agent
string. This property will be applied to all outgoing http request to
cloud services

JCLOUDS-819
2016-12-20 11:12:53 +01:00
Ignasi Barrera
fa746ff162 Deprecate user metadata in DigitalOcean 2016-12-07 17:24:46 +01:00
Fritz Elfert
3ae2213a7d JCLOUDS-1206: Replace user metadata by byte[] userData 2016-12-07 17:24:42 +01:00
Andrew Gaul
d993501309 Include part size in listMultipartUpload result
Clients use this during completeMultipartUpload.
2016-11-15 20:30:37 -08:00
Andrew Gaul
f2413cd191 Avoid creating temporary files via relative paths
This avoids creating junk in the source directory.
2016-11-15 20:30:23 -08:00
Ignasi Barrera
970f521bcd Next development version 2.0.1-SNAPSHOT 2016-11-15 01:17:08 +01:00
Ignasi Barrera
6a3a37f4e0 Apache jclouds 2.0.0-rc3 release rel/jclouds-2.0.0-rc3 2016-11-09 22:30:45 +01:00
Ignasi Barrera
0b48d4a25a Make code compatible with newer OSGi framework versions 2016-11-03 09:43:36 +01:00
William L. Thomson Jr
51a9b4dd11
org/jclouds/scriptbuilder/functionloader/osgi/BundleFunctionLoader.java:
Switched from Properties to HashMap to fix compilation issues. Where
Properties is not of type Dictionary<String, ?>. This passes the right
type to bundleContext.registerService. Also corrects the first argument,
String -> String[], same issue wrong type passed.
2016-11-02 22:54:17 -04:00
Andrea Turli
8649c3ff79 [aws-ec2] Add CRUD for VPC 2016-10-31 14:56:15 +01:00
Andrea Turli
9b3e6d91bf Fix retryOnRenew classes
These classes should not close the release the payload as they are not
reading it.

- fix swift
- fix openstack-swift v1 and v2
- fix RetryOnRenewTest for v1 and v2
2016-10-28 17:29:05 +02:00
Andrew Gaul
69aa5d6426 JCLOUDS-1065: Deprecate fake directory support
Superseded by prefix and delimiter support.
2016-10-26 21:30:52 -07:00
Zack Shoylev
78b3120e5e filesystem: Modify the backslash only on Windows 2016-10-26 19:53:55 -05:00
Zack Shoylev
af09f3a5ab Remove PackageLocation check 2016-10-26 19:51:45 -05:00
Erich Duda
dff16876ee Change types of variables in docker ImageSummary
The int type is not sufficient for size and virtualSize
parameters, if the image is bigger than 2gb.

This fixes https://issues.apache.org/jira/browse/JCLOUDS-1190
2016-10-26 21:31:13 +02:00
Zack Shoylev
fc91f64290 Ensure that jclouds consistently uses /, works with \\, and uses File.separator on the filesystem level. 2016-10-25 17:23:32 -05:00
Richard Downer
199e17ab2c Fix InitScriptConfigurationForTasks.initScriptPattern on Windows
This method has incorrect results when run on Windows. It is expected to
generate folder names compatible with Unix-like target machines, but by
using File.getParent it will actually be influenced by the host machine
OS type. This results in baseDir being set to a style that will not work
on Unix-like targets.
2016-10-25 16:05:39 +02:00
Andrea Turli
a1f6b7ebf2 update CloudstackTemplateOptions pattern 2016-10-25 15:49:46 +02:00
Josef Cacek
c10540b04d [JCLOUDS-1162] DockerComputeServiceAdapter shouldn't remove container if it stops with non-zero exit code quickly after start. The commit also adds feature which prints container logs into JClouds Compute Log during Node destroy if the TRACE log level is enabled 2016-10-25 15:34:09 +02:00
Ignasi Barrera
06b69ffed4 Fix AWS EC2 compute live tests 2016-10-25 15:19:50 +02:00
Ignasi Barrera
cfe22389a8 Resource management moved to the caller 2016-10-25 15:19:20 +02:00
Ignasi Barrera
a43acaffce JCLOUDS-1187: Do not load Json payloads to memory when serializing objects 2016-10-25 15:19:20 +02:00
Andrew Gaul
37101b7825 Enable LongLiteralLowerCaseSuffix
Readers can confuse this with 1.
2016-10-23 14:26:03 -07:00
Andrew Gaul
3c9f66b8e9 Avoid lower-case l literal suffix
Readers can confuse this with 1.  Found via error-prone.  Fixed via:

find -name \*.java | xargs sed -i 's/\( [0-9][0-9]*\)l/\1L/g'
find -name \*.java | xargs sed -i 's/\(([0-9][0-9]*\)l/\1L/g'
2016-10-23 14:24:35 -07:00
Andrew Gaul
8117574c83 Avoid C-style array declarations
Found via error-prone.
2016-10-23 13:51:59 -07:00