Commit Graph

922 Commits

Author SHA1 Message Date
Andrew Gaul b47860afc1 Use inference to elide duplicated type parameters
Found with:
grep 'Builder.*<.*>.*Immutable.*<.*>.*builder();'
2012-04-08 22:32:04 -07:00
Adrian Cole c1dd80f9b3 openstack-nova-ec2 errors on authorizing security group to itself, and also needs to auto-allocate elastic ips 2012-04-05 18:15:39 -07:00
Adrian Cole 00c7179f72 moved cacheloaders to the correct package 2012-04-05 17:42:06 -07:00
Adrian Cole bae742befe default to allocate elastic ips on openstack-nova-ec 2012-04-05 16:56:15 -07:00
Adrian Cole 03028338df PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSetTest 2012-04-05 14:15:34 -07:00
Adrian Cole 94edcbf00d Merge pull request #541 from dhogan/security-group-delete
fix Accept header in delete
2012-04-04 22:39:45 -07:00
Dirk Hogan 12e8a366fc fix Accept header in delete 2012-04-04 16:44:06 -07:00
Tim Miller 59aa198fa7 fix (unused) createImage http body in 404 test. 2012-04-04 16:27:22 -07:00
Tim Miller c8939ac0da add tests for createImage, switch argument order. 2012-04-04 16:09:34 -07:00
Tim Miller 3cab636f29 remove unused import statements. 2012-04-04 11:48:05 -07:00
Tim Miller 4771fafe48 create an image from a nova vm instance. 2012-04-04 11:42:39 -07:00
Adrian Cole 6f6b958aad Issue 888, 895: temporary workaround to stop openstack-nova-ec2 from using # characters 2012-04-03 00:34:58 -07:00
Adrian Cole f70ef81828 Issue 895:add openstack-nova-ec2 api 2012-04-03 00:06:24 -07:00
Adrian Cole 128a906104 Issue 895:add openstack-nova-ec2 api 2012-04-03 00:06:00 -07:00
Adrian Cole 3923e78b9a Issue 896:ec2 doesn't pay attention to api version property 2012-04-02 22:24:59 -07:00
Adrian Cole 764e0907f7 Issue 657:ApiMetadata 2012-04-01 18:43:31 -07:00
Adrian Cole 9d2aca696b fixed keypair on nova and added test 2012-03-29 15:12:19 -04:00
Adrian Cole 49e475edcd Issue 888: consolidate code that addresses naming conventions, using hyphen as default delimiter 2012-03-28 03:37:54 -04:00
Adrian Cole 5c6ce9f081 organize imports 2012-03-28 03:37:48 -04:00
Adrian Cole 343470d0a5 removed deprecated RunScriptOptions & TemplateOptions 2012-03-28 03:37:43 -04:00
Adrian Cole 025396be37 added new properties object 2012-03-28 03:37:41 -04:00
Adrian Cole e46cef9fbb passwordAuthentication is now default for keystone 2012-03-28 03:37:40 -04:00
Adrian Cole c56043db08 refactored properties objects to be consistent w/keystone 2012-03-28 02:30:04 -04:00
Adrian Cole ed1864e810 toString tidies 2012-03-23 13:09:13 -07:00
Adrian Cole 91ccba370b cleaned up error handler in swift 2012-03-23 00:37:33 -07:00
Adrian Cole c3dd362b4b Issue 814:recreate nova api as openstack-nova 2012-03-22 21:42:22 -07:00
Adrian Cole 2ae849dd94 Issue 883:Allow login credentials by osfamily to be specified per-provider 2012-03-22 12:39:48 -07:00
Adrian Cole 2373f89c78 cleaned up toString/equals/hashCode in base options objects 2012-03-21 19:11:49 -07:00
Richard Downer 8c3cdece6e CloudStack pom.xml needs to pass the globalAdminIdentity/Credential properties to integration(live) tests, otherwise several tests will fail because they don't have global administrator access. 2012-03-21 13:04:26 +02:00
Adrian Cole 489777e872 Issue 878: cloudstack locations are zones, not regions 2012-03-20 11:35:49 -07:00
Andrew Gaul e2417605a2 Prefer Guava.nullToEmpty and HttpUtils.nullToEmpty
Make HttpUtils.valueOrEmpty static and change method name to
nullToEmpty to mimic Guava.
2012-03-19 20:48:52 -07:00
Andrew Gaul 74862d7321 Prefer ImmutableCollection over mutable array
Also static.
2012-03-19 19:04:42 -07:00
Andrew Gaul bd2623fc49 Use correct logging format 2012-03-19 17:28:43 -07:00
Adrian Cole 74891be16f no need to check for writable catalog on vcloud 1.5 2012-03-15 22:39:34 -07:00
Adrian Cole 0365e58566 Issue 873:NPE on InstantiateVAppTemplate 2012-03-15 22:38:46 -07:00
Adrian Cole a1fbb00da6 Issue 871: only providers can have null parent 2012-03-15 14:47:12 -07:00
Andrei Savu 225b2a3d46 Reuse existing network for vlan IP range test if available 2012-03-15 15:56:31 +02:00
Andrei Savu 6192926b28 Register the public key before running the tests 2012-03-15 15:56:24 +02:00
Andrei Savu b1ba624707 Only select networks with isDefault(true) for tests 2012-03-15 15:56:13 +02:00
Andrei Savu ffec085287 Added firewallrule as a valid response for async jobs 2012-03-15 15:56:04 +02:00
Alex Heneveld 2523d74ad1 correct guice injection for cloudstack ComputeServiceAdapterLiveTest 2012-03-15 15:55:41 +02:00
Andrei Savu 89aefec026 Decode both the key and the value when parsing the request URI 2012-03-15 15:54:37 +02:00
Andrei Savu 525506930f Added missing job result types to map 2012-03-14 17:12:38 +02:00
Andrei Savu b9dc387ab4 Do not fail test if we have only the ROOT domain 2012-03-14 17:12:29 +02:00
Andrei Savu 1c8e09264c Use enum for protocol assertion in live tests 2012-03-14 17:12:18 +02:00
Andrei Savu 6f0b420a1d The percentage of used capacity can be 0 in test 2012-03-14 17:12:00 +02:00
Adrian Cole 3ebdb89e1d template changes in cloudsigma 2012-03-13 14:43:37 -07:00
Aled Sage 1ea877354b Issue 445: retry EC2ComputeService.cleanUpIncidentalResources due to failure if done too soon after last VM terminates! 2012-03-13 12:45:37 +00:00
Adrian Cole 67d70fae62 state bug 2012-03-12 19:45:35 -07:00
Chris Strand 8272352f9b Log level of debug for the various parse methods 2012-03-11 00:05:04 +00:00
Adrian Cole 38de846947 Issue 859:AWS EC2 Updates: New Medium Instance, 64-bit Ubiquity 2012-03-08 10:52:56 -08:00
Fabian Steeg 474aa52da9 If group name can't be parsed from a group ID, try the key name
When the security group is not generated by jclouds (e.g. when
using a custom group, or when in a VPC which generally requires
its own security groups), the group name to launch nodes into is
lost, since it is parsed from the generated security group ID.

