You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@whirr.apache.org by Karel Vervaeke <ka...@outerthought.org> on 2011/08/18 09:58:38 UTC

Using images from different owners.

Hi, I would like to experiment with the Rightscale CentOS 6 images:
http://thecloudmarket.com/owner/944964708905

I have this in my properties file:

jquery.ec2.ami-query=owner-id=944964708905
# Rightscale CentOS 6.0, 64 bit, instance store, us-east-1
whirr.image-id=us-east-1/ami-abc302c2

Unfortunately I still get his:

$ whirr launch-cluster --config recipes/lily-ec2-rpm.properties
created new ComputeServiceContext  [id=aws-ec2,
endpoint=https://ec2.us-east-1.amazonaws.com, apiVersion=2010-06-15,
identity=..., iso3166Codes=[US-VA, US-CA, IE, SG, JP-13]]
Bootstrapping cluster
Configuring template
Exception in thread "main" java.util.NoSuchElementException:
imageId(us-east-1/ami-abc302c2) not found
	at org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:567)
	at org.apache.whirr.actions.BootstrapClusterAction.buildTemplate(BootstrapClusterAction.java:168)
	at org.apache.whirr.actions.BootstrapClusterAction.doAction(BootstrapClusterAction.java:114)
	at org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:80)
	at org.apache.whirr.ClusterController.launchCluster(ClusterController.java:106)
	at org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:62)
	at org.apache.whirr.cli.Main.run(Main.java:64)
	at org.apache.whirr.cli.Main.main(Main.java:97)

Before I have a closer look at this problem, am I missing something obvious?
I'm using Whirr trunk with some unrelated patches.
Regards,
Karel

Re: Using images from different owners.

Posted by Karel Vervaeke <ka...@outerthought.org>.
Thanks. jclouds.ec2.ami-owners was the right property to set.

Since Rightscale already is in the built-in list of providers, you
might want to add 944964708905.
I wouldn't know how to verify if it really really belongs to
rightscale, but it looks genuine.

And one last thing: the particular CentOS 6 image I tried
(us-east-1/ami-abc302c2) didn't come with sudo preinstalled.
Would it be interesting to have Whirr check for sudo and/or do an
apt/yum install?

Regards & thanks again for all the support!
Karel

On Thu, Aug 18, 2011 at 6:29 PM, Andrei Savu <sa...@gmail.com> wrote:
> See https://issues.apache.org/jira/browse/WHIRR-137
>
> "jclouds restricts AMI owners to Amazon, Alestic, Canonical, and
> Rightscale to avoid slow image ID listings. This can be changed (to
> pick up your own AMIs) by setting jclouds.ec2.ami-owners to a
> comma-separated list of owner IDs."
>
> I haven't tested this approach.
>
> -- Andrei Savu / andreisavu.ro
>
> On Thu, Aug 18, 2011 at 12:58 AM, Karel Vervaeke <ka...@outerthought.org> wrote:
>> Hi, I would like to experiment with the Rightscale CentOS 6 images:
>> http://thecloudmarket.com/owner/944964708905
>>
>> I have this in my properties file:
>>
>> jquery.ec2.ami-query=owner-id=944964708905
>> # Rightscale CentOS 6.0, 64 bit, instance store, us-east-1
>> whirr.image-id=us-east-1/ami-abc302c2
>>
>> Unfortunately I still get his:
>>
>> $ whirr launch-cluster --config recipes/lily-ec2-rpm.properties
>> created new ComputeServiceContext  [id=aws-ec2,
>> endpoint=https://ec2.us-east-1.amazonaws.com, apiVersion=2010-06-15,
>> identity=..., iso3166Codes=[US-VA, US-CA, IE, SG, JP-13]]
>> Bootstrapping cluster
>> Configuring template
>> Exception in thread "main" java.util.NoSuchElementException:
>> imageId(us-east-1/ami-abc302c2) not found
>>        at org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:567)
>>        at org.apache.whirr.actions.BootstrapClusterAction.buildTemplate(BootstrapClusterAction.java:168)
>>        at org.apache.whirr.actions.BootstrapClusterAction.doAction(BootstrapClusterAction.java:114)
>>        at org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:80)
>>        at org.apache.whirr.ClusterController.launchCluster(ClusterController.java:106)
>>        at org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:62)
>>        at org.apache.whirr.cli.Main.run(Main.java:64)
>>        at org.apache.whirr.cli.Main.main(Main.java:97)
>>
>> Before I have a closer look at this problem, am I missing something obvious?
>> I'm using Whirr trunk with some unrelated patches.
>> Regards,
>> Karel
>>
>



-- 
Karel Vervaeke
http://outerthought.org/
Open Source Content Applications
Makers of Kauri, Daisy CMS and Lily

Re: Using images from different owners.

Posted by Andrei Savu <sa...@gmail.com>.
See https://issues.apache.org/jira/browse/WHIRR-137

"jclouds restricts AMI owners to Amazon, Alestic, Canonical, and
Rightscale to avoid slow image ID listings. This can be changed (to
pick up your own AMIs) by setting jclouds.ec2.ami-owners to a
comma-separated list of owner IDs."

I haven't tested this approach.

-- Andrei Savu / andreisavu.ro

On Thu, Aug 18, 2011 at 12:58 AM, Karel Vervaeke <ka...@outerthought.org> wrote:
> Hi, I would like to experiment with the Rightscale CentOS 6 images:
> http://thecloudmarket.com/owner/944964708905
>
> I have this in my properties file:
>
> jquery.ec2.ami-query=owner-id=944964708905
> # Rightscale CentOS 6.0, 64 bit, instance store, us-east-1
> whirr.image-id=us-east-1/ami-abc302c2
>
> Unfortunately I still get his:
>
> $ whirr launch-cluster --config recipes/lily-ec2-rpm.properties
> created new ComputeServiceContext  [id=aws-ec2,
> endpoint=https://ec2.us-east-1.amazonaws.com, apiVersion=2010-06-15,
> identity=..., iso3166Codes=[US-VA, US-CA, IE, SG, JP-13]]
> Bootstrapping cluster
> Configuring template
> Exception in thread "main" java.util.NoSuchElementException:
> imageId(us-east-1/ami-abc302c2) not found
>        at org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:567)
>        at org.apache.whirr.actions.BootstrapClusterAction.buildTemplate(BootstrapClusterAction.java:168)
>        at org.apache.whirr.actions.BootstrapClusterAction.doAction(BootstrapClusterAction.java:114)
>        at org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:80)
>        at org.apache.whirr.ClusterController.launchCluster(ClusterController.java:106)
>        at org.apache.whirr.cli.command.LaunchClusterCommand.run(LaunchClusterCommand.java:62)
>        at org.apache.whirr.cli.Main.run(Main.java:64)
>        at org.apache.whirr.cli.Main.main(Main.java:97)
>
> Before I have a closer look at this problem, am I missing something obvious?
> I'm using Whirr trunk with some unrelated patches.
> Regards,
> Karel
>