Commit Graph

133 Commits

Author SHA1 Message Date
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 636c3bb6e5 Issue 357:Init script should check for errors + herefile fixes + script events 2012-02-19 01:53:19 +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 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 abeffc1119 Issue 824:add field for hypervisor 2012-01-30 22:52:35 -08:00
Adrian Cole f93c495c43 refactored to use consistent setup*Properties methods like expect tt tests 2012-01-29 20:36:24 +08: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
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
Adrian Cole c151e5bdd7 Issue 730: last deprecated methods scheduled for removal in 1.3 2012-01-10 18:10:55 -08:00
Adrian Cole f3f56463b4 centralized RestContext<S,A> binding 2012-01-10 12:21:25 -08:00
Adrian Cole e46ee9fbc4 Issue 807:update license headers 2012-01-09 10:54:57 -08:00
Adrian Cole 99fb37f6cf refactored LiveTest code to share property initialization 2012-01-05 17:51:03 -08:00
Adrian Cole 42137677da Issue 801:fix inconsistency in test property test.provider.apiversion set in pom.xml -> api-version 2012-01-05 13:09:45 -08:00
Andrew Phillips d3ab85918e Updated explanation of a potentially unexpected cast to refer to the JDK bug that necessitates it 2012-01-05 15:31:44 -05:00
Andrew Phillips 1ba75f623f [issue 795] Fixing a compilation failure in EC2ListNodesStrategy - looks like something happened with generic casts between Java 6 and 7 (see http://stackoverflow.com/questions/8637937/why-does-a-generic-cast-of-a-list-extends-set-to-listset-succeed-on-sun) 2011-12-26 21:17:40 +00:00
Adrian Cole 3a8ea09fb9 missing commits 2011-12-22 02:23:20 -08:00
Adrian Cole 20f3e52731 Merge branch 'master' of https://github.com/grkvlt/jclouds
* 'master' of https://github.com/grkvlt/jclouds:
  The describeAddressesInRegion call returns empty set on not found, not exception
  PublicIpInstanceIdPair has different id format to node
  Issue 757: Remove old public IPs when associating  elastic IP addresses
2011-12-21 03:46:00 -08:00
Andrew Donald Kennedy 979d9ba046 The describeAddressesInRegion call returns empty set on not found, not exception 2011-12-21 11:13:46 +00:00
Andrew Donald Kennedy ee0bade6ad PublicIpInstanceIdPair has different id format to node 2011-12-21 11:05:29 +00:00
Andrew Donald Kennedy ddbf39e4a6 Issue 757: Remove old public IPs when associating elastic IP addresses 2011-12-21 10:51:35 +00:00
Adrian Cole f9b38f646c Issue 730: removed deprecated methods from ComputeService RunScript/TemplateOptions SshClient.Factory and replaced occurences of Credentials with LoginCredentials whereever possible 2011-12-20 23:19:45 -08:00
Adrian Cole 29809d6e09 should cleanup after test 2011-12-19 02:39:07 -08:00
Adrian Cole 6bac1db9fb typos 2011-12-19 01:52:42 -08:00
Adrian Cole bf99fb10a0 Issue 757: refactor elastic ip auto-allocation approach and backfill related tests 2011-12-19 01:46:19 -08:00
Jan Paral 1f095fda4a Issue 757: Auto allocate Elastic IPs and deal with empty tags in describe security groups response 2011-12-18 16:47:13 -07:00
Adrian Cole e942d58fa7 Merge pull request #254 from grkvlt/master
Issue 779: Fix password/privateKey override issues with providers
2011-12-18 13:37:09 -08:00
Andrew Donald Kennedy 31d3fe483f Issue 769: Make password and privateKey optional for LoginCredentials 2011-12-17 14:08:49 +00:00
Adrian Cole beb87a2131 Issue 781:update to guava 11.0-rc1 2011-12-14 23:56:50 -08:00
Adrian Cole 40d2abbac5 Issue 780:add new sa-east-1 region 2011-12-14 22:42:32 -08:00
Aled Sage 44df7b0d69 Issue 763: deleted testTemplateBuildsFasterByImageIdThanBySearchingAllImages 2011-12-13 22:42:14 +00:00
Aled Sage d32bbc18c4 Issue 763: moved testTemplateBuildsFasterByImageIdThanBySearchingAllImages, from EC2ComputeServiceLiveTest to EC2TemplateBuilderLiveTest; disabled in eucalyptus-partner-cloud 2011-12-13 22:42:13 +00:00
Aled Sage f140688077 Issue 763: added EC2TemplateBuilderLiveTest to assert httpCommands don't fetch all images 2011-12-13 22:42:13 +00:00
Aled Sage 094e537488 Issue 763: cache loader does not reload after AuthorizationException 2011-12-08 10:22:26 -08:00
Aled Sage dad5356991 Issue 763: Supplier<Set<Image>> for EC2 returns set backed by on-demand cache if ami-owners is empty 2011-12-08 10:22:26 -08:00
Aled Sage 741773f9ab Issue 763: set image cache expiry using PROPERTY_SESSION_INTERVAL 2011-12-08 10:22:26 -08:00
Aled Sage a45e16ebb3 Issue 763: code tidy, to use new ImagesToRegionAndIdMap.imagesToMap(Set<Image>) 2011-12-08 10:22:26 -08:00
Aled Sage 1fb371497b Issue 763: image cache loader: wrap in retry logic; don't memoize cache 2011-12-08 10:22:26 -08:00
Aled Sage 635c420a92 Issue 763: don't retrieve all images when template.imageId supplied 2011-12-08 10:22:26 -08:00
Adrian Cole d81d1680f7 remap public ip to private ip if incorrectly set by ec2 clone api 2011-12-07 13:32:44 -08:00