This patch introduces a very local workaround: try to parse the
name from the key name, which if generated by jclouds has a format
that is very similar to the generated security group ID.

While probably not the ideal solution for persisting the group
name either (using user metadata might be), this fixes a blocking
issue for scenarios where you can't use a generated security group
ID (using a VPC in our case), but you can use a generated key pair
name.

Also it shouldn't interfere with existing usage: if a name can be
parsed from the security group, that is used, and if the key name
is not generated, the behaviour remains as it currently is (group
name is null if it can't be parsed from the security group).
2012-02-29 16:27:42 +01:00
Adrian Cole dadd4f6515 changed bindings that imply i/o to Supplier<X> 2012-02-26 13:54:43 +02:00
Adrian Cole fa7f81c4e7 Issue 847:version updates 2012-02-23 15:11:05 +02:00
Adrian Cole 636c3bb6e5 Issue 357:Init script should check for errors + herefile fixes + script events 2012-02-19 01:53:19 +02:00
Ioannis Canellos 5490b3068c [842] Added required import packages to cloudfiles api bundle. Improved import packages in all bundles. 2012-02-17 00:49:39 +02:00
Adrian Cole ed7b8895e6 Issue 840:remove compute.clj and blobstore.clj 2012-02-15 14:55:26 +01:00
Adrian Cole 2332662a90 move to using AtomicReference for retryable predicates saves at least one network call on re-fetch 2012-02-14 23:22:24 +01:00
Adrian Cole 3e5e09f406 formatting bug when image not found 2012-02-14 23:22:24 +01:00
Andrei Savu 9f14503cf6 Use the regular API endpoint for registerUserKeys 2012-02-12 09:18:08 +02:00
Andrew Donald Kennedy b2cc1f6b38 Updating ISO8601 time zone parsing and tests 2012-02-10 14:46:00 +00:00
Andrei Savu 5dbaf0ceb2 Replace EncryptedPassword with a plain old String 2012-02-09 17:44:12 +02:00
Andrei Savu 7ea0e8629f Fixed and improved live tests for SSHKeyPairClient 2012-02-09 16:16:26 +02:00
Andrei Savu 5856f466e4 Fixed double query parameter & URL encoding / decoding bugs 2012-02-09 16:04:45 +02:00
Andrei Savu ebfecc672a Added a few more tests and update ReEncodeQueryWithDefaultURLEncoderTest so that it fails 2012-02-09 14:25:04 +02:00
Andrei Savu 88465a3eba Added password decryption functionality for Windows hosts 2012-02-09 12:28:06 +02:00
Andrei Savu 6704bed6dd Implemented getEncryptedPasswordForVirtualMachine 2012-02-09 11:41:26 +02:00
Andrei Savu 8524022e50 Work in progress on fixing registerSSHKeyPair and implementing getPasswordForVirtualMachine 2012-02-09 01:12:37 +02:00
Andrei Savu 4a5cd6539e Session renew should fail after a limited number of failed attempts 2012-02-06 16:16:31 +02:00
Andrei Savu 068647955a Re-authenticate on CloudStack session expiration 2012-02-06 09:21:04 +02:00
Adrian Cole fe4d148528 updated current version to 1.5.0-SNAPSHOT 2012-02-04 11:06:07 -08:00
Adrian Cole 68e657fb4e fixed typo 2012-02-04 10:40:50 -08:00
Andrei Savu 4ed8f8f85e Renamed getPasswordData to getPasswordDataInRegion & fixed broken unit tests 2012-02-04 20:18:50 +02:00
Richard Downer 27aaafe139 Test to demonstrate getting the Windows Administrator password 2012-02-04 19:46:53 +02:00
Richard Downer c665eb6a6b Add a function that decrypts the Windows Administrator password generated by Amazon and returns a LoginCredentials instance. 2012-02-04 19:46:53 +02:00
Richard Downer a50c092836 Add the EC2 API call "GetPasswordData" to retrieve the encrypted Windows Administrator password. 2012-02-04 19:46:52 +02:00
Richard Downer 7c9fb31d0f EC2ImageParser was not setting the name 2012-02-04 19:46:52 +02:00
Aled Sage ab568f0a09 Issues 364 and #365: destroyNode cleans up incidental resources 2012-02-04 15:40:31 +00:00
Adrian Cole ae1effd748 made openstack multi-region, and now select correct endpoint via apiversion property 2012-02-04 00:51:44 -08:00
Adrian Cole c388fc41b4 Issue 826: removed eager supplier of @Provider endpoint 2012-02-03 13:51:26 -08:00
Adrian Cole 3e9c566edc aws related changes for issue 826 2012-02-03 00:29:41 -08:00
Adrian Cole 1756ff0358 atmos related changes for Issue 826 2012-02-03 00:29:39 -08:00
Adrian Cole 65b75ecb64 filesystem related changes for Issue 826 2012-02-03 00:29:39 -08:00
Adrian Cole d8c2575e62 deltacloud related changes for Issue 826 2012-02-03 00:29:38 -08:00
Adrian Cole d4dc44dbaf cloudstack related changes for Issue 826 2012-02-03 00:29:38 -08:00
Adrian Cole 38fd18e8f0 cloudsigma related changes for Issue 826 2012-02-03 00:29:37 -08:00
Adrian Cole 61854bf51c elasticstack related changes for Issue 826 2012-02-03 00:29:37 -08:00
Adrian Cole dc78a443de vcloud related changes for Issue 826 2012-02-03 00:29:31 -08:00
Adrian Cole e759c6a450 openstack and rackspace related changes for Issue 826 2012-02-03 00:29:27 -08:00
Adrian Cole bdd739ad04 Issue 826:support api-generated location metadata across service types, note this ensures authenticationexceptions propagate even after context creation 2012-02-03 00:27:29 -08:00
Andrei Savu 8ce2fdaafb Assert template size is >0 in CloudStack 2012-02-02 16:02:13 +02:00
Adrian Cole e6c06e0cd0 removed cycle in cloudstack binding 2012-02-01 09:52:14 -08:00
Andrei Savu c3da0021d8 Cleanup per Adrian's comments & fixed broken unit test 2012-02-01 19:09:49 +02:00
Andrei Savu 19cb82a26e Use endpoint from parent class 2012-02-01 18:35:53 +02:00
Andrei Savu c10680647c Fixed live test + added missing expect test for logout 2012-02-01 18:33:33 +02:00
Andrei Savu 782872ac33 Live test for user/password based authentication 2012-02-01 17:56:53 +02:00
Andrei Savu 4a071a7d26 Disable binding for RetryOnRenewAndLogoutOnClose. I think it creates a Guice cycle 2012-02-01 16:37:08 +02:00
Adrian Cole ec104454b1 Issue 825:add means to use login as opposed to signature authentication in cloudstack 2012-01-31 19:53:04 -08:00
Adrian Cole be453c6650 revised session test to be performed offline with expect test and added a couple missing fields 2012-01-31 17:13:51 -08:00
Adrian Cole b3254b31e6 Merge branch 'retrieve-keys' of https://github.com/andreisavu/jclouds
* 'retrieve-keys' of https://github.com/andreisavu/jclouds:
  Include the JSESSIONID as part of the LoginResponse
  Added a set of changes as requested by Adrian
  Implemented login / logout APIs
2012-01-31 15:49:37 -08:00
Adrian Cole 4bcea6fa23 fixed case on keystone 2012-01-31 13:01:20 -08:00
Andrei Savu d209388d64 Collect all IP addresses before building the NodeMetadata object 2012-01-31 17:59:26 +02:00
Andrei Savu c34aaa50b5 Include the JSESSIONID as part of the LoginResponse 2012-01-31 15:06:29 +02:00
Andrei Savu 2b8e2a4c01 Added a set of changes as requested by Adrian 2012-01-31 15:06:29 +02:00
Andrei Savu b6d106c7a1 Implemented login / logout APIs 2012-01-31 15:06:28 +02:00
Adrian Cole abeffc1119 Issue 824:add field for hypervisor 2012-01-30 22:52:35 -08:00
Adrian Cole 55975af60d Issue 820:Move off PropertiesBuilder for rocoto 2012-01-29 23:11:37 +08:00
Adrian Cole bf4b6e8c95 Issue 823:migrate rackspace services to authenticationservice 1.1 2012-01-29 23:11:23 +08:00
Adrian Cole f93c495c43 refactored to use consistent setup*Properties methods like expect tt tests 2012-01-29 20:36:24 +08:00
Andrei Savu bf02dd918b Merge pull request #339 from richardcloudsoft/cs-vlan
Implement the Cloudstack "Vlan" API
2012-01-27 16:08:07 -08:00
Richard Downer 2660497807 Add create/deleteVlanIPRange() 2012-01-26 14:33:41 +02:00
Richard Downer b15a258fde Add listVlanIpRanges() and getVlanIpRange() 2012-01-25 14:25:27 +02:00
Richard Downer 9ca399049a Add empty Vlan[Async]Client module and tests 2012-01-25 14:15:36 +02:00
Richard Downer 710efb5842 Add VlanIPRange domain object and parser test 2012-01-25 14:14:10 +02:00
andreisavu 8489cc4e05 Unit test for VolumeDetached predicate 2012-01-24 19:47:25 +02:00
karthikarun fd01759c8a Added new VolumeDetached predicate for EBS support 2012-01-24 17:50:06 +02:00
Christophe Hamerling 88c85a8c49 Be able to define adminPass when creating a server 2012-01-23 15:16:33 +01:00
Christophe Hamerling 5c0ca0b7c1 Add access IPs in Server 2012-01-20 12:28:14 +01:00
Richard Downer 36fd32b08e Add updatePod 2012-01-18 16:52:23 +00:00
Richard Downer 0821b02726 Add createPod and deletePod 2012-01-18 16:52:22 +00:00
Richard Downer dea284fbb3 Add listPods API call, with supporting Pod domain object and unit tests. 2012-01-18 16:52:18 +00:00
Richard Downer e136c73739 Add GlobalPodClient (empty classes only) 2012-01-18 16:52:18 +00:00
Richard Downer 2e8757af9c Refactor Host and Zone to share a common AllocationState enum type 2012-01-18 16:52:17 +00:00
Adrian Cole 2680460b9a Merge pull request #324 from iocanel/master
Compute Apis & Providers need tuning in their OSGi package imports.
2012-01-18 07:53:22 -08:00
Ioannis Canellos cfe88031a2 Updated OSGi package imports for compute providers & apis. 2012-01-18 15:02:16 +02:00
Christophe Hamerling 9090625b78 Change List to Set in CreateServerOptions and Server 2012-01-17 09:51:47 +01:00
Christophe Hamerling 61ff64c8ce Merge remote-tracking branch 'upstream/master' 2012-01-16 23:50:24 +01:00
Christophe Hamerling 134b65dbc6 Introduce Security Groups support to Nova 2012-01-16 23:48:15 +01:00
Adrian Cole 721c7274a4 Merge pull request #318 from andreisavu/zone-api
Implemented Zone API for Global Admin
2012-01-16 13:41:55 -08:00
Adrian Cole 3df052565f updated current version to 1.4.0-SNAPSHOT 2012-01-16 13:08:32 -08:00
andreisavu e978e01a1d Implemented Zone API for Global Admin 2012-01-16 22:54:46 +02:00
andreisavu 88400f6441 Add TemplateOptions to create SSD Drives on CloudSigma providers 2012-01-15 21:58:12 +02:00
Adrian Cole 63320f15b6 Issue 731: unravel dependency cycle to only use interfaces 2012-01-15 11:30:22 -08:00
Adrian Cole 0b40a3b280 hostname is the same as vm name in vCloud 2012-01-15 02:14:57 -08:00
Adrian Cole 87ced325e1 Issue 710: support vCloud Director 1.5 via vCloud 1.0 API 2012-01-15 02:14:53 -08:00
Adrian Cole 16a973c08c handle case when image location is null (ex. not scoped to a location)
work on templates where image and hardware have no location

better warning messages on templates we cannot use

lookup images less often in vcloud
2012-01-15 02:12:14 -08:00
andreisavu f27bed524c Putting basic blocks in place for writing Expect tests for aws-s3 2012-01-14 14:05:33 +02:00
Adrian Cole ed52dba743 Merge branch 'master' of github.com:jclouds/jclouds
* 'master' of github.com:jclouds/jclouds:
  Added expect tests for global domain client
  Implemented Domain API for Global Admin
  Implemented Domain API for Domain Admin
2012-01-13 17:22:43 -08:00
Adrian Cole 323303e9ab clarified order in test 2012-01-13 17:22:31 -08:00
Adrian Cole f5c75e0608 Merge pull request #314 from andreisavu/domain-api
CloudStack Domain API
2012-01-13 13:01:49 -08:00
andreisavu eb0e11689b Added expect tests for global domain client 2012-01-13 22:02:27 +02:00
Adrian Cole 2d4e385e1f Merge pull request #312 from chamerling/master
Adding keyname when creating server and some floating IPs related methods
2012-01-13 09:30:23 -08:00
andreisavu 23ce896dd2 Implemented Domain API for Global Admin 2012-01-13 17:37:25 +02:00
andreisavu e608674f93 Implemented Domain API for Domain Admin 2012-01-13 16:11:27 +02:00
Christophe Hamerling 6c47f43a98 Fix comments and add keyName field in Server class 2012-01-13 12:30:57 +01:00
Adrian Cole ea81b058a4 Issue 710: added expect test for vCloud 2012-01-12 19:24:30 -08:00
Adrian Cole c964b207a7 Issue 710: public templates are now readable 2012-01-12 19:23:39 -08:00
Adrian Cole 61f2ff6468 vcloud director 1.5 adds suffix of ;1.0 on content type 2012-01-12 19:06:06 -08:00
Adrian Cole 260c23170b Issue 710:customize is not supported on vCloud 1.0 2012-01-12 19:04:12 -08:00
Adrian Cole 912635e454 authorization exception is now gone 2012-01-12 18:03:39 -08:00