Commit Graph

8382 Commits

Author SHA1 Message Date
Chris Custine bfc000b171 JCLOUDS-583: Updates HP Cloud compute provider to work with 13.5 release 2014-06-20 17:30:08 +02:00
Chris Custine 6d9af2b2ed JCLOUDS-582: Enhancements to availability zones api 2014-06-20 08:06:51 -07:00
Ignasi Barrera 3589c1475a 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 15:24:46 +02:00
Jeremy Daggett 21e1bdd4ff Fix replaceAll regex to handle spaces correctly 2014-06-18 10:23:07 -07:00
Jeremy Daggett 7a013fab7e JCLOUDS-471: Adds pool field to FloatingIP and updated related tests. 2014-06-18 08:12:06 -07:00
Christopher Dancy 9d7a857383 NodePredicates gained static predicate SUSPENDED
Replaced hard-coded Strings in toString methods of static predicates with their enum.toString counterparts

Added test 'testNodeRunningFailsOnSuspended'

Revert "Added test 'testNodeRunningFailsOnSuspended'"

This reverts commit 2a543bfe20540bb4f10ef4f86e845a63bdbe90e3.

Removed test 'testNodeRunningFailsOnSuspended'. Added test 'testNodeSuspendedReturnsTrueWhenSuspended'.

Renamed '

Revert "Renamed '"

This reverts commit 061e9292a812066562ab47ba5eea15337fc13c3d.

Renamed 'AtomicNodeSuspended.nodeRunning' to 'AtomicNodeSuspended.nodeSuspended'.\nWhere applicable combined all calls to 'replay(Object...)' instead of the old 'replay(node);replay(computeService);'
2014-06-16 17:00:26 -05:00
Andrew Gaul cb53eee8aa 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:55:41 -07:00
Ignasi Barrera ad79081f43 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:59:56 +02:00
Ignasi Barrera c51f2180b2 Changed parsing logs to WARN level in ElasticStack 2014-06-02 16:44:33 +02:00
Andrew Gaul 56bbd27044 Increase timeouts for signed URL tests
Clock skew between the client and blobstore can cause these tests to
spuriously fail.  This commit allows 5 seconds skew in either
direction.
2014-05-30 14:59:14 -07:00
Andrew Bayer 735324c121 [maven-release-plugin] prepare for next development iteration 2014-05-27 10:26:42 -07:00
Andrew Bayer 8e34e00dff [maven-release-plugin] prepare release jclouds-1.7.3-rc1 2014-05-27 10:26:42 -07:00
Everett Toews 85eba22a1a 1.7.3 Release 2014-05-26 11:53:44 -05:00
Ignasi Barrera fbf30a73a7 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-05-26 16:39:08 +02:00
Andrew Bayer eb000b2c1d JCLOUDS-467. Properly iterate over node names for EC2 instance creation. 2014-05-26 00:05:53 +02:00
ashley-taylor 5cc4659bce JCLOUDS-528: Ability to control interfaces to test for SocketFinder 2014-05-25 20:57:28 +02:00
Ignasi Barrera 1667c86998 JCLOUDS-573: Make sure to destroy all nodes created in the tests 2014-05-21 09:33:41 +02:00
Jeremy Daggett c29f7e6a93 Fix Accept header and removed Content-Type from common headers 2014-05-16 13:57:33 -07:00
Jeremy Daggett 1f1f2f1701 Update openstack-keystone RetryOnRenew to handle 408 errors with a BackoffLimitedRetryHandler 2014-05-16 13:26:57 -07:00
Zack Shoylev e230880453 Fixes an issue where the number of retries was always set to 1. 2014-05-15 10:29:57 -05:00
Andrew Bayer 34866e5be1 JCLOUDS-564. Add ephemeral disks for m3.xlarge and m3.2xlarge sizes 2014-05-12 11:03:24 -07:00
Ignasi Barrera 9398373f94 JCLOUDS-561: Properly populate the ssh agent connection in the builder methods 2014-05-08 09:04:58 +02:00
Andrew Gaul 64968e4828 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-08 00:20:02 +02:00
Jeremy Daggett 792e3250cf Updated service types for OpenStack/Rackspace services 2014-05-01 15:58:58 -07:00
Everett Toews 65e4ad2012 ServerPredicates to make waiting easier. 2014-04-29 14:56:42 -05:00
Aled Sage 25c37fc8ca JCLOUDS-549: Fix NPE in LoginCredentials.toString 2014-04-26 18:01:43 -04:00
Andrew Phillips 4a729562dd Updating the Maven Site plugin version 3.1 -> 3.3
Also removing the stagingSiteURL parameter as we should not need
it for the site:deploy goal
2014-04-26 17:55:59 -04:00
Andrew Phillips a459b310bf [maven-release-plugin] prepare for next development iteration 2014-04-15 14:09:16 -04:00
Andrew Phillips 418f3c59d9 [maven-release-plugin] prepare release jclouds-1.7.2-rc2 2014-04-09 22:37:56 -04:00
Everett Toews 5b9f6b7646 JCLOUDS-317: Fix NPE when ComputeService.listNodes()
Follow-up to f4aaf70
2014-04-09 14:27:37 -04:00
Andrew Phillips 19e58f62e2 Revert "[maven-release-plugin] prepare release jclouds-1.7.2-rc1"
This reverts commit 14b07712fd.
2014-04-09 14:27:15 -04:00
Andrew Phillips 14b07712fd [maven-release-plugin] prepare release jclouds-1.7.2-rc1 2014-04-07 14:26:48 -04:00
Andrew Phillips 8f903d49c0 Correcting 4-space indent in openstack/nova/v2_0/domain/Server.java
Follow-up to f4aaf70
2014-04-05 16:28:18 -04:00
Matheus Cunha 6d52fbd6a1 JCLOUDS-503 - Missing c3.large from AWSEC2HardwareSupplier 2014-04-04 11:44:06 +02:00
Jacob Mourelos f4aaf702fa 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:07:22 -05:00
Jeremy Daggett 2a8ec6be9b Add deprecation warnings and provide links to new APIs 2014-04-03 17:53:13 -05:00
Hugo Trippaers f3303f03c3 JCLOUDS-347: Implement a poor-mans rollback if CloudStack static NAT creation fails 2014-04-02 14:18:59 +02:00
Jeremy Daggett 7ab18ffbd3 JCLOUDS-423: Update Service Type for Cloud Files CDN 2014-04-01 11:20:51 -05:00
Jeremy Daggett c3d341a680 JCLOUDS-489 - Adds support to Cloud Files for the iOS Streaming URI 2014-04-01 11:00:01 -05:00
jasdeep-hundal a45a24d4a1 JCLOUDS-515: Don't require availability zone when creating volumes in cinder 2014-03-31 14:15:34 -05:00
Pasi Niemi 63d6d97553 JCLOUDS-516: Add ssh agent support via sch agentproxy 2014-03-27 11:04:14 +01:00
Joel Friedly 59c10e18e8 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-24 10:21:26 -05:00
Andrew Gaul 283937fad0 Retry on S3 HTTP 504 Gateway Timeout status codes
RiakCS using the S3 interface occasionally surfaces these status
codes.
2014-03-14 12:16:24 -07:00
Zack Shoylev 6e39ba2351 JCLOUDS-486 This will allow booting up nova servers with fixed IPs and ports. 2014-03-13 10:57:37 -05:00
Andrew Gaul fe79885663 JCLOUDS-460: Add jitter to avoid thundering herd
When issuing many simultaneous requests to Synaptic Atmos I observed:

