Commit Graph

1590 Commits

Author SHA1 Message Date
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
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
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
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
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 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 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
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 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 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
Andrew Gaul c0a438b671 Revert "A 401 error should result in re-authenticating for a new token"
This reverts commit 7b0cd9be43.

References JCLOUDS-231
2013-08-05 21:37:51 -07:00
Andrew Phillips 78e5832fd2 Revert "[maven-release-plugin] prepare release jclouds-1.6.2-incubating-rc0"
This reverts commit 61baf2ada2.
2013-08-05 20:38:51 -04:00
Andrew Phillips 0554c6f824 Revert "[maven-release-plugin] prepare for next development iteration"
This reverts commit df6844474c.
2013-08-05 20:38:20 -04:00
Andrew Phillips df6844474c [maven-release-plugin] prepare for next development iteration 2013-08-02 11:59:22 -04:00
Andrew Phillips 61baf2ada2 [maven-release-plugin] prepare release jclouds-1.6.2-incubating-rc0 2013-08-02 11:59:16 -04:00
Zack Shoylev 8688d8e0c3 When creating a server, allow attaching server to custom network
https://issues.apache.org/jira/browse/JCLOUDS-202
2013-08-01 21:58:10 -05:00
Andrew Bayer 24466fdaab Deprecating async/client classes for a number of apis/providers
Also added dummy *Api classes for classes that'll be renamed from
*Client->*Api in 1.7.0.
2013-08-01 17:58:26 -07:00
Andrew Bayer e25a0843d4 JCLOUDS-220. Adding projectId to a bunch of CloudStack API options 2013-08-01 17:16:15 -07:00
Andrew Phillips d009a5ae5d JCLOUDS-155: Making header handling in OpenStack case-insensitive
Submitted by Rodney Beede
2013-08-01 19:11:33 -04:00
Everett Toews d9e5ba15bf Support Disk Configuration Extension in NovaTemplateOptions 2013-08-01 16:50:43 -05:00
Everett Toews 01f118b4ef Support Disk Configuration Extension 2013-08-01 16:50:43 -05:00
Andrew Phillips e11cc87cfa JCLOUDS-200: Consolidate all feature-specific in the AWS provider
Follow-up to b7d75f79
2013-07-26 15:26:06 -04:00
Diwaker Gupta b7d75f7949 AWS-S3 configurable temporary signed URL support
Introduces AWSS3BlobRequestSigner, which reuses the
RequestAuthorizeSignature filter for most of the heavy lifting.
Other implementation details based on [1].

Tested with AWSS3BlobSignerLiveTest, in particular,
testSign(Get|Put)UrlWithTime.

Closes JCLOUDS-200

[1] http://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentication.html
2013-07-24 15:23:40 -07:00
Andrew Bayer bbe80c1e0b JCLOUDS-199. CloudStack live tests against ACS 4.2 simulator cleanup.
- ACS 4.x doesn't like taking SSH pub keys from the filesystem, so
    generate them on the fly.
- vm.getDisplayName() can be null now.
- Add new possible resource limit types.
- Default to looking template=osFamily=CENTOS, since that's the only
    template guaranteed to be there in the simulator.
- Use adminJobComplete instead of jobComplete in admin tests
- Accept capacity/usage/etc of 0.
- Premium configuration category not present in ACS.
- Sleep a bit between deleting a domain and verifying it's not there
    any more. Also expect an IllegalStateException.
- Given that there are issues deleting zones at the moment (through
    the UI, too), use a different zone for pod and zone tests.

Still failing tests:
- pretty much everything that creates a VM and expects to log into it,
    but that's simulator-specific.
- Zone deletion, due to a bug in ACS, apparently.
- Registering and creating templates
- creating volumes from snapshots, and attaching volumes
2013-07-22 13:15:50 -07:00
Andrew Bayer 4ffff04651 JCLOUDS-195. Add egress firewall rules for CloudStack in 1.6.x 2013-07-21 13:37:20 -07:00
Andrew Gaul 6c8679af66 Expect exception from FilePayload.getInput
Previously the constructor threw this.  Fixes regression from ac58a70.
2013-07-16 08:29:02 -07:00
Andrew Gaul b31bda2005 Set provider id in AtmosClientLiveTest
This allows Atmos live tests to run.
2013-07-10 22:14:42 -07:00
Andrew Gaul ced5abdd77 Add Swift-specific MD5 checksum header
Tested against cloudfiles-us, hpcloud-objectstorage, and
swift-keystone.  Reference for ETag:

https://answers.launchpad.net/swift/+question/157064
2013-07-09 21:56:11 -07:00
Zack Shoylev 7b0cd9be43 A 401 error should result in re-authenticating for a new token 2013-07-09 14:15:16 -07:00
Andrew Bayer 35a44243a7 JCLOUDS-151. Deprecate CloudStack *Client classes, add dummy *Api classes. 2013-07-02 14:38:25 -07:00
Andrew Bayer 264d47e3ce JCLOUDS-150. Deprecate EC2 *Client, add dummy *Api classes. 2013-07-02 09:06:57 -07:00
zack-shoylev 162379aae0 Ensure rackspace cloudidentity live tests pass where applicable
Disables incompatible keystone tests
2013-07-01 19:43:44 -05:00