This changes creates one resource group for each location, instead of having
one fixed resource group. Without this change it is not possible to use one
single jclouds context to deploy nodes in different locations, because it will
attempt to create the same resource group in each region.
Resource groups are created in the form `-`, where the
prefix can be configured when creating the context with the usual jclouds
property `ComputeServiceProperties.RESOURCENAME_PREFIX`. This way, the creation
of the resource group will follow the same pattern that other resources that
are created using the group naming convention (although resource groups will
have always the location name as a suffix).
Still pending to run the complete live test suite, so please, do not merge yet.
/cc @andreaturli
You can view, comment on, or merge this pull request online at:
https://github.com/jclouds/jclouds-labs/pull/326
-- Commit Summary --
* Create one resource group in each region
-- File Changes --
M
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/AzureComputeProviderMetadata.java
(6)
M
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/AzureComputeServiceAdapter.java
(70)
M
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/config/AzureComputeServiceContextModule.java
(110)
M
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/extensions/AzureComputeImageExtension.java
(24)
A
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/functions/LocationToResourceGroupName.java
(46)
M
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/functions/ResourceDefinitionToCustomImage.java
(15)
M
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/functions/VirtualMachineToNodeMetadata.java
(16)
M
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/compute/strategy/CreateResourceGroupThenCreateNodes.java
(12)
M
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/config/AzureComputeProperties.java
(2)
A
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/domain/RegionAndId.java
(50)
M
azurecompute-arm/src/main/java/org/jclouds/azurecompute/arm/functions/CleanupResources.java
(38)
M
azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/compute/AzureComputeServiceLiveTest.java
(4)
M
azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/compute/AzureTemplateBuilderLiveTest.java
(4)
M
azurecompute-arm/src/test/java/org/jclouds/azurecompute/arm/compute/extensions/AzureComputeImageExtensionLiveTest.java
(4)
-- Patch Links --
https://github.com/jclouds/jclouds-labs/pull/326.patch
https://github.com/jclouds/jclouds-labs/pull/326.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/326