Commit Graph

1229 Commits

Author SHA1 Message Date
Andrew Bayer 6c94f3eb9e JCLOUDS-972. Fix parsing of spot reqs, set sane default for validUntil.
Get the faultCode and faultMessage to actually be parsed (though I'm
not sure they're ever used), add statusCode, statusMessage and
statusUpdateTime, and have AWSEC2TemplateOptions default to a sane 30
minute lifetime for spot instance requests, so they don't get orphaned
forever if the price is too low etc.
2015-07-27 15:12:53 +02:00
Andrea Turli 1863f859f5 [SoftLayer] fix SoftLayerTemplateOptions 2015-07-24 19:33:00 +02:00
Alex Heneveld cc88d99bb1 add deprecated flag to Hardware and prefer non-deprecated hardware types
deprecated hardware types in EC2 are flagged using this, according to latest AWS advice,
to fix situations where deprecated hardware types would be chosen when a non-deprecated alternative exists.
we also deprecate T2 because it requires a VPC.

also fixes semantics of ImagesToRegionAndIdMap to match the logic used in the TemplateBuilderImpl;
RegionAndName should contain the ID not the ProviderID.  this is only really used in tests so no external impact.
(previously the cache only worked if provider ID matched the non-location segment of the image ID.)
however this does now assert that image id's are in the right format for AWS, as suggested by @nacx.
2015-07-20 23:13:49 +02:00
Zack Shoylev 3445f00a88 Updates live tests and template builder settings for compute 2015-07-14 10:23:08 -05:00
Andrew Bayer 0426b1c45f JCLOUDS-961 - Add d2, m4, t2 instance types for EC2 2015-07-13 16:11:37 +02:00
Andrea Turli 16cf5909dd [SoftLayer] fix SoftLayerTemplateBuilderLiveTest
add more iso3166Codes
fix DatacenterApiLiveTest
2015-06-25 00:12:12 +02:00
Andrea Turli a0ada77eec replace ExpectTests with MockWebServerTests
refactor AccountApiExpectedTest to AccountApiMockTest
refactor DatacenterApiExpectTest to DatacenterApiMockTest
refactor SoftwareDescriptionApiExpectTest to SoftwareDescriptionApiMockTest
refactor VirtualGuestApiExpectTest to VirtualGuestApiMockTest
refactor VirtualGuestBlockDeviceTemplateGroupApiExpectTest to VirtualGuestBlockDeviceTemplateGroupApiMockTest
2015-06-25 00:05:51 +02:00
Andrew Gaul cc3167c3f4 Update labs dependencies for rackspace-cloudfiles 2015-06-23 20:47:36 -07:00
Alexander Grzesik b1231257fd JCLOUDS-904 Fixing OSGi Header by adding org.jclouds.io import 2015-06-11 13:00:26 +02:00
Svetoslav Neykov 06f1b13200 Implement setting and retrieving the notes property on Softlayer machines 2015-06-11 10:14:20 +02:00
Andrea Turli 443ca4300c [SoftLayer] use FQDN as hostname 2015-06-03 15:31:27 +02:00
Svetoslav Neykov 6c9915eab9 Skip malformed image entries returned by Softlayer
Softlayer will occasionally return an incomplete object in the getCreateObjectOptions call, making it impossible to spin up machines - ignore the incomplete entries which are usually not even relevant.
2015-05-13 22:44:24 +02:00
Stuart Hendren 3080965eda JCLOUDS-207: Key Pair and Security Groups created by jclouds are not removed when the node is destroyed
The names created do not match those searched for.

They are created in FormatSharedNamesAndAppendUniqueStringToThoseWhichRepeat.java
and have are of this form jclouds#I-0#e96.

But for example jclouds#I-0#us-east-1#* is used as the search term.
2015-05-07 11:40:32 +02:00
Ignasi Barrera e92fd921cf Fixed Rackspace cloudfiles pom versions
/cc @zack-shoylev
2015-05-07 11:39:44 +02:00
Zack Shoylev cdb1677b47 Update cloudfiles poms 2015-04-09 14:25:57 -05:00
Zack Shoylev 9d387f81e4 Merge remote-tracking branch 'promote-jclouds-labs-openstack-local/promote-rackspace-cloudfiles-moved' into 1.9.x 2015-04-09 14:24:52 -05:00
Andrew Gaul b2d409cf3b Correct Azure Blob unit test expectations
Master uses API 2013-08-15 while 1.9.x uses 2012-02-12.
2015-04-09 08:41:07 -07:00
Andrew Gaul 7c275bdedd JCLOUDS-651: Azure copy object content metadata 2015-04-08 23:13:54 -07:00
Andrew Gaul afbf61c657 JCLOUDS-651: Add Azure server-side copyBlob 2015-04-08 23:13:51 -07:00
Andrew Gaul 5487400037 JCLOUDS-871: Azure Copy Blob support
API reference:

http://msdn.microsoft.com/en-us/library/dd894037.aspx
2015-04-08 23:13:51 -07:00
Andrew Gaul 75f6d76f1d Return ETag from Azure setBlobMetadata
Also fix up live tests.
2015-04-08 23:13:51 -07:00
Ignasi Barrera 9c92487c29 Next development version 1.9.1-SNAPSHOT 2015-03-29 22:44:17 +02:00
Ignasi Barrera 565a102c15 Next development version 2.0.0-SNAPSHOT 2015-03-24 11:02:39 +01:00
Ignasi Barrera ce3eeefd85 Apache jclouds 1.9.0 release 2015-03-24 10:59:36 +01:00
Ignasi Barrera bb41ed4341 Apache jclouds 1.9.0 release 2015-03-24 10:35:42 +01:00
Ignasi Barrera fcb7dfcb81 Fix HPCloudComputeTemplateBuilderLiveTest 2015-03-24 00:40:43 +01:00
Ignasi Barrera 4db2b75add Fixes OpenStack extension namespace configuration
* Improves extension namespace configuration to use Guice multibindings
  so each provider can cleanly provide their own namespaces.
* Fixes the HPCloud Compute volume attachment namespace and adds the
  corresponding live tests.
* Fixes the Rackspace CloudServers UK volume attachment namespace.
2015-03-23 22:40:43 +01:00
Zack Shoylev 8217248571 Adds a rackspace-specific test and a fix for the volume-attach extension problem. 2015-03-20 11:41:24 -05:00
Andrew Gaul 019ae75a61 JCLOUDS-732: Azure portable object ACLs
Azure does not implement support for these:

https://msdn.microsoft.com/library/azure/dd179354.aspx
2015-02-21 10:28:01 -08:00
Andrew Gaul bc81919c58 Add @Beta annotations to BlobStore ACL methods
Also add missing @Override annotations.
2015-02-21 10:18:57 -08:00
Nikolay Sokolov 5b4ac5f186 Added support for RunInstances parameter PrivateIpAddress on EC2 2015-02-16 22:14:48 +01:00
Zack Shoylev f6d43f6962 Fixes blob-related tests that fail occasionally 2015-02-13 17:25:15 -06:00
Andrew Gaul 4bb319a0cc JCLOUDS-820: Support multi-delete for generic S3
Tested against AWS and DreamObjects.  This commit only moves and
renames code.
2015-02-13 06:23:16 -08:00
Andrew Gaul ba2f8ac232 JCLOUDS-258: Support MPU for generic S3
Tested against AWS-S3 and DreamObjects.  This commit only moves and
renames code although some classes are duplicated for deprecation
purposes.
2015-02-12 17:59:33 -08:00
Andrew Gaul d701f6a127 JCLOUDS-660: Azure portable container ACLs 2015-02-12 17:26:47 -08:00
Andrew Gaul 8a2c821e13 JCLOUDS-794: Use bogus URL for generic S3 endpoint
This prevents users from accidentally connecting to AWS.
2015-02-04 13:42:03 -08:00
Ignasi Barrera fa8b9e2332 Fix location assignment in SoftLayer VirtualGuestToNodeMetadata 2015-02-04 18:07:39 +01:00
Ignasi Barrera acd06b3024 JCLOUDS-462: Fix AWSEC2TemplateBuilderLiveTest 2015-02-04 11:04:18 +01:00
Ignasi Barrera 9a8a604bac Added C4 instance types 2015-02-04 11:04:18 +01:00
Zack Shoylev 99d0fcaaad Fixes the metadata to specify Ubuntu by default. 2015-01-30 12:30:52 -06:00
Aled Sage bdfd1facb9 JCLOUDS-529: fix aws-ec2 cleanupIncidentalResources
- Some users get a DependencyVioloation, rather than InvalidGroup.InUse,
  when attempting to delete the security group. This caused
  cleanupIncidentalResources to propagate an exception.
- Fixes it by converting this to an IllegalStateException (in same
  way as is done for “InUse”)
- Adds tests (using MockWebServer) for happy-path and for failing
  to delete the security group with each of InUse and DependencyViolation
  responses.
- Adds Timeouts.cleanupIncidentalResources
- Use that timeout in EC2, when retrying the deletion of security group
  on VM deletion (previously hard-coded as 3 seconds).
- Configure that timeout in the tests, so deterministic number of retries
2015-01-30 11:07:25 +01:00
Zack Shoylev ee9c269aea Fixes some missing cloudservers locations iso codes: "US-IL", "US-TX", "US-VA", "AU-NSW", "HK" 2015-01-29 20:16:52 -06:00
Zack Shoylev 4db8b2360b Fixes a missing image. Test now tries to match image by name. 2015-01-29 18:26:20 -06:00
Andrea Turli b75b0c28d6 JCLOUDS-813: fix list private images
modify the listImages and getImage strategies in SoftLayerComputeServiceAdapter
add support for VirtualGuestBlockDeviceTemplateGroupApi getObject
remove PROPERTY_SOFTLAYER_INCLUDE_PUBLIC_IMAGES
add Expect and Live tests for VirtualGuestBlockDeviceTemplateGroup.getObject
2015-01-29 12:48:20 +01:00
Andrew Kennedy 9e1d1cbfa9 Fix Softlayer template options to return correct type and set disk types even if no block device configured 2015-01-28 09:30:57 +01:00
Andrew Gaul 3ab2716a7a Skip tests which cannot run on Azure 2015-01-24 13:42:27 -08:00
Andrew Gaul af1a01a0af JCLOUDS-96: Handle us-standard in testAllLocations 2015-01-23 19:24:44 -08:00
Andrew Gaul c770ffbeb0 Use sorted set to order relative paths correctly 2015-01-22 11:37:46 -08:00
Andrew Gaul fae097e144 JCLOUDS-654: Add object size to StorageMetadata
This allows callers to read the content length during container
listing.  Tested against: atmosonline, aws-s3, azureblob, filesystem,
and transient.  Intentionally not implemented for legacy swift
provider.
2015-01-09 22:34:56 -08:00
Andrew Gaul 317089c77e Remove tests duplicated by testPut 2015-01-09 21:59:25 -08:00