HTTP/1.1 failed with code 500, error: AtmosError
[code=1040, message=The server is busy. Please try again.]

Previously all clients slept for fixed intervals and thus retried
around the same time.  This commit adds a random delay which should
better distribute load on the provider.
2014-03-03 22:30:50 -08:00
Zack Shoylev a38cbd5803 Better documentation and a bugfix for cloud-init 2014-03-03 18:57:01 -06:00
Tom Manville c368bae28c JCLOUDS-342: Retry on HTTP 408 for swift
To repro issue 342, the following steps were taken:
 - Spawn 500 parallel / 2000 total putBlobs to cloudfiles-uk
 - issue a SIGSTOP
 - wait 60 seconds
 - issue a SIGCONT

Without this patch, there are several hundred 408s.
With this patch, these are retried and complete successfully.
2014-03-03 16:48:19 -08:00
Andrew Gaul 08992c7a3d Deprecate WriteTo
Use Payload.getInput and Guava helpers instead
2014-02-21 17:11:22 -08:00
Andrew Gaul b3f7838958 Deprecate StreamingPayload 2014-02-19 21:14:52 -08:00
Andrew Gaul c2397f80ca JCLOUDS-459: Limit maximum user threads
Previously jclouds could use an unlimited number of threads on its
user ExecutorService.  While this ExecutorService will go away when we
complete deasyncafication, we should prevent jclouds from misbehaving
until that time.
2014-02-19 10:05:18 -08:00