Re: [jclouds-examples] Adds an example on how to use cloud-init with Nova and rackspace (#32)

2014-03-01 Thread Andrew Phillips
+import org.jclouds.openstack.nova.v2_0.NovaAsyncApi; +import org.jclouds.openstack.nova.v2_0.compute.options.NovaTemplateOptions; +import org.jclouds.openstack.nova.v2_0.domain.zonescoped.ZoneAndId; +import org.jclouds.rest.RestContext; +import org.jclouds.scriptbuilder.ScriptBuilder;

Re: [jclouds-examples] Adds an example on how to use cloud-init with Nova and rackspace (#32)

2014-03-01 Thread Andrew Phillips
+import com.google.common.collect.Iterables; +import com.google.common.io.Closeables; +import com.google.inject.Module; + +import org.apache.commons.codec.binary.Base64; + +/** + * Create a public key in the cloud and write the private key file to the local working directory. The public

Re: [jclouds] Better documentation and a bugfix for cloud-init (#307)

2014-03-01 Thread Andrew Phillips
@@ -541,5 +561,18 @@ public NovaTemplateOptions userData(byte[] userData) { public NovaTemplateOptions diskConfig(String diskConfig) { this.diskConfig = diskConfig; return this; - } + } + + /** +* OpenStack can be configured to write metadata to a special

Re: [jclouds] Better documentation and a bugfix for cloud-init (#307)

2014-03-01 Thread Andrew Phillips
@@ -290,6 +297,7 @@ public CreateServerOptions metadata(MapString, String metadata) { * Custom user-data can be also be supplied at launch time. * It is retrievable by the instance and is often used for launch-time configuration * by instance scripts. +* This parameter

Re: [jclouds] Better documentation and a bugfix for cloud-init (#307)

2014-03-01 Thread Andrew Phillips
@@ -297,6 +305,14 @@ public CreateServerOptions userData(byte[] userData) { } /** +* This needs to be set to true when trying to use user data for cloud-init. Document the base case as well as the exceptional (cloud-init) case? Something like: Set to true to use a config

Re: [jclouds] Better documentation and a bugfix for cloud-init (#307)

2014-03-01 Thread Andrew Phillips
Thanks also for the style cleanup. Why is this a bugfix, by the way? Looks like new functionality? Not that that matters, just out of curiosity... --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/307#issuecomment-36430950

Re: [jclouds-labs-openstack] Added Cloud Files API/Providers to README (#80)

2014-03-01 Thread Andrew Phillips
| rackspace-autoscale-us | Provider | No | +| rackspace-cloudfiles-uk | Provider | No | +| rackspace-cloudfiles-us | Provider | No | Is the production readiness status of all three providers No? --- Reply to this email directly or view it on GitHub:

Re: [jclouds-labs-openstack] Added Cloud Files API/Providers to README (#80)

2014-03-01 Thread Andrew Phillips
One small question. Thanks for the update, @jdaggett! --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-openstack/pull/80#issuecomment-36431024

Re: [jclouds] JCLOUDS-342: Retry on HTTP 408 for swift (#306)

2014-03-01 Thread Andrew Phillips
Do we need a test to actually see if the command is correctly retried on a 408? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/306#issuecomment-36431159

Re: [jclouds] Update glance's endpoint for unit tests (#258)

2014-03-01 Thread Ignacio Mulas
@@ -71,7 +71,7 @@ endpoints: [ { tenantName: 40806637803162, -publicURL: https://glance.jclouds.org:9292/v1.0;, +publicURL: https://glance.jclouds.org:9292;, This change on the

Re: [jclouds-labs-openstack] Glance v2 implementation (#77)

2014-03-01 Thread Ignacio Mulas
+import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; + +/** + * An image the Glance server knows about + * + * @author Ignacio Mulas + * + * @see a href= http://glance.openstack.org/glanceapi.html; / + * @see a href= + *

Re: [jclouds-labs-openstack] Glance v2 implementation (#77)

2014-03-01 Thread Ignacio Mulas
+ public void testUpdateWhenReponseIs404IsNull() throws Exception { + HttpRequest patch = HttpRequest.builder().method(PATCH) + .endpoint(https://glance.jclouds.org:9292/v2/images/da3b75d9-3f4a-40e7-8a2c-bfab23927dea;) +

Re: [jclouds] JCLOUDS-342: Retry on HTTP 408 for swift (#306)

2014-03-01 Thread Andrew Gaul
@jdaggett I have credentials for several Swift providers and none of them seem to use the openstack-keystone/Keystone 2.0 functionality. If someone finds such a provider we can add this functionality in a subsequent commit, otherwise let's just patch known issues and move forward with the