9932 Commits

Author SHA1 Message Date
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
Geoff Macartney
a911e5eef1 Add an InternetGatewayApi to AWSEC2Api.
This is a follow-up to https://github.com/jclouds/jclouds/pull/1091
and particularly the comment at
https://github.com/jclouds/jclouds/pull/1091#issuecomment-299202429:

I have been trying this out and I think we will need to extend it for
practical purposes; if you want to create a VPC and subnet and then
deploy a machine on to it, you also need to jump through a few other
hoops apart from creating the subnet:

 - modify the subnet attributes to permit auto-assign public
   IP ("ModifySubnetAttribute")
 - create an Internet Gateway on the VPC ("CreateInternetGateway")
 - get and then modify the routing table of the subnet to add a public
   (0.0.0.0/0) route through the newly added gateway ("CreateRoute" and
   friends)

There are three AWS APIs needed for the above, an `InternetGatewayApi`,
a `RouteTableApi` and a method in the subnet API, I guess, for modifying
attributes on subnets. This PR contains the `InternetGatewayApi`.
2017-05-11 00:31:59 +02: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
Ignasi Barrera
05f64b20a8 Fix default executor rejection policies 2017-04-24 08:16:45 +02:00
Ignasi Barrera
6100b7c366 Fix BaseComputeServiceLiveTest configuration 2017-04-21 20:19:49 +02:00
Ignasi Barrera
8c2e7435da Fix the Jetty start statement used in compute live tests 2017-04-20 10:01:51 +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
Svetoslav Neykov
2633fcc1ab Create and attach tests sources as artifacts 2017-03-28 08:30:09 +02:00
Ignasi Barrera
7f589821d4 Provide a method to prepare an before taking an snapshot from it 2017-03-27 17:11:32 +02:00
Andrew Donald Kennedy
0793597891 Fix error creating list of volume bindings for Docker 2017-03-17 23:21:41 +01:00
Tomasz Wojtuń
f5a5d869fe Wrap Image with Optional in DiskURIToImage 2017-03-14 08:47:39 +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
Andrea Turli
43c0b3472a Revert "[JCLOUDS-1233] bump jax-rs version"
This reverts commit 40d18f2006a1e2111cbb20ee333bd60480cd21f8.
2017-03-06 17:35:15 +01:00
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