2542 Commits

Author SHA1 Message Date
Zack Shoylev
c2a4b8afde Updates the default template so live tests pass again. 2017-08-29 17:32:04 +02:00
Ignasi Barrera
3b5fe0b02f Next development version 2.0.3-SNAPSHOT 2017-06-29 12:24:45 +02:00
Ignasi Barrera
574c7fc3c1 Apache jclouds 2.0.2-rc1 release 2017-06-29 12:21:59 +02:00
Svetoslav Neykov
a2863b2a3c
JCLOUDS-1307: Invalidate SG on removal even if already externally deleted 2017-06-27 13:33:30 +03:00
Svetoslav Neykov
04ff09e6fe [JCLOUDS-1306] Fix SG cache invalidation when deleting 2017-06-09 12:05:19 +02:00
Geoff Macartney
81f8818e32 Temporarily use a custom annotation instead of @SinceApiVersion.
The intention is to use @SinceApiVersion for this purpose, but that
would affect a number of APIs, and we would want to have good test
coverage before merging that change (in
FormSignerUtils#getAnnotatedApiVersion). However, there is some issue
wth certain tests at resent that means we cannot successfully test
all APIs that make use of @SinceApiVersion in order to assure
ourselves that FormSignerUtils will not introduce some problem.

See https://github.com/jclouds/jclouds/pull/1102#issuecomment-302682049
for details.

This annotation is introduced as a temporary measure in order to
decouple the functionality of FormSignerUtils#getAnnotatedApiVersion
from @SinceApiVersion and the tests in question. It can be removed and
replaced by @SinceApiVersion when those tests are fixed.

Designates that a method overrides the {@link ApiVersion} on the class
with a specific value.
2017-05-29 10:32:51 +02:00
Geoff Macartney
c0f3eb6071 Add ModifySubnetAttribute 2017-05-29 10:32:48 +02:00
Andrew Gaul
acb84bc5e1 JCLOUDS-1299: Handle % in names during Swift list
uriBuilder.appendPath assumes an encoded path.
2017-05-17 10:38:10 -07:00
ui4j
f7cad22d93 JCLOUDS-1297: Fix uploadId format for non-English locale
Add Locale.ENGLISH parameter to String.format(...) to generate same uploadId for different locales.
2017-05-15 11:12:00 -07:00
Stephen Tomkinson
36b3dadf8c Add logic from JCLOUDS-1261 to the other 2 types of Aws4 signer. 2017-05-10 10:52:22 -07:00
Tomas Tulka
9bf7c5da5a fix for deleting an invalid file
If the file for delete is invalid (typically a wrong filename) an IOException will be thrown.
2017-05-10 01:02:48 -07:00
Stephen Tomkinson
1a23a16343 Resolves JCLOUDS-1261 by ensuring non-standard port numbers are in the host header that's used for the AWSv4 auth calculations. 2017-05-10 00:00:51 -07:00
Andrea Turli
a9cc10c490 JCLOUDS-1269; JCLOUDS-1120: ec2 subnet/securityGroups fixes 2017-05-04 17:42:26 +02:00
Aled Sage
df5427f778 Fix logging in nova: don’t assume logback 2017-05-04 17:21:39 +02:00
John McDonnell
499e61b80d [JCLOUDS-1128] Added page and pagesize fields to ListProjectOptions.
Cloudstack's listProjects request supports additional fields for page
and pagesize.  These were missing but have been added in as part of this
commit.
2017-04-18 16:02:25 +02:00
John McDonnell
743bac2ed4 [JCLOUDS-1130] Cloudstack fixed projectid parameter in listUsageRecords.
Cloudstack's listUsageRecords response doesn't use camelcase so the projectid
parameter was incorrect.  Updated from projectId to projectid.
2017-04-18 16:02:25 +02:00
Andrew Gaul
de084125f2 JCLOUDS-1262: Correct US-OH region
Follow on to 04ab255d9f45e9a22ed6711216c5f02664d75a2e.
2017-04-10 13:14:24 -07:00
Andrew Gaul
6fe2619011 Allow null S3 list MPU lastModified 2017-04-10 12:57:42 -07:00
Ignasi Barrera
fcc8310d90 JCLOUDS-1262: Add the Ohio region to AWS 2017-03-29 09:25:07 +02:00
Michelle Zhang
73875884b5 JCLOUDS-1217/JCLOUDS-1258: Add Canada, London and China regions to AWS 2017-03-29 09:25:05 +02:00
Andrew Donald Kennedy
0793597891 Fix error creating list of volume bindings for Docker 2017-03-17 23:21:41 +01:00
Andrew Gaul
d89d6b5d05 Return more metadata from listMultipartUpload
Include Content-Length and Last-Modified.
2017-03-08 20:38:22 -08:00
Andrew Gaul
d2041667d7 Return lastModified and size when listing S3 parts 2017-03-06 19:49:43 -08: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 2017-02-22 10:28:10 +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
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
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
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
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 2016-11-09 22:30:45 +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
Zack Shoylev
78b3120e5e filesystem: Modify the backslash only on Windows 2016-10-26 19:53:55 -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
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
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
Andrew Gaul
d1508b2d23 Make inner class static
Found via error-prone.
2016-10-23 06:39:46 -07:00
Andrew Gaul
2a04a52d56 Remove unused imports
Found via error-prone.
2016-10-23 06:39:46 -07:00