You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "Adrian Cole (JIRA)" <ji...@apache.org> on 2010/10/01 11:20:32 UTC

[jira] Commented: (WHIRR-107) Test failing due to not matching Amazon Linux AMI on EC2

    [ https://issues.apache.org/jira/browse/WHIRR-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916838#action_12916838 ] 

Adrian Cole commented on WHIRR-107:
-----------------------------------

The default template for ec2 in jclouds-1.0-beta-7, is fixed at amazon linux.  The only thing that could explain this would be a classpath problem.

http://github.com/jclouds/jclouds/blob/1.0-beta-7/aws/core/src/main/java/org/jclouds/aws/ec2/compute/config/EC2ComputeServiceContextModule.java

   @Override
   protected TemplateBuilder provideTemplate(Injector injector, TemplateBuilder template) {
      String provider = injector.getInstance(Key.get(String.class, Provider.class));
      if ("eucalyptus".equals(provider))
         return template.osFamily(CENTOS);
      else if ("nova".equals(provider))
         return template.osFamily(UBUNTU);
      else
         return template.osFamily(AMZN_LINUX).os64Bit(true);
   }

I don't recommend committing this patch.  I do recommend investigating the setup that produced ubuntu, as this hints strongly of beta-6 classes in the classpath.

> Test failing due to not matching Amazon Linux AMI on EC2
> --------------------------------------------------------
>
>                 Key: WHIRR-107
>                 URL: https://issues.apache.org/jira/browse/WHIRR-107
>             Project: Whirr
>          Issue Type: Bug
>          Components: service/hadoop
>            Reporter: Tom White
>            Assignee: Tom White
>             Fix For: 0.2.0
>
>         Attachments: WHIRR-107.patch
>
>
> When I run the Hadoop tests on trunk I get a failure because the ubuntu-alphas-us/karmic-i386-alpha5.manifest.xml AMI is being selected, rather than the Amazon Linux AMI.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.