Commit Graph

8148 Commits

Author SHA1 Message Date
Andrea Turli 6e78115295 JCLOUDS-373: Fix VirtualGuestToNodeMetadata when server returns SoftLayer_Exception_Order_Item_Duplicate
* Wrap getOrderTemplate in VirtualGuestToNodeMetadata.getImage with try/catch
* Address comments from @nacx and @demobox:
  - remove the fields of the custom SoftLayerOrderItemDuplicateException and propagate the HttpResponseException
  - use of order = null instead of return null
  - extend RuntimeException instead IllegalStateException in SoftLayerOrderItemDuplicateException
2013-11-12 12:28:15 +01:00
Andrea Turli f278450355 JCLOUDS-213: Fixing SoftLayer support 2013-11-10 12:03:46 -05:00
Andrew Phillips 0298318790 JCLOUDS-352: Drops support for "-incubating" release versions 2013-11-06 22:34:09 -05:00
Andrew Phillips 3b8c38994a Fixing typos in test name 2013-11-06 22:34:03 -05:00
jolly 8eeeffa08b add g2.2xlarge EC2 instance size (JCLOUDS-364) 2013-11-06 12:25:13 -08:00
Zack Shoylev fc9d5be294 JCLOUDS-332 Skips tests broken on windows 2013-10-30 11:20:52 -05:00
Andrew Gaul 44e30f06b7 Address Checkstyle violations 2013-10-22 16:50:24 -07:00
Andrew Phillips 75066730af Move Expect: 100 stripping after asserts against the request
Follow-up to e30f86521
2013-10-19 20:07:45 -07:00
Diwaker Gupta 3399816f83 Return false if container already exists in AWS-S3
AWS-S3 returns the incorrect creation status when a container already
exists in the us-standard (or default) region.  Fixes JCLOUDS-334.
2013-10-17 13:38:23 -07:00
Andrew Gaul ba91165c29 Work around CloudFiles test failures
Java helpfully interprets Expect: 100-continue instead of returning
the response code.  This commit reverts
100afba1d8.
2013-10-17 13:09:08 -07:00
Zack Shoylev 7a977b5eaf Reauthenticate on Keystone HTTP 401 (JCLOUDS-178)
The number of retries here is not the same as for 500 errors; expected
behavior is a quick fail while retaining some robustness.  This fix
should not reintroduce JCLOUDS-231.
2013-10-16 10:34:46 -07:00
Niraj Tolia 6b8ee8b904 [JCLOUD 301]: Make increased use of Invokable params cache
This patch moves the Invokable Parameter cache to Reflection2 and adds
a convenience method for it to allow it to be shared by multiple
callers. The subsequent ability of S3Utils to use this cache results
in a ~40% improvement in performance for generating signed GETs and
PUTs for S3. This commit also converts a few others calls to
Invokable.getParameters() but the observed benefit from those was
small in microbenchmarks.
2013-10-14 17:53:17 -07:00
Andrew Gaul 962003bb0b Skip testCreateBlobWithExpiry for Swift
jclouds does not implement this functionality.  Now all tests pass for
cloudfiles-us.
2013-10-13 20:09:57 -07:00
Andrew Gaul 13e55349a3 Do not set hash to null unnecessarily
This avoids test failures seen in
CommonSwiftClientLiveTest.testObjectOperations.
2013-10-13 19:25:56 -07:00
Andrew Gaul af115a1240 Get container name before creating with metadata 2013-10-12 14:11:04 -07:00
Andrew Gaul 12c23f39f9 Do not call createContainer(getContainerName)
BaseBlobStoreIntegrationTest.getContainerName implicitly calls
createContainer.
2013-10-12 12:39:50 -07:00
Everett Toews 2a041bdf2a Support HKG region for Rackspace providers. 2013-10-10 21:08:53 -05:00
Andrew Gaul 99a01fac1f JCLOUDS-339. Handle zero-length objects in Atmos
Atmos does not return a location header when writing zero-length
objects, which normally throws an HttpResponseException: no uri in
headers or content.
2013-10-08 22:15:02 -07:00
Andrew Gaul 1ee9a61fb5 JCLOUDS-334. Return URI only if container created
This allows us to honor the BlobStore.createContainerInLocation
interface and gives consistency with other providers.
2013-10-08 13:04:29 -07:00
Andrew Gaul f6b502707d Skip failing testCreateBlobWithExpiry on Atmos 2013-10-08 11:45:51 -07:00
Shri Javadekar 313484567b JCLOUDS-334. Return correct status while creating containers in Swift.
BlobStore.createContainerInLocation is supposed to return True if the
container was newly created and False if the container already
existed. This commit makes that happen for Swift blobstores.
2013-10-07 21:49:25 -07:00
Adrian Cole a25a7aa12c JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions 2013-09-30 15:34:02 -07:00
Niraj Tolia ebd75d36ef [JCLOUDS-302] Remove unnecessary String construction in HttpUtils 2013-09-27 16:16:30 -07:00
Niraj Tolia 82708c98de [JCLOUDS-301] Reduce reflection overhead of Invokable.getParameters()
By caching the results from Invokable.getParameters(), this commit
improves request signing performance (GETs and PUTs) for S3 by >
3X. These performance problems were seen in production and diagnosed
using the YourKit profiler.
2013-09-27 07:50:15 -07:00
Francis Devereux 44e8487230 JCLOUDS-251: Swift: Delete chunks when deleting a multipart blob
Also:
- Make SwiftBlobIntegrationLiveTest.testMultipartChunkedFileStream more realistic by uploading a file large enough to be split into parts.
- JavaDoc fixes for SwiftBlobStore: don't reference nonexistent methods.
2013-09-21 20:35:04 -07:00
JoshVote d6bb789efb JCLOUDS-277: Made the description in org.jclouds.compute.domain.Image nullable 2013-09-16 16:30:32 +01:00
Aled Sage 8de60eab25 JCLOUDS-282: Add NL to assignable locations for SoftLayer
- zone contained NL, so needed to add it to SoftLayerProviderMetadata's
  iso3166Codes
