Whirr
  1. Whirr
  2. WHIRR-397

Automatic template selection is too restrictive

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.0
    • Component/s: None
    • Labels:
      None

      Description

      I'm getting the following exception when trying to start a ZooKeeper cluster with this recipe:

      whirr.cluster-name=zookeeper
      whirr.instance-templates=1 zookeeper
      
      # Note the hardware type selection ID 
      whirr.hardware-id=m1.small
      
      Exception in thread "main" java.util.NoSuchElementException: no hardware profiles support images matching params: [biggest=false, fastest=false, imageName=null, imageDescription=/ubuntu-images/, imageId=null, imagePredicate=null, imageVersion=null, location=[id=us-east-1, scope=REGION, description=us-east-1, parent=aws-ec2, iso3166Codes=[US-VA], metadata={}], minCores=0.0, minRam=0, osFamily=ubuntu, osName=null, osDescription=null, osVersion=10.04, osArch=null, os64Bit=true, hardwareId=m1.small]
      	at org.jclouds.compute.domain.internal.TemplateBuilderImpl.resolveSize(TemplateBuilderImpl.java:614)
      	at org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:573)
      	at org.apache.whirr.compute.BootstrapTemplate.build(BootstrapTemplate.java:75)
      	at org.apache.whirr.actions.BootstrapClusterAction.doAction(BootstrapClusterAction.java:99)
      	at org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:80)
      	at org.apache.whirr.ClusterController.launchCluster(ClusterController.java:105)
      	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)
      
      1. WHIRR-397.patch
        1 kB
        Andrei Savu
      2. WHIRR-397.patch
        1 kB
        Andrei Savu

        Activity

        Hide
        Andrei Savu added a comment -

        With this patch the recipe from description works fine. I have also checked that if you are starting a machine with more memory and 64bit OS version is used.

        Show
        Andrei Savu added a comment - With this patch the recipe from description works fine. I have also checked that if you are starting a machine with more memory and 64bit OS version is used.
        Hide
        Tom White added a comment -

        +1

        Show
        Tom White added a comment - +1
        Hide
        Adrian Cole added a comment -

        pretty sure jclouds already sorts up 64bit os. I'd remove this as a requirement as clouds like CloudSigma don't have 64bit ubuntu 10.04 (or parse 64bit flag properly).

        -A

        Show
        Adrian Cole added a comment - pretty sure jclouds already sorts up 64bit os. I'd remove this as a requirement as clouds like CloudSigma don't have 64bit ubuntu 10.04 (or parse 64bit flag properly). -A
        Hide
        Andrei Savu added a comment -

        I've noticed that if possible jclouds will try to select a 64bit image. I will remove that selector restriction before committing.

        Show
        Andrei Savu added a comment - I've noticed that if possible jclouds will try to select a 64bit image. I will remove that selector restriction before committing.
        Hide
        Andrei Savu added a comment -

        This is an updated version of the patch without the explicit 64bit OS requirement.

        Show
        Andrei Savu added a comment - This is an updated version of the patch without the explicit 64bit OS requirement.
        Hide
        Adrian Cole added a comment -

        +1

        Show
        Adrian Cole added a comment - +1
        Hide
        Andrei Savu added a comment -

        Committed. Thanks guys for reviewing.

        Show
        Andrei Savu added a comment - Committed. Thanks guys for reviewing.

          People

          • Assignee:
            Andrei Savu
            Reporter:
            Andrei Savu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development