Re: [jclouds-labs-google] JCLOUDS-312 - add SecurityGroupExtension to GCE (#5)

2013-11-02 Thread Andrew Phillips
@@ -114,6 +114,9 @@ goaltest/goal /goals configuration + includes +

Re: [jclouds-labs-google] fix JCLOUDS-362 inferring project-id from identity when there is a hyphen (#9)

2013-11-02 Thread Andrew Phillips
-Project project = api.getProjectApi().get(Iterables.get(Splitter.on(@).split(in.identity), 0)); +String projectName = Iterables.get(Splitter.on(@).split(in.identity), 0); +projectName =

Re: [jclouds-site] Remove incubator references (#24)

2013-11-03 Thread Andrew Phillips
@@ -5,7 +5,7 @@ title: Logging ## Logging in Apache jcloudsreg; -Logging in jclouds can save you time and effort when developing your code or looking for help. If your code is not behaving how you expect it to, enabling and configuring logging in jclouds can quickly give you valuable

Re: [jclouds-labs-google] fix JCLOUDS-362 inferring project-id from identity when there is a hyphen (#9)

2013-11-03 Thread Andrew Phillips
-Project project = api.getProjectApi().get(Iterables.get(Splitter.on(@).split(in.identity), 0)); +String projectName = Iterables.get(Splitter.on(@).split(in.identity), 0); +projectName =

Re: [jclouds-labs-google] fix JCLOUDS-362 inferring project-id from identity when there is a hyphen (#9)

2013-11-03 Thread Andrew Phillips
Optional comment about a slight change to the splitting logic, but I think there's actually a bug in the (unchanged) original code at ``` checkState(in.identity.indexOf(@) != 1, ...) ``` --- Reply to this email directly or view it on GitHub:

Re: [jclouds] JCLOUDS-361. Add support for filter parameters to DescribeInstances for aws-ec2 (#194)

2013-11-04 Thread Andrew Phillips
jclouds-pull-requests #366 UNSTABLE Spurious [test

Re: [jclouds-labs-google] fix JCLOUDS-362 inferring project-id from identity when there is a hyphen (#9)

2013-11-05 Thread Andrew Phillips
@@ -101,10 +101,20 @@ protected void bindErrorHandlers() { return MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.create(authException, compose(new FunctionCredentials, String() { public String apply(Credentials in) { -

Re: [jclouds-labs-google] Enforcing identity format '...@developer.gserviceaccount.com' correctly (#12)

2013-11-05 Thread Andrew Phillips
@abayer: Based on [this comment](https://github.com/jclouds/jclouds-labs-google/pull/9/files#r7448227), any thoughts on whether this restriction should actually be enforced..? --- Reply to this email directly or view it on GitHub:

Re: [jclouds] JCLOUDS-361. Add support for filter parameters to DescribeInstances for aws-ec2 (#194)

2013-11-06 Thread Andrew Phillips
@@ -110,6 +112,41 @@ void testDescribe() { } @Test + void testFilter() { [minor] `public void`, as for most tests? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/194/files#r7486520

Re: [jclouds] JCLOUDS-361. Add support for filter parameters to DescribeInstances for aws-ec2 (#194)

2013-11-06 Thread Andrew Phillips
Some repeated comments: * use TestNG assertions only, at least in new test code (rather than Java `assert`s)? * plenty of cases where assertions in a test are surrounded by `if (allResults.size() = 1) { ... }`. Are we legitimately expecting no responses here? If so, at least throw a

Re: [jclouds] Fix provider softlayer (#77)

2013-11-07 Thread Andrew Phillips
he was joking, isn't he? Yes, apologies if that wasn't clear! Both comments about the package rename were jokes. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/77#issuecomment-27960098

Re: [jclouds-labs] Added a new predicate to capture disk links (#32)

2013-11-07 Thread Andrew Phillips
+1 - looks good to me! Thanks, @carlosgarciaibanez and @nacx! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/32#issuecomment-27960195

Re: [jclouds-labs] Added a new predicate to capture disk links (#32)

2013-11-07 Thread Andrew Phillips
Committed to [master](https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;a=commit;h=d9717a432fcd1a2512f4a5d121b9454822f928e7) under [JCLOUDS-369](https://issues.apache.org/jira/browse/JCLOUDS-369) --- Reply to this email directly or view it on GitHub:

Re: [jclouds-site] Remove incubator branding (#23)

2013-11-07 Thread Andrew Phillips
Looks like this is [already committed](https://github.com/jclouds/jclouds-site/commit/dcd24d0ca7a1acc5dc9aaf38305c6799b9d69cea). Please reopen if not the case! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/23#issuecomment-27974381

[jclouds-site] Remove remaining incubator logos (#30)

2013-11-07 Thread Andrew Phillips
Follow-on from dcd24d0 You can merge this Pull Request by running: git pull https://github.com/jclouds/jclouds-site remove-remaining-incubator Or you can view, comment on it, or merge it online at: https://github.com/jclouds/jclouds-site/pull/30 -- Commit Summary -- * HTML indenting

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. + *

Re: [jclouds] JCLOUDS-361. Add support for filter parameters to DescribeInstances for aws-ec2 (#194)

2013-11-07 Thread Andrew Phillips
+* @see #describeSnapshotsInRegion +* @see #createSnapshotsInRegion +* @see #deleteSnapshotInRegion +* @see a href=http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html; +* / + */ +

Re: [jclouds] JCLOUDS-361. Add support for filter parameters to DescribeInstances for aws-ec2 (#194)

2013-11-07 Thread Andrew Phillips
+* @see InstanceApi#describeInstances +* @see #describeImageAttribute +* @see a href=http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeImages.html; +* / +* @see DescribeImagesOptions +*/ + @Named(DescribeImages) +

Re: [jclouds] JCLOUDS-361. Add support for filter parameters to DescribeInstances for aws-ec2 (#194)

2013-11-07 Thread Andrew Phillips
+ public void testFilterWhenResponseIs2xx() throws Exception { + + HttpResponse filterResponse = HttpResponse.builder().statusCode(200) + .payload(payloadFromResourceWithContentType(/describe_instances_running.xml, text/xml)).build(); + + + EC2Api apiWhenExist =

Re: [jclouds] JCLOUDS-361. Add support for filter parameters to DescribeInstances for aws-ec2 (#194)

2013-11-07 Thread Andrew Phillips
@@ -55,7 +59,41 @@ void testDescribeInstances() { for (String region : ec2Api.getConfiguredRegions()) { Set? extends Reservation? extends RunningInstance allResults = client.describeInstancesInRegion(region); assertNotNull(allResults); - assert

Re: [jclouds] JCLOUDS-361. Add support for filter parameters to DescribeInstances for aws-ec2 (#194)

2013-11-07 Thread Andrew Phillips
} } -} + + @Test + void testFilterInstances() { + for (String region : view.unwrapApi(EC2Api.class).getAvailabilityZoneAndRegionApi().get().describeRegions().keySet()) { + Set? extends Reservation? extends RunningInstance allResults =

Re: Fwd: projects graduated need to tidy up

2013-11-08 Thread Andrew Phillips
It seems that jclouds has stuff to clean up in the incubator. Does anyone know what needs be cleaned up (and how to do it)? I can help with that. I'm assuming the tasks are as described here: http://incubator.apache.org/guides/graduation.html#life-after-graduation I haven't looked in detail

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

Re: [jclouds-labs-google] fix JCLOUDS-362 inferring project-id from identity when there is a hyphen (#9)

2013-11-08 Thread Andrew Phillips
@@ -101,10 +101,20 @@ protected void bindErrorHandlers() { return MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.create(authException, compose(new FunctionCredentials, String() { public String apply(Credentials in) { -

Re: [jclouds-labs-google] Enforcing identity format '...@developer.gserviceaccount.com' correctly (#12)

2013-11-08 Thread Andrew Phillips
Dropping following comments by @abayer and in the [related PR](https://github.com/jclouds/jclouds-labs-google/pull/9#discussion_r7443403). The parsing will not break or do weird things if the `@project.gserviceaccount.com` suffix is missing, so the check is not really needed. --- Reply to

Re: Git/JIRA integration broken?

2013-11-08 Thread Andrew Phillips
Where is this configured? I'm guessing, in Git? I hope it's a push whenever Git receives a commit, rather than polling happening from JIRA..? ap

Re: [jclouds] JCLOUDS-365: ChefSolo should not depend on InstallChefGems (#196)

2013-11-08 Thread Andrew Phillips
Should we have some kind of prerequisite check here, or will things fail with an obvious error message if we try to run Solo _without_ Chef now? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/196#issuecomment-28088996

Re: [jclouds] Implement a poor-mans rollback if static nat creation fails (#184)

2013-11-08 Thread Andrew Phillips
Thanks for the prod, @spark404. I'd still like to see some input from somebody else before making any decisions here. It might be worth hopping on #jclouds at Freenode to see if someone can have a look - good time, too, since the next couple of releases are coming up. --- Reply to this email

Re: [jclouds] JCLOUDS-365: ChefSolo should not depend on InstallChefGems (#196)

2013-11-08 Thread Andrew Phillips
This is something that will fail when running the bootstrap script with a `Command not found: chef-solo.` OK. I think that should be fine, but would it be easy to amend that to add something like Unable to find chef-solo -please install Chef? --- Reply to this email directly or view it on

Re: Basic authentication did not work

2013-11-09 Thread Andrew Phillips
Nope. I'm passing plain text credentials. The base64 encoding is done by jclouds basic authentication. Ah, OK (@Nirmal: there should be no implementation change there). Still the same error, I take it? ap

Re: What're the differences between vcloud and vcloud-director in labs?

2013-11-09 Thread Andrew Phillips
$Subject? When do you think someone should use one over the other? It's kind of confusing as of now. From what I know (and I'm hardly the expert here!), the vcloud API in jclouds main is an implementation for the vCloud 1.0 API [1]. It's older than the vcloud-director API in labs , which

Re: [jclouds-labs-openstack] OS Neutron Extension Router (#47)

2013-11-09 Thread Andrew Phillips
@@ -29,7 +29,7 @@ * @author Nick Livens * @see a href=http://docs.openstack.org/api/openstack-network/2.0/content/Subnets.html;api doc/a */ -public class AllocationPool { +public final class AllocationPool { Any reason for making this and the domain classes below final? This may

Re: [jclouds-labs-openstack] OS Neutron Extension Router (#47)

2013-11-09 Thread Andrew Phillips
+ } + + public Builder toBuilder() { + return new ConcreteBuilder().fromExternalGatewayInfo(this); + } + + public static abstract class Builder { + protected abstract Builder self(); + + protected String networkId; + + /** + * @see

Re: [jclouds-labs-openstack] OS Neutron Extension Router (#47)

2013-11-09 Thread Andrew Phillips
@@ -37,10 +37,7 @@ public String getValue() { } public static NetworkType fromValue(String value) { - for (NetworkType networkType : values()) { - if (networkType.getValue().equalsIgnoreCase(value)) -return networkType; - } - return null; +

Re: [jclouds-labs-openstack] OS Neutron Extension Router (#47)

2013-11-09 Thread Andrew Phillips
+ */ + public T state(State state) { + this.state = state; + return self(); + } + + /** + * @see Router#getExternalGatewayInfo() + */ + public T externalGatewayInfo(ExternalGatewayInfo externalGatewayInfo) { +

Re: [jclouds-labs-openstack] OS Neutron Extension Router (#47)

2013-11-09 Thread Andrew Phillips
+ + /** +* Returns the list of all routers currently defined in Neutron for the current tenant. The list provides the unique +* identifier of each router configured for the tenant +* +* @return the list of all router references configured for the tenant. +*/ +

Re: [jclouds-labs-openstack] OS Neutron Extension Router (#47)

2013-11-09 Thread Andrew Phillips
+ @Path(/{id}) + @SelectJson(router) + @Fallback(Fallbacks.NullOnNotFoundOr404.class) + Router get(@PathParam(id) String id); + + /** +* Create a new router +* +* @param options optional arguments +* @return the newly created router +*/ +

Re: [jclouds-labs-openstack] OS Neutron Extension Router (#47)

2013-11-09 Thread Andrew Phillips
+import java.beans.ConstructorProperties; + +import static com.google.common.base.Preconditions.checkNotNull; +import static org.jclouds.openstack.v2_0.options.PaginationOptions.Builder.marker; + +/** + * @author Nick Livens + */ +@Beta +@Singleton +public class ParseRouterDetails

Re: [jclouds] JCLOUDS-361. Add support for filter parameters to DescribeInstances for aws-ec2 (#194)

2013-11-09 Thread Andrew Phillips
+* @see InstanceApi#describeInstances +* @see #describeImageAttribute +* @see a href=http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeImages.html; +* / +* @see DescribeImagesOptions +*/ + @Named(DescribeImages) +

Re: [jclouds-labs-openstack] OS Neutron Extension Router (#47)

2013-11-09 Thread Andrew Phillips
+ authenticatedGET().endpoint(endpoint + /routers).addQueryParam(fields, id, tenant_id, name).build(), + HttpResponse.builder().statusCode(200).payload(payloadFromResourceWithContentType(/list_routers.json, APPLICATION_JSON)).build()) +

Re: [jclouds-labs-openstack] OS Neutron Extension Router (#47)

2013-11-09 Thread Andrew Phillips
assertTrue(subnetApi.delete(net.getId())); } assertTrue(networkApi.delete(networkId)); } } + + private PredicateSubnet createPredicate(final String subnetId) { See above comment. And since we're using this in multiple places, move out to a

Re: [jclouds] Fix provider softlayer (#77)

2013-11-10 Thread Andrew Phillips
Hey guys. any reason this pull request is not accepted yet? @iliapolo: Now that I see the main remaining TODO item has been resolved, there should be no reason, no! I'll try to merge this in the course of the day... --- Reply to this email directly or view it on GitHub:

Re: [jclouds] Fix provider softlayer (#77)

2013-11-10 Thread Andrew Phillips
jclouds » jclouds #591 UNSTABLE Looks like an unrelated [test

Re: [jclouds] Fix provider softlayer (#77)

2013-11-10 Thread Andrew Phillips
Committed to [1.6.x](https://git-wip-us.apache.org/repos/asf?p=jclouds.git;a=commit;h=f278450355bbaa95c841c2f857a528091b90d723) and updated [JCLOUDS-213](https://issues.apache.org/jira/browse/JCLOUDS-213). Thanks, @andreaturli! --- Reply to this email directly or view it on GitHub:

DEV@cloud jobs updated

2013-11-11 Thread Andrew Phillips
Just updated the DEV@cloud jobs to run of the jclouds-* repos rather than incubator-jclouds-*. There might be some failures until the cleanup is complete, so apologies in advance for multiple build failure emails... ap

Re: [jclouds] JCLOUDS-365: ChefSolo should not depend on InstallChefGems (#196)

2013-11-11 Thread Andrew Phillips
Looks good - please squash'n'rebase! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/196#issuecomment-28258037

Re: [jclouds] fix for JCLOUDS-373 (#199)

2013-11-11 Thread Andrew Phillips
// 'bad' orders have no start cpu's and cause the order lookup to fail. if (guest.getStartCpus() 1) return null; - ProductOrder order = client.getVirtualGuestClient().getOrderTemplate(guest.getId()); + try { +order =

Re: [jclouds] fix for JCLOUDS-373 (#199)

2013-11-12 Thread Andrew Phillips
@@ -64,6 +65,8 @@ public void handleError(HttpCommand command, HttpResponse response) { exception = new ResourceNotFoundException(message, exception); } else if (message.indexOf(currently an active transaction) != -1) {

Re: [jclouds] fix for JCLOUDS-373 (#199)

2013-11-12 Thread Andrew Phillips
+ * (the License); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the

Re: [jclouds-labs-google] fix for JCLOUDS-372, changing MINUTES to SECONDS (#14)

2013-11-12 Thread Andrew Phillips
@@ -66,8 +66,11 @@ protected void configure() { } /** -* Provides a cache for tokens. Cache is time based and expires after 59 minutes (the maximum time a token is -* valid is 60 minutes) +* Provides a cache for tokens. Cache is time based and by default expires

Re: [jclouds-labs-google] fix for JCLOUDS-372, changing MINUTES to SECONDS (#14)

2013-11-12 Thread Andrew Phillips
@@ -78,7 +81,7 @@ protected void configure() { // bit before the deadline to make sure there aren't session expiration exceptions sessionIntervalInSeconds = sessionIntervalInSeconds 30 ? sessionIntervalInSeconds - 30 : sessionIntervalInSeconds; - return

Re: [jclouds] Fix provider softlayer (#77)

2013-11-12 Thread Andrew Phillips
Should this be cherry-picked to master? @nacx: I'd prefer to see a new PR with some successful PR builds and, if possible, confirmation of a successful live test run..? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/77#issuecomment-28287406

Re: [jclouds] fix for JCLOUDS-373 (#199)

2013-11-12 Thread Andrew Phillips
jclouds-java-7-pull-requests #844 UNSTABLE Unrelated [test

Re: [jclouds] jclouds-331 - imageChooser function backport (#202)

2013-11-13 Thread Andrew Phillips
@@ -945,6 +975,15 @@ public TemplateBuilder imageMatches(PredicateImage condition) { * {@inheritDoc} */ @Override + public TemplateBuilderImpl imageChooser(FunctionIterable? extends Image,Image imageChooser) { [minor] Missing space in `,Image` --- Reply to this email

Re: [jclouds] jclouds-331 - imageChooser function backport (#202)

2013-11-13 Thread Andrew Phillips
@@ -111,16 +147,12 @@ public void testLocationPredicateWhenComputeMetadataIsNotLocationBound() { } @SuppressWarnings(unchecked) - @Test - public void testResolveImages() { - - + protected void doTestResolveImages(SupplierSet? extends Image images, Image

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

2013-11-13 Thread Andrew Phillips
Committed to [master](https://git-wip-us.apache.org/repos/asf?p=jclouds-labs-google.git;a=commit;h=69756496bdb9e49fb69e802d97eadc1c17bc2af5). Thanks, @richardcloudsoft! --- Reply to this email directly or view it on GitHub:

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

2013-11-13 Thread Andrew Phillips
Closed #13. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/13

Re: [jclouds-labs] backport of jclouds-372 fix from jclouds-labs-google (oauth cache expiry... (#34)

2013-11-13 Thread Andrew Phillips
Committed to [1.6.x](https://git-wip-us.apache.org/repos/asf?p=jclouds-labs.git;h=53e63ab) --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/34#issuecomment-28392439

Re: [jclouds] [JCLOUDS-263] Usage of internalURL services' endpoints (#142)

2013-11-13 Thread Andrew Phillips
Create a new PR to port #201 ported to master, merge that one, and rebase and start working again in this one. I would prefer this one, if possible? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/142#issuecomment-28403709

Re: [jclouds] JCLOUDS-373: Fix SoftLayerOrderItemDuplicateException. (#204)

2013-11-13 Thread Andrew Phillips
@@ -16,7 +16,7 @@ */ package org.jclouds.softlayer.exceptions; -public class SoftLayerOrderItemDuplicateException extends RuntimeException { +public class SoftLayerOrderItemDuplicateException extends IllegalStateException { Same question as before on this: the [Javadoc for

Re: [jclouds-labs-openstack] The create and stream methods in the Message API for OpenStack Marconi. (#46)

2013-11-13 Thread Andrew Phillips
Where could you put a checkArgument? Can you give me an example? I think @nacx was going down the same path here, but luckily he knew what the actual way to have validation performed during the API call is ;-) I appreciate your point that that moves the error into a less useful position from a

Re: [jclouds-site] A guide on how to report a bug. (#18)

2013-11-13 Thread Andrew Phillips
@@ -0,0 +1,97 @@ +--- +layout: jclouds +title: Documentation +--- + +# How to Report a Bug to Apache jcloudsreg; + +If you run into a bug while using jclouds, we encourage you to report it. To help you please collect as much of the following information as possible. If you can't get

Re: [jclouds] JCLOUDS-373: Fix SoftLayerOrderItemDuplicateException. (#204)

2013-11-14 Thread Andrew Phillips
@@ -16,7 +16,7 @@ */ package org.jclouds.softlayer.exceptions; -public class SoftLayerOrderItemDuplicateException extends RuntimeException { +public class SoftLayerOrderItemDuplicateException extends IllegalStateException { This is quite a relevant change, so I think it is a good

Re: [jclouds-site] JCLOUDS-215 Adds autoscale documentation. (#32)

2013-11-14 Thread Andrew Phillips
@@ -13,7 +13,8 @@ title: Getting Started - The Rackspace Cloud 1. [Your First Cloud Servers App](#servers) 1. [Working with Cloud Block Storage](#volumes) 1. [Working with Cloud Load Balancers](#loadbalancers) -1. [Working with Cloud Databases](#databases) +1. [Working with Cloud

Re: [jclouds-site] JCLOUDS-215 Adds autoscale documentation. (#32)

2013-11-14 Thread Andrew Phillips
@@ -276,6 +277,48 @@ Note: When providing a java classpath in Windows, the path separator is ';' inst In addition to the create database instance example, by going through the clouddatabases example code, you will learn to create instances, databases, and database users as well as

Re: [jclouds-site] JCLOUDS-215 Adds autoscale documentation. (#32)

2013-11-14 Thread Andrew Phillips
+1. You can find these APIs in the latest [Javadoc](http://demobox.github.com/jclouds-maven-site/latest/apidocs). + +### a id=autoscale-source/aThe Source Code + +1. Create the directory hierarchy org/jclouds/examples/rackspace/clouddatabases/ in your jclouds directory. +1. Create Java

Re: [jclouds-site] JCLOUDS-215 Adds autoscale documentation. (#32)

2013-11-14 Thread Andrew Phillips
+### a id=autoscale-source/aThe Source Code + +1. Create the directory hierarchy org/jclouds/examples/rackspace/clouddatabases/ in your jclouds directory. +1. Create Java source files called CreateInstance.java and Constants.java in the directory above. +1. You should now have a directory

Re: [jclouds-site] JCLOUDS-215 Adds autoscale documentation. (#32)

2013-11-14 Thread Andrew Phillips
+1. Go to the example code [Createpolicy.java](https://github.com/jclouds/jclouds-examples/blob/master/rackspace/src/main/java/org/jclouds/examples/rackspace/autoscale/CreatePolicy.java), read it over, and copy the code into your file. +1. Open Constants.java for editing. +1. Go to the

Re: [jclouds-site] JCLOUDS-215 Adds autoscale documentation. (#32)

2013-11-14 Thread Andrew Phillips
General question throughout the new text: since it's e.g. Cloud Load Balancers and not Rackspace Cloud Load Balancers, should it be Autoscale rather than Rackspace Autoscale? --- Reply to this email directly or view it on GitHub:

Re: [jclouds-labs-openstack] The create and stream methods in the Message API for OpenStack Marconi. (#46)

2013-11-14 Thread Andrew Phillips
@@ -97,19 +116,27 @@ public Builder age(int age) { } /** - * @see Aged#created + * @see Aged#getCreated() */ public Builder created(Date created) { this.created = created; Fine (here and for the other ones)...thanks! --- Reply to this

Re: [jclouds-examples] JCLOUDS-215 Add autoscale examples (#24)

2013-11-14 Thread Andrew Phillips
+ for ( GroupState state : groupApi.listGroupStates() ) { + Group g = groupApi.get(state.getId()); + for ( ScalingPolicyResponse policy : g.getScalingPolicies() ) { +if (policy.getName().equals(NAME)) return g.getId(); + } + } + + throw

Re: [jclouds-labs-openstack] The create and stream methods in the Message API for OpenStack Marconi. (#46)

2013-11-14 Thread Andrew Phillips
This is what I'll do for now. I'll remove the properties but document it to let know users know that such limits exist. If users need this sort of thing, it can always be fixed in another PR. Thanks, @everett-toews! --- Reply to this email directly or view it on GitHub:

Re: [jclouds] JCLOUDS-373: Fix SoftLayerOrderItemDuplicateException. (#204)

2013-11-14 Thread Andrew Phillips
Committed to [master](https://git-wip-us.apache.org/repos/asf?p=jclouds.git;a=commit;h=55b21b64494546d268df6044f5a5fecd23efba83) and [1.6.x](https://git-wip-us.apache.org/repos/asf?p=jclouds.git;a=commit;h=844819d8b7fc674010952339ef1b26ed15d3c7cd). Thanks, @andreaturli and @nacx! --- Reply to

Re: [jclouds-labs-openstack] The create and stream methods in the Message API for OpenStack Marconi. (#46)

2013-11-14 Thread Andrew Phillips
+ public StreamOptions nextStreamOptions() { + return StreamOptions.class.cast(nextMarker().get()); + } + + @Override + public OptionalObject nextMarker() { + for (Link link: getLinks()) { + if (Link.Relation.NEXT == link.getRelation()) { +return

Re: [jclouds-site] JCLOUDS-215 Adds autoscale documentation. (#32)

2013-11-14 Thread Andrew Phillips
I think Rackspace Autoscale for now. Maybe they will rename it later. OK, thanks for explaining, @zack-shoylev! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/32#issuecomment-28513866

Re: [jclouds-labs-openstack] The create and stream methods in the Message API for OpenStack Marconi. (#46)

2013-11-15 Thread Andrew Phillips
- protected QueueStats(MessagesStats messages) { - this.messages = messages; + protected QueueStats(MessagesStats messageStats) { + this.messages = checkNotNull(messageStats); [minor] `checkNotNull(messageStats, messageStats required);`? --- Reply to this email directly or

Re: [jclouds-site] JCLOUDS-215 Adds autoscale documentation. (#32)

2013-11-15 Thread Andrew Phillips
Thanks for the updates! Something weird going on with the numbering now: ![image](https://f.cloud.github.com/assets/223702/1555039/26c02824-4e53-11e3-9772-34cee2691214.png) --- Reply to this email directly or view it on GitHub:

Re: [jclouds] JCLOUDS-381. Allow explicit naming of nodes via TemplateOptions. (#206)

2013-11-16 Thread Andrew Phillips
@@ -153,8 +154,10 @@ protected EC2ComputeService(ComputeServiceContext context, MapString, Credentia if (client.getTagApiForRegion(region).isPresent()) { MapString, String common = metadataAndTagsAsValuesOfEmptyString(template.getOptions()); - if (common.size()

Re: [jclouds] JCLOUDS-381. Allow explicit naming of nodes via TemplateOptions. (#206)

2013-11-16 Thread Andrew Phillips
+ requestResponseMap.put(authorizeSecurityGroupIngressRequestGroup, authorizeSecurityGroupIngressResponse); + requestResponseMap.put(runInstancesRequest, runInstancesResponse); + requestResponseMap.put(describeInstanceRequest, describeNamedInstanceResponse); +

Re: [jclouds] JCLOUDS-381. Allow explicit naming of nodes via TemplateOptions. (#206)

2013-11-16 Thread Andrew Phillips
@@ -100,8 +100,12 @@ public NodeMetadata apply(ServerInZone serverInZone) { builder.hostname(from.getName()); builder.location(from.getHostId() != null ? new LocationBuilder().scope(LocationScope.HOST).id(from.getHostId())

Re: [jclouds] JCLOUDS-381. Allow explicit naming of nodes via TemplateOptions. (#206)

2013-11-16 Thread Andrew Phillips
@@ -362,6 +364,30 @@ public void testCreateTwoNodesWithRunScript() throws Exception { checkOsMatchesTemplate(node2); } + @Test(enabled = true, dependsOnMethods = testCreateTwoNodesWithRunScript) + public void testCreateTwoNodesWithOneSpecifiedName() throws Exception { +

Re: [jclouds] JCLOUDS-381. Allow explicit naming of nodes via TemplateOptions. (#206)

2013-11-16 Thread Andrew Phillips
} + if (groupName.equals()) { + groupName = nodeNamingConvention.groupInUniqueNameOrNull(from.getHostname()); + } + builder.group(groupName); See comment about perhaps initializing with `null` rather than the empty string above? --- Reply to this email

Re: [jclouds] jclouds-331 - imageChooser function backport (#202)

2013-11-18 Thread Andrew Phillips
![image](https://f.cloud.github.com/assets/223702/1563624/c0f9e15c-5063-11e3-80a4-026b087f46d5.png) ![image](https://f.cloud.github.com/assets/223702/1563630/e20243e4-5063-11e3-80ee-059d10df61a1.png)

Re: [jclouds] applies tidies for imageChooser (JCLOUDS-331) as suggested in pull #202 (#207)

2013-11-18 Thread Andrew Phillips
Applied to [master](https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=9a7336b)...thanks, @ahgittin! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/207#issuecomment-28707445

Re: [jclouds-site] Added IRC. (#34)

2013-11-19 Thread Andrew Phillips
Merged and deployed. Thanks, @everett-toews! +1 - looks good to me --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-site/pull/34#issuecomment-28809385

Re: [jclouds-labs] Cloudsigma v2 API Pagination (#35)

2013-11-19 Thread Andrew Phillips
Commited to master. Thanks for all the reviewing time, @nacx! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/35#issuecomment-28810371

Re: [jclouds] remove addl whitespace pointed out in JCLOUDS-331 (#210)

2013-11-19 Thread Andrew Phillips
Thanks, @ahgittin! Will try to get these in this evening... --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/210#issuecomment-28842670

Re: [jclouds] remove addl whitespace pointed out in JCLOUDS-331 (#210)

2013-11-19 Thread Andrew Phillips
Committed to [master](https://git-wip-us.apache.org/repos/asf?p=jclouds.git;a=commit;h=3ecbf9084762ef4c8b0f8c5beb8a161add1fb6bd) --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/210#issuecomment-28843542

Re: [jclouds] remove addl whitespace pointed out in JCLOUDS-331 (#210)

2013-11-19 Thread Andrew Phillips
Closed #210. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/210

Re: [jclouds-labs-openstack] Refactored QueueApi and pushed name param up to MarconiApi. (#52)

2013-11-19 Thread Andrew Phillips
Reverted. Turns out you can't implement list messages with this refactoring. Would it have been feasible to have a test case for list messages whose failure could have caught this? Or is that (quite possibly!) an invalid statement to make in this case..? --- Reply to this email directly or

Re: [jclouds] JCLOUDS-381. Allow explicit naming of nodes via TemplateOptions. (#206)

2013-11-19 Thread Andrew Phillips
jclouds » jclouds #633 UNSTABLE Looks like another timing-related [test

Re: 1.7.0 scheduling

2013-11-19 Thread Andrew Phillips
Just did a bit of cleanup on the 1.6.x branch of jclouds-labs-openstack to get its versioning in a sane way - turns out the sane way was already in place for 1.7.0 there, so woo. Checking the others now, but I think we're ok with an extra step I specified on the release process wiki. Do we need

Re: [jclouds] JCLOUDS-381. Allow explicit naming of nodes via TemplateOptions. (#206)

2013-11-19 Thread Andrew Phillips
@@ -153,8 +155,9 @@ protected EC2ComputeService(ComputeServiceContext context, MapString, Credentia if (client.getTagApiForRegion(region).isPresent()) { MapString, String common = metadataAndTagsAsValuesOfEmptyString(template.getOptions()); - if (common.size()

Re: [jclouds] JCLOUDS-381. Allow explicit naming of nodes via TemplateOptions. (#206)

2013-11-19 Thread Andrew Phillips
@@ -362,6 +364,30 @@ public void testCreateTwoNodesWithRunScript() throws Exception { checkOsMatchesTemplate(node2); } + @Test(enabled = true, dependsOnMethods = testCreateTwoNodesWithRunScript) + public void testCreateTwoNodesWithOneSpecifiedName() throws Exception { +

  1   2   3   4   5   6   7   8   9   10   >