2013-09-16 16:03:23 +01:00
Aled Sage 4f772c4d22 JCLOUDS-269: Report ram as MB rather than GB for SoftLayer 2013-09-16 11:06:24 +01:00
Andrew Gaul 81c8b7bedc Skip unimplemented test with transient blobstore 2013-09-16 02:53:53 -07:00
Andrew Gaul 82b9704e52 Add Atmos-specific MD5 checksum header
Tested against Atmos Online.
2013-09-11 18:06:27 -07:00
Andrew Gaul 5527fae061 Add test for correct and incorrect contentMD5
Tested against atmos (skipped), aws-s3, azureblob, cloudfiles-us, and
filesystem (skipped).
2013-09-11 16:14:35 -07:00
Andrew Gaul 48a12b0ce3 [JCLOUDS-279] Remove spurious executable bit 2013-09-11 15:55:44 -07:00
Andrew Gaul b4454b6151 Delete containers after integration tests
Also return newly allocated containers to the pool.
2013-09-09 17:02:23 -07:00
Andrew Gaul f6cf6a19b8 Reduce testFileGetParallel input size to ~160 KB
Previously this test downloaded 45 MB in 30 seconds which failed on
slower connections, causing spurious test failures.  The larger input
size provides no benefit.
2013-09-04 19:51:19 -07:00
Andrew Gaul 8cbd2bb7fb Run some filesystem integration tests
Previously no integration tests ran, now we see:

Tests run: 43, Failures: 0, Errors: 0, Skipped: 8
2013-09-04 14:10:02 -07:00
Andrew Gaul 0143a56fb5 Reduce testPutFileParallel input size to ~160 KB
Previously this test uploaded ~10 MB in 30 seconds which failed on
slower connections, causing spurious test failures.  The larger input
size provides no benefit.
2013-09-02 19:36:18 -07:00
Andrew Gaul e2489f3942 Simplify testPutFileParallel
Create only one temporary file and use explicit delete instead
finalization to remove it.
2013-09-02 19:36:15 -07:00
Andrew Gaul 8e16ecb3ec Add trailing slash to Atmos listDirectories
This is more consistent with examples in the Atmos programmer's guide
and allows this operation to succeed when used with ViPR.
2013-08-30 09:08:13 -07:00
Andrew Bayer 6add9da5aa Deprecate vcloud/Terremark async interfaces and *Client classes 2013-08-29 11:28:42 -07:00
Andrew Gaul f3e43b34f6 Support Integer.MAX_VALUE size PUTs
Previously jclouds enforced Integer.MAX_VALUE - 1 size.  Tested
against Atmos Online.
2013-08-28 13:52:34 -07:00
Francis Devereux aee3c10a93 Handle quoted ETags for OpenStack objects to fix JCLOUDS-247
This avoids a 'java.io.IOException: Unrecognized character: "' when a quoted ETag is encountered (which happens when getting a multipart blob from Rackspace Cloud).
2013-08-28 13:00:47 -07:00
Andrew Gaul 0d0d5a0a03 Handle large putBlob with filesystem blobstore
Previously large putBlob caused an OutOfMemoryError even with
repeatable Payloads.  Fixes JCLOUDS-248.
2013-08-27 23:05:21 -07:00
Andrew Gaul 12860851b1 Allocate new container name using prefix
Before we used the previous container name, which kept appending and
hit S3 limits during integration tests like:

Caused by: java.lang.IllegalArgumentException: Object 'gaul-blobstore27-4348532805015069992-1155797412711190448-1465016400636204031' doesn't match S3 bucket virtual host naming convention. Reason: Can't be null or empty. Length must be 3 to 63 symbols.. For more info, please refer to http://docs.amazonwebservices.com/AmazonS3/latest/index.html?BucketRestrictions.html
2013-08-27 23:03:14 -07:00
Andrew Gaul f899e39777 Skip testDirectory on S3
This test cannot succeed due to the way directories are implemented as
prefix pseudo-files in S3.
2013-08-27 23:01:47 -07:00
Andrew Phillips 6f4c796f73 [maven-release-plugin] prepare for next development iteration 2013-08-27 11:43:49 -04:00
Andrew Phillips cd34259487 [maven-release-plugin] prepare release jclouds-1.6.2-incubating-rc2 2013-08-17 12:07:33 -04:00
Andrew Bayer ffff38561a JCLOUDS-242. Fix security group creation on aws-ec2.
Contributed by Richard Downer.
2013-08-15 12:24:23 -04:00
Andrew Phillips 66e19a6bce Revert "[maven-release-plugin] prepare release jclouds-1.6.2-incubating-rc1"
This reverts commit 96fae29fde.
2013-08-14 17:15:36 -07:00
Andrew Phillips 96fae29fde [maven-release-plugin] prepare release jclouds-1.6.2-incubating-rc1 2013-08-07 14:17:23 -04:00
Everett Toews ece92aea4d Support IAD region for Rackspace providers. 2013-08-06 22:23:05 -05:00