Commit Graph

1985 Commits

Author SHA1 Message Date
Ignasi Barrera cd7b3b9b36
Proper exception to catch for methods with unchecked exception 2019-06-17 09:59:17 +02:00
Ignasi Barrera 215df85105
Fix type of location coordinates (#36) 2019-06-15 09:01:13 +02:00
Aliaksandra Kharushka f5806d0488 JCLOUDS-1428: Support for SAS token based Authentication for Azure Blob Storage
removed ACL check for SAS Auth AzureBlobs
2019-05-27 22:05:12 +09:00
Daniel Estévez 8778a3d254 Implements listAll operation for VirtualNetworkAPI (#33)
* Implements listAll operation for VirtualNetworkAPI

Fixes test with proper method call

* Fixes resourcegroup param is now nullable
2019-05-22 09:12:58 +02:00
Daniel Estévez 32c773279f Implements listAll method for LoadBalancersAPI (#32) 2019-05-21 11:49:11 +02:00
Daniel Estévez e0be4d7b27 Implements listAll method in NetworkSecurityGroupApi (#31)
* Implements listAll method in NetworkSecurityGroupApi

* Adds Mock and Live tests for new method
2019-05-21 11:48:07 +02:00
Daniel Estévez f2e955dadf Adds methods listAll and listByLocation to VirtualMachineAPI (#21)
* Adds methods listAll and listByLocation to VirtualMachineAPI

Adds Mock tests fixes

* Minor comments

* Overrides test to avoid case sensitive comparation

* Adds comment to justify overriding base test method

* Enables list by location to improve performance in listNodes abstraction

* Returns all available VMs if no regions are specified
2019-05-17 09:41:38 +02:00
Daniel Estévez e1c64244cb Checks provisioning state in Rule resource instead of Group (#30)
* Checks provisioning state in Rule resource instead of Group

* comments by @nacx to proper check and delete rules

* Fixes log message deleting rule
2019-05-17 08:59:01 +02:00
Sergi Castro 3e855c26be
Add ARM architecture to ec2 image and the related instance types 2019-05-14 09:00:31 +02:00
Olaf Flebbe 92a3c68838 JCLOUDS-1497: Fix checkstyle-suppressions for jcloud-labs (#27)
* Fix NoWhitespaceBefore Checkstyle Violation

* checkstyle updates: remove suppressionsfilter from checkstyle.xml

* suppressions now done in maven-checkstyle-plugin
2019-05-07 11:49:54 +02:00
Dori Polotsky 1c57d07f70 JCLOUDS-847: Poor upload performance for putBlob
This change improves the performance of writing to sockets with the
default Java URL connection HTTP client, by enlarging the buffer used
for socket writes from an implicit hard-coded 4KB / 8KB buffer to a
configurable 32KB buffer.

The buffer size is now controlled by the following property with the
following default value:

jclouds.output-socket-buffer-size: 32768

The implementation is based on a variant of ByteStreams.copy (written as
ByteStreams2.copy) which accepts the buffer size as an argument, unlike
the original Guava code that uses a hard-coded size.

The change was done directly within the loop that copies the input
stream to the output stream, and not by wrapping a BufferedOutputStream
around the existing output stream, in order to avoid copying the payload
twice.

On some platforms this change can improve both the putBlob throughput
and the total CPU consumption.
2019-04-27 15:16:08 +09:00
Andrew Gaul a1c9ce8217 JCLOUDS-1494: Add S3 Deep Archive tier
Also test Glacier tier now that Amazon allows creating objects with
this storage class.
2019-04-06 18:46:14 +09:00
Dani Estevez c2670079fa Adds new Azure regions for South Africa 2019-03-21 11:37:50 -04:00
d065488 ba5a2418a5 JCLOUDS-1428 - Support for SAS token based Authentication for Azure Blob Storage - removed sp and se tokens from the check 2019-03-19 22:28:41 +09:00
Dani Estevez 6fda1736ad Adds EU North 1 region (Stockholm) 2019-03-15 12:00:20 -04:00
Dani Estevez 1c9322e41c Adds China North West Region (Ningxia) 2019-03-15 12:00:20 -04:00
Aliaksandra Kharushka ba1504b38e [JCLOUDS-1428] Support for SAS token based Authentication for Azure Blob Storage (#1270) 2019-02-27 12:21:10 +01:00
Andrew Gaul 8eae27c98d Make interfaces with only statics into classes
This prevents instantiation.  Found via error-prone 2.3.3.
2019-02-23 16:34:11 +09:00
Andrew Gaul 53c47aa0bd Correct uses of checkNotNull
These should provide a descriptive second argument, not the same as
the first argument which is null in the failure case.  This also found
a logic error in CreateVolumeResponseHandler.
2019-02-23 16:33:40 +09:00
Andrew Gaul 7e2723c9a4 JCLOUDS-1452: Add missing b2 test field
Fixes regression from 9524383e49.
2019-01-01 11:10:59 -08:00
Andrew Gaul 9524383e49 JCLOUDS-1452: Add new v2 fields
Some of these only give consistency with similar requests.
2018-12-31 19:39:37 -08:00
Andrew Gaul a0f496e5ec JCLOUDS-1452: Remove Authorization.minimumPartSize
Superseded by absoluteMinimumPartSize and recommendedPartSize.
2018-12-31 18:47:38 -08:00
Andrew Gaul 750809f97f JCLOUDS-1452: Replace size with contentLength
Tracking B2 v2 API changes.
2018-12-31 18:47:38 -08:00
Andrew Gaul ce163f3498 JCLOUDS-1452: Switch to B2 v2 API
Some cleanups but no major changes:

https://www.backblaze.com/blog/backblaze-b2-api-version-2-beta-is-now-open/
2018-12-31 18:47:38 -08:00
Dani Estevez d621edd79f [JCLOUDS-1474] Adds SKU field to both LB and PublicIP
Changes order in parameters to keep properties as last parameter
Removes wrong @Nullable parameters

Moves LoadBalancer and PublicAddress to new package with SKU as inner
class

Moves LoadBalancerSKU inside LoadBalancer. Creates new loadbalancer package

Refactors PublicAddress domain objects

Extracts SKU from LoadBalancer

LoadBalancer SKU as inner class

PublicIPAddress SKU as inner class

Reorder parameters sku and properties
2018-12-28 16:55:35 -05:00
Simone Locci 2d9bb93427 Fix azure listNodes 2018-12-28 16:16:37 -05:00
Andrew Gaul 33d3266205 Enable B2 testCopy* tests
Backblaze has changed something such that these now pass.
2018-12-19 10:16:20 -08:00
Andrew Gaul 4cc4e1d76c Correct B2 SkipException for testPutObjectStream 2018-12-19 03:22:52 -08:00
Andrew Gaul a6cb6cde29 JCLOUDS-1477: Upload single part for small B2 MPU
B2 requires two parts to use multi-part upload but jclouds will
attempt to use one with small uploads.  Instead it should fall back to
single-part when the content length is small.
2018-12-18 22:42:01 -08:00
kraza 5916059be9 JCLOUDS-1467
Added support for c5d & m5d AWS nodes.

JCLOUDS-1467
Updated the SSD drive information.
2018-12-03 17:22:46 -05:00
Dani Estevez 8e827d595e Adds method listAvailableSizes to VirtualMachineApi
Updates API version for VirtualMachineApi
2018-11-20 12:30:14 -05:00
filecatalyst bbb41b4590 JCLOUDS-1464: Update Google Cloud Storage regions
Added missing regions.  For reference:
https://cloud.google.com/storage/docs/bucket-locations
2018-10-30 11:18:08 -07:00
Trent Schmidt 219e2958d7 JCLOUDS-1460: Adding instances to AWS 2018-10-24 14:42:46 -04:00
Ignasi Barrera 9dd50b39c9 JCLOUDS-1463: Do not return MachineTypes from zones that are not available for deploy 2018-10-24 09:20:22 +02:00
Mahmoud Ismail f7b83f4563 Mark sourceImage as Nullable 2018-10-18 11:27:58 +02:00
Andrew Gaul cc65957997 Error-prone 2.3.2 fixes 2018-10-12 23:28:00 -07:00
smedavaram75 17cf6fec9e JCLOUDS-1419: Add missing REGIONAL storage class 2018-09-13 13:28:19 -07:00
David Currie 5803de0f8e Correct failing testUseBucketWithUpperCaseName
As of March 1 2018, bucket names must be DNS compliant in all regions
therefore removing failing test of legacy names in US regions.
2018-09-12 08:01:43 -07:00
Dani Estevez a07ab5a982 JCLOUDS-1441: Enables support for ARM regions in China
Adds new china regions

Fixes pattern matching for China provider oauth string

Modifies test for oauth string

overrides jclouds.oauth.resource property for tests

Graph and Vault API Endpoints need to be configurable

jclouds.oauth.resource is not mandatory

Adapted Endpoints for APIs GraphRBAC and Vault

Adds unit test for china oauth endpoint check

Minor fix to regular expression
2018-09-06 10:42:47 -04:00
Markus Alexander Kuppe 88f44a6d8e JCLOUDS-1339: Support launching an x1 EC2 instance
https://issues.apache.org/jira/browse/JCLOUDS-1339
2018-08-23 20:25:05 +02:00
Vikas Rangarajan cf67233765 JCLOUDS-1436: Add support for aws ec2 m5 instance types
fix: remove duplicate imports
2018-08-01 17:28:09 -04:00
Vikas Rangarajan 982c6bea02 JCLOUDS-1387: Add support for c5 instance types in AWS ec2 2018-08-01 16:53:06 -04:00
Dani Estevez 92076d6b79 Adds method checkIpAvailability to VirtualNetworkApi
Addresses @nacx comments

Fixed formatter maximum line width. Removed redundantTest
2018-07-13 07:10:28 -07:00
Dani Estevez e45c262ff2 Adds missing virtualMachine field to NetworkInterfaceCardProperties 2018-07-12 09:24:00 -07:00
Dani Estevez 566ac23392 Adds listAll to PublicIPAddressAPI
Adds listAll to NetworkInterfaceCardApi

Addresses comments on tests

Sets resourcegroup pathparam as nullable for NetworkInterfaceCardApi and PublicIPAddressApi
2018-07-12 09:23:27 -07:00
Jesse Glick 34d272ac80
Allow S3ClientLiveTest (and AWSS3ClientLiveTest) to use a session token. 2018-07-11 09:35:34 -07:00
Dani Estevez 1bd3b8f9df Implements VirtualMachineAPI deallocate operation
https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/deallocate

Adds missing mock test
Fixes returning codes from API methods to 202
2018-07-09 10:29:33 -07:00
Ignasi Barrera 975aca5346 Added Virtual Network Gateway Connection API 2018-07-06 10:05:43 +02:00
Ignasi Barrera f572304acc Fix GCE live tests 2018-07-04 15:56:19 +02:00
Ignasi Barrera ea5b899def Added Virtual Network Gateway API 2018-07-03 12:51:15 +02:00
Dani Estevez 39d770ffc3 Adds minor improvements to readability 2018-06-26 09:05:43 +02:00
Dani Estevez 3171e4c79b Checks network availability before working with recently created networks 2018-06-26 09:05:39 +02:00
Dani Estevez 23e783e0cf Adds new Generally Available azure locations for Australia and France 2018-06-26 09:01:20 +02:00
Dani Estevez e4f1823fd5 Fixes/adds fields primary for NetworkInterfaceCardProperties and misplaced in IpConfiguration 2018-06-15 08:56:27 +02:00
Ignasi Barrera ff93565b1d Added Local Network Gateway API 2018-06-11 15:25:25 +02:00
Dani Estevez 9d88f6df5e Adds test for Azure name validator 2018-05-25 09:39:21 +02:00
Dani Estevez 5ee3ae552d Adds new more relaxed validator for Azure entities 2018-05-25 09:39:21 +02:00
Ignasi Barrera b76a594e81 JCLOUDS-1421: Add default credentials to images created by the ImageExtension
By default, when listing images the ComputeServiceAdapter adds the
default credentials for each image. This is not done when images are
created by the image extension, and NPEs can appear in code that assumes
the default credentials are there, as the field is not nullable.

This change tries to populate the known node credentials for images
created form nodes, and falls back to the default strategy to add the
default credentials to an image if there are not known credentials.
2018-05-22 16:30:26 +02:00
Jesse Glick 65a5ec8164 [JCLOUDS-1200] Mark nonserializable fields in HttpResponseException and subtypes as transient. 2018-05-21 22:13:04 -07:00
Andrew Gaul 1f6ec343c0 Upgrade to SpotBugs 3.1.3
This replaces FindBugs.  Also address a few violations.
2018-05-21 22:06:27 -07:00
Dani Estevez a918550e57 Fixes assert for IpPermissions collection 2018-05-17 09:13:25 +02:00
Ignasi Barrera 050f8e73d3 JCLOUDS-1418: Add missing PowerState values 2018-05-15 15:19:49 +02:00
Dani Estevez a08de5b2f1 Sets session interval from 60 seconds to a higher value to avoid problems with cache 2018-05-12 00:42:44 +02:00
Ignasi Barrera b29f716a02
JCLOUDS-1294: Attempt to retry RetryableErrors in Azure ARM 2018-05-04 11:03:43 +02:00
Ignasi Barrera 6a10544b16
Cleanup unused variables 2018-05-04 11:03:43 +02:00
Dani Estevez 7c5927038a Protects from NPE input.getLocation() is nullable 2018-05-04 10:45:51 +02:00
Andrew Gaul f7b4534132 JCLOUDS-1389: add GCS MPU multiregional test 2018-04-21 13:25:00 -07:00
Jim Sermersheim def6db4864 JCLOUDS-1389: When composing, set destination.storageClass from object
This aligns that the destination's storageClass with that of the sub-object(s) being composed
2018-04-20 12:05:58 -06:00
Andrew Gaul 316bce0587 Avoid double brace initialization
These hold an implicit this reference.  Found via error-prone 2.3.0.
2018-04-19 08:43:46 -07:00
Tom McLaughlan 3d188324d5 Allow jclouds to provision SoftLayer instances with a private image. Fix
Bug JCLOUDS-1410.
2018-04-17 17:12:00 +02:00
Andrew Gaul 7db5eb5cd0 JCLOUDS-1400: Honor GCS signed URL content type
Also add GetOptions headers instead of replacing all headers.
2018-04-12 22:43:43 -07:00
Andrew Gaul a35fa4a404 JCLOUDS-1400: Honor Azure signed URL content type 2018-04-12 22:43:43 -07:00
Andrew Gaul f6d47b9c0e JCLOUDS-1333: Fix Java 8 and Guava 21 issues 2018-04-10 08:17:35 -07:00
Felipe L. de Souza b04d2df661 JCLOUDS-1404: Added new Google Storage locations 2018-04-08 21:57:51 -07:00
Andrew Gaul ea6b616faa JCLOUDS-1399: Support S3 One Zone-IA storage class
Also improve test coverage of storage classes.
2018-04-04 21:44:28 -07:00
Ignasi Barrera 64be8f7b1a Fix error code in ProjectApiLiveTest 2018-03-26 15:05:44 +02:00
Andrew Gaul 90fac3b683 JCLOUDS-1271: Remove BlobStore.signRemoveBlob
Most providers never supported this functionality and the portable
abstraction should not have included it.
2018-03-09 20:52:12 -08:00
Alin Dreghiciu 775921cd5d JCLOUDS-1394: Increase Azure max blob size to 256MB 2018-03-09 07:56:59 -08:00
Alin Dreghiciu cbb76523cc JCLOUDS-1391: Sort headers correctly for signing 2018-03-07 22:13:43 -08:00
Alin Dreghiciu f6d95d0fda JCLOUDS-1390: Use FULL projection for list blobs
This avoids a per-object call during detailed listings.
2018-03-07 21:47:44 -08:00
Ignasi Barrera 22cfbb86f2 JCLOUDS-1381: Add unit tests 2018-03-02 08:57:45 +01:00
andreaturli d17487b223 fix typo in project.version
- from 2.2.0-SNAPSHOST to 2.2.0-SNAPSHOT
2018-02-21 16:45:43 +01:00
andreaturli a5db565581 Next development version 2.2.0-SNAPSHOST 2018-02-16 11:23:12 +01:00
andreaturli 9273bd56ad Apache jclouds 2.1.0-rc3 release 2018-02-16 11:20:21 +01:00
Ignasi Barrera 7aed4bc88c JCLOUDS-1381: Fix NPE in GCE DiskURIToImage 2018-02-16 08:30:07 +01:00
Andrew Gaul 88c84af878 JCLOUDS-912: Use simpleUpload in GCS BlobStore MPU
This works around a regression with InputStream payloads that I cannot
track down.  Using simpleUpload instead of multipartUpload is more
optimal since the former avoids creating a multipart form request.
2018-02-10 18:42:36 -08:00
Andrew Gaul 3ab335e776 JCLOUDS-1335: Expect hot when no tier specified
This worked earlier; GetBlobProperties must unconditionally emit the
access tier now that it is out of public preview.
2018-02-08 22:35:49 -08:00
Andrew Gaul 55983819a2 JCLOUDS-1335: Use consistent Azure test version 2018-02-08 22:07:18 -08:00
Ignasi Barrera 5b4f5ee023 Fix ProfitBricks pom 2018-01-17 09:24:27 +01:00
Ignasi Barrera a7383af258 Update pom.xml files after promoting Rackspace Cloud Networks 2018-01-17 09:19:18 +01:00
Ignasi Barrera 68e3dc059b Promote Rackspace Cloud Networks providers 2018-01-17 09:14:54 +01:00
Ignasi Barrera 6fd7c7c38b JCLOUDS-1373: Add eu-west-3 (Paris) AWS region 2018-01-16 14:49:12 +01:00
Ignasi Barrera d50acd5e61 JCLOUDS-1372: Add support for R4 instance types 2018-01-16 12:28:19 +01:00
Ignasi Barrera efeedb4526 Add support for Keystone V3 2018-01-16 09:08:06 +01:00
Ignasi Barrera dd73410d12 Add support for OpenStack Keystone V3
Refactors the Keystone Authentication and Service Catalog classes to a
common model that can be used by V2 and V3 of Keystone. Each version
will have their own Authentication APIs and Service Catalog Suppliers,
and the higher level Keystone Authentication will transparently delegate
to the right API based on the keystone-version property.

OpenStack APIs will just have to define the default keystone-version
property they work with, and declare the generic Keystone Authentication
and Service Catalog modules.

Co-authored-by: Andrea Turli <andreaturli@apache.org>
2018-01-16 09:06:30 +01:00
Ignasi Barrera 3877303ede Update maven coordinates for promoted Azure ARM 2018-01-08 15:11:22 +01:00
Ignasi Barrera cc969052a7 Promote Azure ARM from jclouds-labs 2018-01-08 14:58:45 +01:00
Ignasi Barrera eebcc0017f JCLOUDS-1362: Proper password generation with custom constraints for each cloud 2018-01-08 08:48:37 +01:00
Ignasi Barrera 9fef6ed06b JCLOUDS-1362: Better password generation utility 2018-01-08 08:39:20 +01:00
Jim Spring a2dee2f84c Add Azure KeyVault support 2018-01-04 01:44:48 +01:00