Andrew Gaul
10262df81c
Add symbolic error codes for Atmos
2014-07-24 16:30:42 -07:00
Andrew Gaul
5c8bdcdfbb
Remove ByteSources.asByteSource
...
This method breaks the contract of ByteSource which specifies that
openStream can produce multiple independent streams.
2014-07-24 13:02:13 -07:00
Andrew Phillips
365ac21f1e
Addressing a Checkstyle violation
2014-07-22 13:35:43 -04:00
Andrew Gaul
d1bd551edf
Add support for filesystem last modified
2014-07-21 12:25:04 -07:00
Jeremy Daggett
0d77d8c2b1
JCLOUDS-554: Update Nova default API to v2
2014-07-21 10:50:46 -07:00
Andrew Gaul
f17c876d8d
Replace const.txt file input with synthetic inputs
...
This commit replaces file resource-based test inputs with in-memory
equivalents. This is more consistent and efficient than the previous
approach. Also resized some test inputs to be partSize + 1 instead of
2 * partSize. Tested against aws-s3, blobstore, core, cloudfiles-us,
and filesystem.
2014-07-19 18:35:25 -07:00
Andrew Gaul
370194b2be
Enable more filesystem integration tests
...
Other tests will require Java 7 xattr support.
2014-07-19 12:17:23 -07:00
Andrew Gaul
dd3dc9790e
Close streams in integration tests
...
Also remove bogus delete workaround. Previously unclosed
FileInputStream caused test failures on Windows which cannot delete
open files. Found with Kohsuke's file-leak-detector.
2014-07-19 05:25:20 -07:00
Aled Sage
1fb286809e
JCLOUDS-549: Fix NPE in LoginCredentials.toString
...
- also deprecates LoginCredentails.get(Password|PrivateKey)
- use getOptionalPassword and getOptionalPrivateKey instead
2014-07-18 14:09:18 +01:00
Andrew Gaul
fb60d76704
JCLOUDS-622: Remove most vestiges of InputSupplier
...
Guava 16 deprecated InputSupplier and a future release will remove it.
2014-07-16 16:07:59 -07:00
Jeremy Daggett
1a3ad75efd
JCLOUDS-40: Unasync Rackspace Cloud Identity
2014-07-16 08:47:39 -07:00
Andrew Gaul
09cf57101d
Reduce Swift integration test input size
...
Previously testMultipartChunkedFilenames uploaded 55 MB and now it
uploads 5 MB.
2014-07-15 18:21:42 -07:00
Andrew Gaul
86de7923a1
Improve use of ByteSource
2014-07-15 18:21:42 -07:00
Jeremy Daggett
801aecafea
JCLOUDS-40: Unasync OpenStack Nova API
2014-07-15 14:29:09 -07:00
Andrew Gaul
a8b106c2bb
JCLOUDS-622: remove calls to InputSupplier methods
...
Guava 16 deprecated these methods and Guava 18 will remove them.
2014-07-15 03:09:58 -07:00
Andrew Gaul
f4eca0422d
Enforce correct MD5 for local blobstores
...
Matches behavior of real blobstores.
2014-07-10 22:19:42 -07:00
Christopher Dancy
3659a5f583
JCLOUDS-607: ComputeService.createNodesInGroup throws NPE on FloatingIPApi.create()
2014-07-07 19:46:54 -04:00
Markus von Rüden
a39eadce50
JCLOUDS-619: Introduce MultipartNamingStrategy to generate part names correctly.
2014-07-04 01:06:46 -07:00
Andrew Gaul
05c37c2c77
Consistently use Square's mockwebserver
...
Google mockwebserver merged into OkHttp as per:
https://code.google.com/p/mockwebserver/
2014-07-03 14:39:07 -04:00
Andrew Gaul
71043ac9a2
Provide descriptive bogus values for properties
2014-07-02 22:42:00 -07:00
Epimenidis Voutsakis
b259af48c0
Added ConsolesApi extension for openstack-nova
2014-07-02 11:39:52 -07:00
Chris Custine
ba894fe07b
JCLOUDS-585: Add HP Cloud Block Storage Provider (OpenStack Cinder)
2014-07-01 12:43:30 -07:00
Andrew Gaul
7f8e6a03d7
Address Checkstyle violations
2014-07-01 09:33:46 -07:00
Ignasi Barrera
eb884e7c09
JCLOUDS-618: Allow servers without boot device in ElasticStack
2014-06-27 19:19:42 +02:00
Chris Custine
4d5f57a303
JCLOUDS-594: ComputeService.suspendNodesMatching throwing UnsupportedOperationException but call still succeeds
2014-06-27 13:04:01 -04:00
Everett Toews
1db5d38a09
Fixed NPE when Server has no Image
2014-06-26 15:04:05 -05:00
Andrew Gaul
8fa209b15e
Use more specific testng asserts where possible
...
These asserts yield more informative error messages. Found with:
grep -rI 'assertTrue(.* =='
grep -rI 'assertTrue(.* !='
grep -rI 'assertTrue(.*\.equals('
2014-06-24 13:54:01 -07:00
Everett Toews
b95898fc0a
Fix for JSON parse error on createNodesInGroup (JCLOUDS-558)
2014-06-23 13:40:40 -05:00
Shri Javadekar
c417ddef67
JCLOUDS-589: Reauthenticate on Keystone HTTP 401
...
This commit ports the Keystone 2.0 fix from JCLOUDS-178 to Keystone
1.1.
2014-06-21 18:58:40 -07:00
Andrew Bayer
5641f675da
JCLOUDS-602. Added live tests for new EBS volume fields.
...
While they're implemented in apis/ec2, the tests are in
providers/aws-ec2, generally, to make sure ec2-alike clones won't barf
on them. We're exercising creation of volumes, images and instances
with the new options. I also had to do some sketchy wait-and-loop'ing
in AMIAPILiveTest.testCreateAndListEBSBackedImage() due to what seems
to be a delay on new AMIs showing up in filtered DescribeImages calls,
though they'll show up instantly when you specify the image ID. Go figure.
2014-06-20 12:27:17 -07:00
Andrew Bayer
6451098f72
JCLOUDS-602 - Add support for volumeType, iops and encrypted to EBS.
...
Adds CreateVolumeOptions for volume creation, adds support for the
above EBS configs in Image, Volume, BlockDeviceMapping, etc.
2014-06-20 12:27:17 -07:00
Jeremy Daggett
da50cd6cbe
JCLOUDS-455: Add get() method to KeyPairApi
2014-06-20 11:11:30 -07:00
Ignasi Barrera
b0250cfb4f
JCLOUDS-588: Register discovered images in the image cache
...
Images were cached in memory using a memoized supplier. To allow growing
this cache with the discovered images, the ImageCacheSupplier class has
been created. It provides an in-memory cache with all discovered images
and acts as a view over the image cache that also provides access to
them.
The in-memory cache for the discovered images expires with the session,
just as the image cache does.
The default memoized image supplier has been changed to the
ImageCacheSupplier, to make sure all providers get injected the right
instance, and the old supplier has been qualified with the 'imageCache'
name, in case a provider needs the basic image cache.
2014-06-20 12:35:18 +02:00
Jeremy Daggett
1982626cd6
Fix replaceAll regex to handle spaces correctly
2014-06-18 10:21:01 -07:00
Jeremy Daggett
235092e517
JCLOUDS-471: Adds pool field to FloatingIP and updated related tests.
2014-06-17 11:43:10 -07:00
Chris Custine
8c8fe83f3e
JCLOUDS-582: Enhancements to availability zones api
2014-06-17 11:31:06 -07:00
Andrew Gaul
e799a7409c
JCLOUDS-597: HashCode methods for Content-MD5
...
This works more naturally with Guava Hashing methods and immutability
provides better safety guarantees. Also deprecate existing byte[]
methods.
2014-06-12 15:29:17 -07:00
Jeremy Daggett
a6c89d9150
Pretty formatted json test resources
2014-06-11 15:37:02 -04:00
Andrew Phillips
9b50754c24
Cleaning up Checkstyle violations from b1c1636
and 39f77ad
2014-06-09 23:17:37 -04:00
Andrew Phillips
b1c163636d
Adding a test to check for JCLOUDS-278
...
Contributed by Bill Branan.
2014-06-09 15:15:17 -04:00
Andrew Gaul
9cdd53b0b7
JCLOUDS-546: Remove Javadoc @author annotations
...
Annotations removed with:
find -name \*.java | xargs sed -i /@author/d
Empty Javadoc removed with multiple iterations of:
find -name \*.java | xargs sed -i -z 's/ \*\n \*\// \*\//'
find -name \*.java | xargs sed -i -z 's/ \* \n \*\// \*\//'
find -name \*.java | xargs sed -i -z 's/\/\*\*\n \*\/\n//'
2014-06-07 21:44:54 -07:00
Ignasi Barrera
39f77ad3f8
JCLOUDS-570: Fallback to the GetImageStrategy
...
If the TemplateBuilderImpl is given an imageId but the image can not be
found in the image cache, fallback to the GetImageStrategy to perform a
call to the provider to try to get it.
We've seen that in some cases images are not returned in the image list
but they actually exist in the provider. This fix won't make them
available when filtering by other properties such as the operating system,
etc, but at least will make them available if their id is known.
2014-06-06 12:40:27 +02:00
Ignasi Barrera
a7e342422c
JCLOUDS-517: New ElasticHosts images and regions
...
Added the new ElasticHosts regions.
Updated the ElasticStack api to get the list of standard
drives using an API call. All providers except ServerLove
support the new API call, so the old logic in the ElasticStack
api has been moved to that provider. The rest of providers will now
extract all the OperatingSystem information by parsing the name of the
StandardDrive.
A unit test has been added to the ElasticStack api with all the images
that were hardcoded, to make sure all names are still parsed as expected
and all information in the existing providers is kept.
Modified the default template for all ElasticHosts providers to
match newer Ubuntu images and updated the Template*Live tests
accordingly.
Also refactored the WellKnownImage map to a supplier to lazy load it
when needed and avoid unexpected errors when building the Guice injector
if there are authentication errors or similar.
2014-06-02 16:57:44 +02:00
Andrew Gaul
186f052022
Remove BlobBuilder and Payloads.calculateMD5
...
Callers should instead explicitly set contentMD5, usually with the
results from Guava Hashing.md5(). This narrows the API and removes a
strange IOException from callers. Further it removes a dangerous
rebuffering of arbitrarily-large non-repeatable Payloads.
2014-05-28 12:54:18 -07:00
Andrew Gaul
0d2c7ed6ff
Use HashingInputStream to avoid buffering Payload
2014-05-27 15:53:06 -07:00
Andrew Phillips
5239e0fea1
Updating EC2 test mocks to match changes in 79c289d
2014-05-18 14:18:35 -04:00
Andrew Gaul
79c289da9d
Replace deprecated calls to LoadingCache.apply
2014-05-17 17:39:42 -07:00
Andrew Gaul
baddf8fe80
Replace InputSupplierMap with Map<K, ByteSource>
...
A future version of Guava will remove InputSupplier.
2014-05-16 18:10:52 -07:00
Andrew Gaul
70cf3e1f7c
Make constants final classes instead of interfaces
...
This commit prohibits implementation of the empty interface and
instantiation of the class. Refer to _Effective Java_ item 19 for
more background.
2014-05-16 09:45:52 -07:00
Jeremy Daggett
94459ba6e3
Update openstack-keystone RetryOnRenew to handle 408 errors with a BackoffLimitedRetryHandler
2014-05-15 08:43:34 -07:00
Andrew Gaul
8d51ad6f87
Prefer Guava HttpHeaders over JAX-RS
...
jclouds code contains more instances of the former and Guava has
additional constants like CONTENT_MD5.
2014-05-15 01:55:51 -07:00
Zack Shoylev
44aea81972
Fixes an issue where the number of retries was always set to 1.
2014-05-14 19:11:52 -05:00
Jeremy Daggett
a53438159a
Fix Accept header and removed Content-Type from common headers
2014-05-14 11:58:37 -07:00
Andrew Gaul
84440e5dc1
Update pre-ASF copyright notices
2014-05-12 13:30:28 -07:00
Andrew Bayer
d15144cf45
JCLOUDS-564. Add ephemeral disks for m3.xlarge and m3.2xlarge sizes
2014-05-12 09:20:01 -07:00
Andrew Gaul
67c2b5f6b9
Enable whitespace around Checkstyle rule
2014-05-08 18:31:47 -07:00
Andrew Gaul
2d88f5164e
Enforce that all commas have trailing whitespace
2014-05-08 18:28:08 -07:00
Andrew Gaul
24a7c4d195
Address Checkstyle violations
2014-05-07 16:30:19 -07:00
Andrew Gaul
a45124c51a
JCLOUDS-505: Remove unused ObjectMD5
...
The only users of this seem to be
org.jclouds.atmos.blobstore.strategy.FindMD5InUserMetadata and
org.jclouds.azureblob.blobstore.strategy.FindMD5InBlobProperties which
are themselves unused.
2014-05-07 10:16:18 +02:00
Jeremy Daggett
b112e8069e
Updated service types for OpenStack/Rackspace services
2014-05-01 13:54:53 -07:00
Everett Toews
f1a0370bd0
ServerPredicates to make waiting easier.
2014-04-29 14:58:27 -05:00
jasdeep-hundal
b2be149946
JCLOUDS-526: Removing Nova QuotaClassApi
...
The quota-classes API in Nova has been removed (and apparently never worked)
2014-04-19 09:00:50 -04:00
Andrew Gaul
5fabd87685
Mark Swift blobstores as eventually consistent
...
This allows tests to retry correctly. Most blobstores, including
Swift[1], offer eventual consistency, although Azure[2] and the
jclouds test blobstores offer strong consistency.
[1] https://lists.launchpad.net/openstack/msg06788.html
[2] http://blogs.msdn.com/b/windowsazure/archive/2011/11/21/windows-azure-storage-a-highly-available-cloud-storage-service-with-strong-consistency.aspx
2014-04-14 19:50:45 -07:00
Andrew Gaul
d0bd30cc15
Address several Guava InputSupplier deprecations
...
Many remain due to Payload implementing InputSupplier<InputStream>. Guava 18
will remove InputSupplier.
2014-04-12 12:02:26 -07:00
Andrew Gaul
7af18d4843
JCLOUDS-534: Address Guava 17 compatibility issues
...
Corrected with:
find -name \*.java | xargs sed -i 's/new Stopwatch();/Stopwatch.createUnstarted();/'
find -name \*.java | xargs sed -i 's/new Stopwatch().start();/Stopwatch.createStarted();/'
2014-04-11 14:24:12 -07:00
Everett Toews
84e0b91179
JCLOUDS-317: Fix NPE when ComputeService.listNodes()
...
Follow-up to 222779b
2014-04-09 14:22:08 -04:00
Andrew Phillips
244e194c72
Correcting 4-space indent in openstack/nova/v2_0/domain/Server.java
...
Follow-up to 222779b
2014-04-05 16:22:14 -04:00
Jacob Mourelos
222779bbc4
JCLOUDS-317: Add missing states to Nova v2 Server
...
- Deprecated state: STOPPED
- Add states: MIGRATING, SHUTOFF, RESCUE, SOFT_DELETED,
SHELVED, SHELVED_OFFLOADED
2014-04-03 18:06:27 -05:00
Jeremy Daggett
e195a5a2bb
Add deprecation warnings and provide links to new APIs
2014-04-03 17:51:39 -05:00
jasdeep-hundal
b92892094b
JCLOUDS-515: Don't require availability zone when creating volumes in cinder
2014-03-31 14:11:43 -05:00
Hugo Trippaers
0401959157
JCLOUDS-347: Implement a poor-mans rollback if CloudStack static NAT creation fails
2014-03-27 13:01:40 +01:00
Joel Friedly
b93cfa42e1
Remove Nova instance metadata limit
...
Rackspace cloud limits instance metadata to 5 key-value pairs, but
upstream Nova only sets the limit at 128 by default. This patch removes
the limit entirely; the official python clients don't check it and the
server is responsible for enforcing it anyway.
Fixes: https://issues.apache.org/jira/browse/JCLOUDS-507
2014-03-21 19:03:07 -05:00
Zack Shoylev
7588d2fba4
Fixes potentially deleting a null server id.
2014-03-21 15:13:44 -05:00
Jasdeep Hundal
22a8b9d04c
Fix Keystone response for testing to not include Glance version
2014-03-19 23:28:51 +01:00
Andrew Gaul
a7fa3b9c62
Retry on S3 HTTP 504 Gateway Timeout status codes
...
RiakCS using the S3 interface occasionally surfaces these status
codes.
2014-03-14 12:15:55 -07:00
Jeremy Daggett
33f244dbab
JCLOUDS-489 - Adds support to Cloud Files for the iOS Streaming URI
2014-03-14 13:31:52 -05:00
Pedro Navarro Pérez
b68f1b6e1a
JCLOUDS-453. Add OpenStack Keystone v2.0 OS-KSADM Admin Extension support for Keystone.
2014-03-14 09:54:38 +01:00
Andrew Gaul
e7fccd6528
Address Checkstyle violations
2014-03-13 14:06:38 -07:00
Roman C. Coedo
8dafeacfed
Fixing a couple of typos
2014-03-12 14:41:23 -07:00
Zack Shoylev
d99ad1b94a
JCLOUDS-486 This will allow booting up nova servers with fixed IPs and ports.
2014-03-11 14:58:22 -05:00
Andrew Gaul
04e6620fb9
Address Checkstyle violation
2014-03-04 11:59:30 -08:00
Zack Shoylev
eef83ed3cc
Better documentation and a bugfix for cloud-init
2014-03-03 17:14:27 -06:00
Andrew Gaul
d7e0b3b10c
Remove WriteTo
...
Guava helpers capture this functionality in a more idiomatic way.
2014-02-21 17:13:31 -08:00
Andrew Gaul
9965fbcadb
Address error-prone warning
2014-02-21 16:59:30 -08:00
Andrew Gaul
266d7f847b
Prefer ByteSource over deprecated InputSupplier
2014-02-18 22:35:10 -08:00
Andrew Gaul
076e31b076
Address Checkstyle violations
2014-02-18 22:33:56 -08:00
Andrew Bayer
a656c7292f
JCLOUDS-467. Properly iterate over node names for EC2 instance creation.
2014-02-14 14:54:09 -08:00
Andrew Gaul
8c495ddee4
JCLOUDS-137: Retry on HTTP 500 AtmosError 1040
2014-02-11 12:12:54 -08:00
Andrew Gaul
53134dfa4e
Improve use of Splitter in Atmos code
2014-02-10 09:39:44 -08:00
Andrew Bayer
e1c8c88cf5
JCLOUDS-450. Adding support for EC2 MaxCount option.
...
Note - no live test for this, because it's very hard to guarantee a
situation where it would be relevant.
2014-02-07 15:03:43 -08:00
Ioannis Canellos
52f25fd284
[JCLOUDS-439] Fix osgi metadata on jclouds-sts.
2014-01-29 15:46:34 +02:00
Andrew Gaul
0098751f42
JCLOUDS-438: Map S3 code BucketAlreadyExists
...
Mapping to ResourceAlreadyExistsException allows external callers to
handle this situation specifically.
2014-01-28 21:21:46 -08:00
Ignasi Barrera
0625c087fa
JCLOUDS-431: Added m3.medium and m3.large instance types to EC2
2014-01-24 16:32:08 +01:00
Zack Shoylev
d76a9d921e
The metadata needs to be ordered for this implementation.
2014-01-20 23:03:26 -06:00
Jeremy Daggett
55aadf858a
JCLOUDS-423: Update Service Type for Cloud Files CDN
2014-01-20 11:53:56 -06:00
Andrew Gaul
9416416ff4
Address Checkstyle violations
2014-01-19 20:51:51 -08:00
Audrius Butkevicius
05c2986d08
JCLOUDS-426. Update Elasticstack vnc password key
2014-01-17 12:50:24 +01:00
Zack Shoylev
6ab1f6ccce
Adds support for networks in the NovaComputeServiceAdapter Related to https://issues.apache.org/jira/browse/JCLOUDS-416
2014-01-14 12:53:54 -06:00
Ignasi Barrera
09a430744a
Added OkHttp driver to support modern HTTP verbs
2014-01-13 10:47:39 +01:00
Andrew Bayer
35ecf794cf
Cleaning up nodeNames/networks copy-paste mixup in EC2TemplateOptions as well
2014-01-08 15:44:15 -08:00