Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-11 Thread Richard Downer
Squash-n-rebase done, @demobox. Thanks for reviewing :smiley: --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/33#issuecomment-28186914

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-11 Thread CloudBees pull request builder plugin
[jclouds-labs-pull-requests #85](https://jclouds.ci.cloudbees.com/job/jclouds-labs-pull-requests/85/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/33#issuecomment-28187335

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-08 Thread Richard Downer
return input.get() != null; } }, operationCompleteCheckTimeout, operationCompleteCheckInterval, MILLISECONDS).apply(instance); } - InstanceInZone instanceInZone = new InstanceInZone(instance.get(), template.getLocation().getId()); +

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-08 Thread Richard Downer
+ */ +package org.jclouds.googlecomputeengine.compute.functions; + +import com.google.common.base.Predicate; +import org.jclouds.compute.functions.GroupNamingConvention; + +import javax.inject.Inject; + +/** + * The convention for naming instance tags that firewall rules recognise. + *

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-08 Thread Richard Downer
- retry(operationDonePredicate, operationCompleteCheckTimeout, operationCompleteCheckInterval, - MILLISECONDS).apply(operation); - - checkState(!operation.get().getHttpError().isPresent(), Could not create firewall, operation failed + operation); +

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-08 Thread Richard Downer
Thanks @demobox, I think I've gone through all of your review comments, with the exception of the failure-cleanup question. Any more comments at this stage? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/33#issuecomment-28069473

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-08 Thread CloudBees pull request builder plugin
[jclouds-labs-pull-requests #84](https://jclouds.ci.cloudbees.com/job/jclouds-labs-pull-requests/84/) SUCCESS This pull request looks good --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/33#issuecomment-28069826

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-08 Thread Andrew Phillips
return input.get() != null; } }, operationCompleteCheckTimeout, operationCompleteCheckInterval, MILLISECONDS).apply(instance); } - InstanceInZone instanceInZone = new InstanceInZone(instance.get(), template.getLocation().getId()); +

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-08 Thread Andrew Phillips
- retry(operationDonePredicate, operationCompleteCheckTimeout, operationCompleteCheckInterval, - MILLISECONDS).apply(operation); - - checkState(!operation.get().getHttpError().isPresent(), Could not create firewall, operation failed + operation); +

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-08 Thread Andrew Phillips
@@ -266,6 +266,12 @@ public static IPProtocol fromValue(String protocol) { private final IPProtocol ipProtocol; private final RangeSetInteger ports; + /* Some handy shortcuts */ + public static Rule permitTcpRule(Integer start, Integer end) { return

[jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-07 Thread Richard Downer
The inboundPort settings of the first node in the group dictated the firewall configuration. Subsequent nodes added to the group had their inboundPort settings ignored. GCE firewalls specify their quot;targetquot; (VM instances) by means of tags - if a targetTag on a firewall matches the tag

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-07 Thread CloudBees pull request builder plugin
[jclouds-labs-pull-requests #82](https://jclouds.ci.cloudbees.com/job/jclouds-labs-pull-requests/82/) UNSTABLE Looks like there's a problem with this pull request --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/33#issuecomment-27974025

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-07 Thread CloudBees pull request builder plugin
[jclouds-labs-pull-requests #83](https://jclouds.ci.cloudbees.com/job/jclouds-labs-pull-requests/83/) UNSTABLE Looks like there's a problem with this pull request --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/33#issuecomment-27989047

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-07 Thread Andrew Phillips
- if (operation.get().getHttpError().isPresent()) { - HttpResponse response = operation.get().getHttpError().get(); - logger.warn(delete orphaned firewall failed. Http Error Code: + response.getStatusCode() + - HttpError: + response.getMessage());

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-07 Thread Andrew Phillips
@@ -108,6 +114,7 @@ public GoogleComputeEngineServiceAdapter(GoogleComputeEngineApi api, operationCompleteCheckInterval, TimeUnit.MILLISECONDS); this.zones = checkNotNull(zones, zones); this.hardwareMap = checkNotNull(hardwareMap, hardwareMap); +

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-07 Thread Andrew Phillips
@@ -116,6 +123,8 @@ public GoogleComputeEngineServiceAdapter(GoogleComputeEngineApi api, checkNotNull(template, template); + final InstanceApi instanceApi = api.getInstanceApiForProject(userProject.get()); + Get `instanceApi` down where it's used? --- Reply to this

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-07 Thread Andrew Phillips
@@ -166,14 +176,28 @@ public boolean apply(AtomicReferenceInstance input) { retry(new PredicateAtomicReferenceInstance() { @Override public boolean apply(AtomicReferenceInstance input) { -

Re: [jclouds-labs] JCLOUDS-367: GCE nodes n1 ignoring inboundPort (#33)

2013-11-07 Thread Andrew Phillips
+ */ +package org.jclouds.googlecomputeengine.compute.functions; + +import com.google.common.base.Predicate; +import org.jclouds.compute.functions.GroupNamingConvention; + +import javax.inject.Inject; + +/** + * The convention for naming instance tags that firewall rules recognise. + *