[jira] [Commented] (JCLOUDS-982) Improve AzureTemplateOptions

2015-08-13 Thread Andrea Turli (JIRA)
[ https://issues.apache.org/jira/browse/JCLOUDS-982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14695000#comment-14695000 ] Andrea Turli commented on JCLOUDS-982: -- there is a PR to fix this issue at

[jira] [Commented] (JCLOUDS-981) Azure: remove mandatory virtual network creation

2015-08-13 Thread Andrea Turli (JIRA)
[ https://issues.apache.org/jira/browse/JCLOUDS-981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14695017#comment-14695017 ] Andrea Turli commented on JCLOUDS-981: -- the PR at

[jira] [Assigned] (JCLOUDS-981) Azure: remove mandatory virtual network creation

2015-08-13 Thread Andrea Turli (JIRA)
[ https://issues.apache.org/jira/browse/JCLOUDS-981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrea Turli reassigned JCLOUDS-981: Assignee: Andrea Turli Azure: remove mandatory virtual network creation

[jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Andrea Turli
- fix reuse of existing storage service during deployment - use AutoValue.Builder in DeployParams - make network creation optional - remove AzureComuteAdapterLiveTest b/c not meaningful You can view, comment on, or merge this pull request online at:

[jira] [Assigned] (JCLOUDS-982) Improve AzureTemplateOptions

2015-08-13 Thread Andrea Turli (JIRA)
[ https://issues.apache.org/jira/browse/JCLOUDS-982?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrea Turli reassigned JCLOUDS-982: Assignee: Andrea Turli Improve AzureTemplateOptions

Jenkins build became unstable: jclouds-karaf #1457

2015-08-13 Thread jenkins-no-reply
See https://jclouds.ci.cloudbees.com/job/jclouds-karaf/1457/

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Andrea Turli
@ilgrosso could you please have a look? thanks! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/197#issuecomment-130598543

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Francesco Chicchiriccò
I've seen the changes and they seem ok. I had to fix ``` src/test/java/org/jclouds/azurecompute/binders/DeploymentParamsToXMLTest.java ``` by changing ``` import autovalue.shaded.com.google.common.common.collect.ImmutableSet; ``` to ``` import com.google.common.collect.ImmutableSet; ```

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Francesco Chicchiriccò
I have these 3 tests failing: ``` [TestNG] Test testAddIpPermission(org.jclouds.azurecompute.compute.extensions.AzureComputeSecurityGroupExtensionLiveTest) failed. [TestNG] Test testList(org.jclouds.azurecompute.features.DiskApiLiveTest) failed. [TestNG] Test

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Ignasi Barrera
+ } + + /** + * @see #subnetName + */ + public static AzureComputeTemplateOptions subnetName(final String subnetName) { + final AzureComputeTemplateOptions options = new AzureComputeTemplateOptions(); + return options.subnetName(subnetName);

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Andrea Turli
@@ -105,10 +105,10 @@ final String location = template.getLocation().getId(); final int[] inboundPorts = template.getOptions().getInboundPorts(); - final String storageAccountName = templateOptions.getStorageAccountName().get(); - final String virtualNetworkName =

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Ignasi Barrera
Use case 1 looks OK. The other two use cases seem to conflict with what is proposed in JCLOUDS-981, which aims to avoid the complexity of creating networks and let Azure assign an IP tot he VM, like other providers do? --- Reply to this email directly or view it on GitHub:

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Ignasi Barrera
@@ -126,140 +122,43 @@ public static ExternalEndpoint inboundUdpToLocalPort(final int port, final int l @Nullable public abstract String reservedIPName(); - public abstract ListString subnetNames(); - - public Builder toBuilder() { - return

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Andrea Turli
@ilgrosso @nacx thanks for your reviews! @nacx: re design concern: I changed the implementation to support the following 3 use-cases: 1. user-specified network name: jclouds checks its existence, otherwise IllegalArgumentException 2. user doesn't provide a networkName: jclouds looks for a

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Ignasi Barrera
One design comment: the `tempalteOptions.networks` options is intended to be used to provide a set of *existing* network IDs where the virtual machine should be attached. Looking at the code, if the provided *thing* (as it can't be an ID if the network still does not exist) does not exists, it

[jira] [Created] (JCLOUDS-989) HostAdministration API in openstack-nova needs to allow query parameters

2015-08-13 Thread Arvind Nadendla (JIRA)
Arvind Nadendla created JCLOUDS-989: --- Summary: HostAdministration API in openstack-nova needs to allow query parameters Key: JCLOUDS-989 URL: https://issues.apache.org/jira/browse/JCLOUDS-989

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Andrea Turli
@@ -44,7 +45,7 @@ public AzureComputeProviderMetadataLive() { public static Properties defaultProperties() { final Properties properties = AzureManagementApiMetadata.defaultProperties(); - properties.setProperty(TEMPLATE,

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Andrea Turli
Ok, let's support properly use-case 1. In order to use a specific virtual network, the end user needs to specify the `virtualNetworkName` and 1-more `subnetNames`, so let's keep those specific `AzureComputeTemplateOptions`. --- Reply to this email directly or view it on GitHub:

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Ignasi Barrera
+ + @Override + public AzureComputeTemplateOptions clone() { + final AzureComputeTemplateOptions options = new AzureComputeTemplateOptions(); + copyTo(options); + return options; + } + + @Override + public void copyTo(final TemplateOptions to) { +

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Ignasi Barrera
@@ -105,10 +105,10 @@ final String location = template.getLocation().getId(); final int[] inboundPorts = template.getOptions().getInboundPorts(); - final String storageAccountName = templateOptions.getStorageAccountName().get(); - final String virtualNetworkName =

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Ignasi Barrera
@@ -106,7 +102,7 @@ public static ExternalEndpoint inboundUdpToLocalPort(final int port, final int l */ public abstract OSImage.Type os(); - public abstract ListExternalEndpoint externalEndpoints(); + @Nullable public abstract SetExternalEndpoint externalEndpoints();

Re: [jclouds-labs] [JCLOUDS-982] remove Optional from AzureComputeTemplateOptions (#197)

2015-08-13 Thread Ignasi Barrera
@@ -44,7 +45,7 @@ public AzureComputeProviderMetadataLive() { public static Properties defaultProperties() { final Properties properties = AzureManagementApiMetadata.defaultProperties(); - properties.setProperty(TEMPLATE,