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

David Alves commented on WHIRR-379:
-----------------------------------

Testing from whirr with:

{code}
@Test
  public void testInteractWithLocalCloud() throws Exception {
    ClusterSpec spec = ClusterSpec.withTemporaryKeys(config);
    ClusterController controller = new ClusterController();
    Cluster cluster = controller.launchCluster(spec);
  }
{code}

and with config:
Key: whirr.cluster-name                  Value: chefclustertest
Key: whirr.instance-templates                    Value: 1 chef
Key: whirr.provider                      Value: nova
Key: whirr.hardware-min-ram                      Value: 512
Key: whirr.credential                    Value: mM0VdtAkFLmNYQyDCp77
Key: whirr.identity                      Value: admin
Key: jclouds.endpoint                    Value: http://192.168.86.100:8774/v1.0/
Key: whirr.public.key.file                       Value: pk.pem


I get:


java.lang.NullPointerException
        at 
org.jclouds.openstack.nova.compute.functions.NovaImageToImage.apply(NovaImageToImage.java:49)
        at 
org.jclouds.openstack.nova.compute.functions.NovaImageToImage.apply(NovaImageToImage.java:35)
        at com.google.common.collect.Iterators$8.next(Iterators.java:765)
        at com.google.common.collect.Sets.newLinkedHashSet(Sets.java:267)
        at 
org.jclouds.openstack.nova.compute.suppliers.NovaImageSupplier.get(NovaImageSupplier.java:65)
        at 
org.jclouds.openstack.nova.compute.suppliers.NovaImageSupplier.get(NovaImageSupplier.java:44)
        at 
org.jclouds.compute.config.BaseComputeServiceContextModule$8.get(BaseComputeServiceContextModule.java:217)
        at 
org.jclouds.compute.config.BaseComputeServiceContextModule$8.get(BaseComputeServiceContextModule.java:214)
        at 
org.jclouds.rest.suppliers.SetAndThrowAuthorizationExceptionSupplier.get(SetAndThrowAuthorizationExceptionSupplier.java:49)
        at 
org.jclouds.concurrent.RetryOnTimeOutExceptionSupplier.get(RetryOnTimeOutExceptionSupplier.java:47)
        at 
com.google.common.base.Suppliers$ExpiringMemoizingSupplier.get(Suppliers.java:173)
        at 
org.jclouds.rest.suppliers.MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.get(MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.java:59)
        at 
org.jclouds.compute.domain.internal.TemplateBuilderImpl.getImages(TemplateBuilderImpl.java:669)
        at 
org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:562)
        at 
org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:245)
        at 
org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:250)
        at 
org.apache.whirr.local.LocalCloudBootstrapTest.testJClouds(LocalCloudBootstrapTest.java:69)
        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.InvokeMethod.evaluate(InvokeMethod.java:20)
        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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
        at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)


> Provide a local cloud for testing
> ---------------------------------
>
>                 Key: WHIRR-379
>                 URL: https://issues.apache.org/jira/browse/WHIRR-379
>             Project: Whirr
>          Issue Type: New Feature
>            Reporter: David Alves
>         Attachments: WHIRR-379, WHIRR-379.patch
>
>
> As discussed on the list the idea is to create a local cloud using vagrant 
> and openstack and allow whirr tests to run against it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to