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

Andrew Bayer commented on WHIRR-697:
------------------------------------

So there was some specific reason to exclude the daily/testing images, but I 
don't remember what exactly it was. Have you run the live tests with this patch?
                
> Apache Whirr Core tests fail when running 'mvn install'
> -------------------------------------------------------
>
>                 Key: WHIRR-697
>                 URL: https://issues.apache.org/jira/browse/WHIRR-697
>             Project: Whirr
>          Issue Type: Bug
>            Reporter: Eli Reisman
>         Attachments: WHIRR-697-1.patch
>
>
> When downloading a clean repo on my Mac OSX Mountain Lion laptop, I can run 
> 'mvn install' and the tests will always fail like so:
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.whirr.actions.BootstrapClusterActionTest
> 2013-02-02 13:55:31,806 WARN  [org.apache.whirr.ClusterSpec] (main) Please 
> use provider "aws-ec2" instead of "ec2"
> 2013-02-02 13:55:32,442 INFO  
> [org.apache.whirr.actions.BootstrapClusterAction] (main) Bootstrapping cluster
> 2013-02-02 13:55:32,446 INFO  [org.apache.whirr.compute.BootstrapTemplate] 
> (main) Configuring template for bootstrap-hadoop-datanode_hadoop-tasktracker
> 2013-02-02 13:55:32,494 INFO  [org.apache.whirr.compute.BootstrapTemplate] 
> (main) Configuring template for bootstrap-hadoop-namenode_hadoop-jobtracker
> 2013-02-02 13:55:32,500 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-1-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node successfully started: nodeId10
> 2013-02-02 13:55:32,500 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-1-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node successfully started: nodeId11
> 2013-02-02 13:55:32,500 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-1-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node successfully started: nodeId12
> 2013-02-02 13:55:32,500 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-1-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node failing to start: nodeId13
> 2013-02-02 13:55:32,502 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-1-thread-4) 
> [hadoop-namenode, hadoop-jobtracker] - Node failing to start: nodeId20
> 2013-02-02 13:55:32,508 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-1-thread-2) 
> [hadoop-namenode, hadoop-jobtracker] - Node successfully started: nodeId30
> 2013-02-02 13:55:32,509 INFO  [org.apache.whirr.compute.StartupProcess] 
> (pool-1-thread-3) Destroying failed nodes [nodeId20]
> 2013-02-02 13:55:32,509 INFO  [org.apache.whirr.compute.StartupProcess] 
> (pool-1-thread-1) Destroying failed nodes [nodeId13]
> 2013-02-02 13:55:32,510 INFO  [org.apache.whirr.compute.StartupProcess] 
> (pool-1-thread-3) Destroyed failed nodes []
> 2013-02-02 13:55:32,510 INFO  [org.apache.whirr.compute.StartupProcess] 
> (pool-1-thread-1) Destroyed failed nodes []
> 2013-02-02 13:55:32,570 WARN  [org.apache.whirr.ClusterSpec] (main) Please 
> use provider "aws-ec2" instead of "ec2"
> 2013-02-02 13:55:32,574 INFO  
> [org.apache.whirr.actions.BootstrapClusterAction] (main) Bootstrapping cluster
> 2013-02-02 13:55:32,575 INFO  [org.apache.whirr.compute.BootstrapTemplate] 
> (main) Configuring template for bootstrap-hadoop-datanode_hadoop-tasktracker
> 2013-02-02 13:55:32,586 INFO  [org.apache.whirr.compute.BootstrapTemplate] 
> (main) Configuring template for bootstrap-hadoop-namenode_hadoop-jobtracker
> 2013-02-02 13:55:32,586 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-2-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node successfully started: nodeId10
> 2013-02-02 13:55:32,587 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-2-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node failing to start: nodeId11
> 2013-02-02 13:55:32,587 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-2-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node failing to start: nodeId12
> 2013-02-02 13:55:32,587 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-2-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node failing to start: nodeId13
> 2013-02-02 13:55:32,589 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-2-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node successfully started: nodeId20
> 2013-02-02 13:55:32,590 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-2-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node failing to start: nodeId21
> 2013-02-02 13:55:32,590 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-2-thread-2) 
> [hadoop-datanode, hadoop-tasktracker] - Node failing to start: nodeId22
> 2013-02-02 13:55:32,592 INFO  [org.apache.whirr.compute.StartupProcess] 
> (pool-2-thread-1) Destroying failed nodes [nodeId11, nodeId12, nodeId13, 
> nodeId22, nodeId21]
> 2013-02-02 13:55:32,593 INFO  [org.apache.whirr.compute.StartupProcess] 
> (pool-2-thread-1) Destroyed failed nodes []
> 2013-02-02 13:55:32,595 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-2-thread-2) 
> [hadoop-namenode, hadoop-jobtracker] - Node successfully started: nodeId30
> 2013-02-02 13:55:32,686 WARN  [org.apache.whirr.ClusterSpec] (main) Please 
> use provider "aws-ec2" instead of "ec2"
> 2013-02-02 13:55:32,696 INFO  
> [org.apache.whirr.actions.BootstrapClusterAction] (main) Bootstrapping cluster
> 2013-02-02 13:55:32,696 INFO  [org.apache.whirr.compute.BootstrapTemplate] 
> (main) Configuring template for 
> bootstrap-puppet:module::manifest_something-else
> 2013-02-02 13:55:32,703 INFO  
> [org.apache.whirr.actions.BootstrapClusterActionTest] (pool-3-thread-2) 
> [puppet:module::manifest, something-else] - Node successfully started: 
> nodeId10
> 2013-02-02 13:55:32,727 WARN  [org.apache.whirr.ClusterSpec] (main) Please 
> use provider "aws-ec2" instead of "ec2"
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.391 sec
> Running org.apache.whirr.actions.CleanupClusterActionTest
> 2013-02-02 13:55:33,737 INFO  
> [org.apache.whirr.actions.BootstrapClusterAction] (main) Bootstrapping cluster
> 2013-02-02 13:55:33,738 INFO  [org.apache.whirr.compute.BootstrapTemplate] 
> (main) Configuring template for bootstrap-noop1_noop3
> 2013-02-02 13:55:33,765 ERROR [org.apache.whirr.ClusterController] (main) 
> Unable to start the cluster. Terminating all nodes.
> java.util.NoSuchElementException: no image matched predicate: 
> And(nullEqualToIsParentOrIsGrandparentOfCurrentLocation(),And(osFamily(ubuntu),osDescription(^(?!.*(daily|testing)).*ubuntu-images.*$),osVersion(10.04)))
>       at 
> org.jclouds.compute.domain.internal.TemplateBuilderImpl.throwNoSuchElementExceptionAfterLoggingImageIds(TemplateBuilderImpl.java:722)
>       at 
> org.jclouds.compute.domain.internal.TemplateBuilderImpl.findSupportedImages(TemplateBuilderImpl.java:696)
>       at 
> org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:678)
>       at 
> org.apache.whirr.compute.BootstrapTemplate.build(BootstrapTemplate.java:77)
>       at 
> org.apache.whirr.actions.BootstrapClusterAction.doAction(BootstrapClusterAction.java:101)
>       at 
> org.apache.whirr.actions.ScriptBasedClusterAction.execute(ScriptBasedClusterAction.java:127)
>       at 
> org.apache.whirr.ClusterController.bootstrapCluster(ClusterController.java:137)
>       at 
> org.apache.whirr.ClusterController.launchCluster(ClusterController.java:113)
>       at 
> org.apache.whirr.actions.ScriptBasedClusterActionTest.setUp(ScriptBasedClusterActionTest.java:113)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>       at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>       at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>       at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>       at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>       at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
>       at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at 
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>       at 
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>       at 
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>       at 
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
>       at 
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> 2013-02-02 13:55:33,765 WARN  
> [org.apache.whirr.state.ClusterStateStoreFactory] (main) No cluster state is 
> going to be persisted. There is no easy way to retrieve instance roles after 
> launch.
> 2013-02-02

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to