Jenkins Jcloud Openstack错误

时间:2015-02-24 09:11:13

标签: jenkins jclouds openstack-nova

当我尝试在Opensatck上配置一个奴隶时,我得到了以下错误。 Slave在openstack上创建,但它会以下面的异常

来销毁它 提供http://localhost:8081/cloud/fedora/provision时出错     java.lang.reflect.InvocationTargetException         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)         at java.lang.reflect.Method.invoke(Unknown Source)         在org.kohsuke.stapler.Function $ InstanceFunction.invoke(Function.java:298)         在org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)         在org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)         在org.kohsuke.stapler.MetaClass $ 1.doDispatch(MetaClass.java:121)         at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)         在org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)         在org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)         在org.kohsuke.stapler.MetaClass $ 6.doDispatch(MetaClass.java:249)         at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)         在org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)         在org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)         在org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)         在org.kohsuke.stapler.Stapler.service(Stapler.java:238)         在javax.servlet.http.HttpServlet.service(HttpServlet.java:848)         在org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)         在org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1494)         在hudson.util.PluginServletFilter $ 1.doFilter(PluginServletFilter.java:123)         在hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114)         在org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1482)         在hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)         在org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1482)         在hudson.security.ChainedServletFilter $ 1.doFilter(ChainedServletFilter.java:84)         在hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)         在hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)         在org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1482)         at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)         在org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1482)         在hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)         在org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1482)         在org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)         在org.eclipse.jetty.servlet.ServletHandler $ CachedChain.doFilter(ServletHandler.java:1474)         在org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)         在org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)         在org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)         在org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)         at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)         在org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)         在org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)         在org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)         在org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)         在org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)         在org.eclipse.jetty.server.Server.handle(Server.java:370)         at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)         at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)         at org.eclipse.jetty.server.AbstractHttpConnection $ RequestHandler.content(AbstractHttpConnection.java:1021)         在org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)         在org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)         at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)         在org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)         在org.eclipse.jetty.io.nio.SelectChannelEndPoint $ 1.run(SelectChannelEndPoint.java:52)         在winstone.BoundedExecutorService $ 1.run(BoundedExecutorService.java:77)         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)         at java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source)         在java.lang.Thread.run(未知来源)     引起:java.lang.RuntimeException:org.jclouds.compute.RunNodesException:错误运行1节点组(ubuntu)位置(RegionOne)图像(bf68af6f-e6a1-43f6-8ff7-25b54d257fe8)size(2)options({loginUser = ubuntu,loginPasswordPresent = true,loginPrivateKeyPresent = true,scriptPresent = true,securityGroups = [default],userMetadata = {Name = ubuntu},autoAssignFloatingIp = false,keyPairName = pub,userData = [B @ 7c1521,configDrive = false})     执行失败:

0 error[s]
Node failures:

1) NoSuchElementException on node RegionOne/873b9f1f-8c3b-41c1-9590-c85ba0bd39c7:
java.util.NoSuchElementException: could not connect to any ip address port 22 on node {id=RegionOne/873b9f1f-8c3b-41c1-9590-c85ba0bd39c7, providerId=873b9f1f-8c3b-41c1-9590-c85ba0bd39c7, uri=http://172.27.59.30:8774/v2/98e76fc602cc4a2ca945ff7140a4c1a5/servers/873b9f1f-8c3b-41c1-9590-c85ba0bd39c7, name=ubuntu-d64, uri=http://172.27.59.30:8774/v2/98e76fc602cc4a2ca945ff7140a4c1a5/servers/873b9f1f-8c3b-41c1-9590-c85ba0bd39c7, location={scope=HOST, id=049edc6318675e518ceb2b7b4628dc2d680176680f59204d452b8314, description=049edc6318675e518ceb2b7b4628dc2d680176680f59204d452b8314, parent=RegionOne}, group=ubuntu, imageId=RegionOne/bf68af6f-e6a1-43f6-8ff7-25b54d257fe8, os={family=unrecognized, name=Ubuntu-14.04, description=Ubuntu-14.04, is64Bit=true}, status=RUNNING, loginPort=22, hostname=ubuntu-d64, privateAddresses=[10.0.0.2], hardware={id=RegionOne/2, providerId=2, name=m1.small, location={scope=ZONE, id=RegionOne, description=RegionOne, parent=openstack-nova}, processors=[{cores=1.0, speed=1.0}], ram=2048, volumes=[{type=LOCAL, size=20.0, bootDevice=true, durable=true}], supportsImage=ALWAYS_TRUE}, loginUser=ubuntu, userMetadata={Name=ubuntu, jclouds-group=ubuntu}}
    at org.jclouds.compute.util.ConcurrentOpenSocketFinder.findOpenSocketOnNode(ConcurrentOpenSocketFinder.java:107)
    at org.jclouds.compute.functions.CreateSshClientOncePortIsListeningOnNode.apply(CreateSshClientOncePortIsListeningOnNode.java:71)
    at org.jclouds.compute.functions.CreateSshClientOncePortIsListeningOnNode.apply(CreateSshClientOncePortIsListeningOnNode.java:45)
    at org.jclouds.compute.callables.SudoAwareInitManager.init(SudoAwareInitManager.java:71)
    at org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh.init(RunScriptOnNodeAsInitScriptUsingSsh.java:68)
    at org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.init(RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.java:81)
    at org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.init(RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.java:42)
    at org.jclouds.compute.strategy.InitializeRunScriptOnNodeOrPlaceInBadMap.call(InitializeRunScriptOnNodeOrPlaceInBadMap.java:65)
    at org.jclouds.compute.strategy.InitializeRunScriptOnNodeOrPlaceInBadMap.call(InitializeRunScriptOnNodeOrPlaceInBadMap.java:38)
    at org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.call(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:123)
    at org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.apply(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:146)
    at org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.apply(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:53)
    at shaded.com.google.common.util.concurrent.Futures$1.apply(Futures.java:711)
    at shaded.com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:849)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


1 error[s]
    at shaded.com.google.common.base.Throwables.propagate(Throwables.java:160)
    at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.destroyBadNodesAndPropagate(JCloudsSlaveTemplate.java:347)
    at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:336)
    at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.provisionSlave(JCloudsSlaveTemplate.java:191)
    at jenkins.plugins.jclouds.compute.JCloudsCloud.doProvision(JCloudsCloud.java:281)
    ... 58 more
Caused by: org.jclouds.compute.RunNodesException: error running 1 node group(ubuntu) location(RegionOne) image(bf68af6f-e6a1-43f6-8ff7-25b54d257fe8) size(2) options({loginUser=ubuntu, loginPasswordPresent=true, loginPrivateKeyPresent=true, scriptPresent=true, securityGroups=[default], userMetadata={Name=ubuntu}, autoAssignFloatingIp=false, keyPairName=pub, userData=[B@7c1521, configDrive=false})
Execution failures:

0 error[s]
Node failures:

1) NoSuchElementException on node RegionOne/873b9f1f-8c3b-41c1-9590-c85ba0bd39c7:
java.util.NoSuchElementException: could not connect to any ip address port 22 on node {id=RegionOne/873b9f1f-8c3b-41c1-9590-c85ba0bd39c7, providerId=873b9f1f-8c3b-41c1-9590-c85ba0bd39c7, uri=http://172.27.59.30:8774/v2/98e76fc602cc4a2ca945ff7140a4c1a5/servers/873b9f1f-8c3b-41c1-9590-c85ba0bd39c7, name=ubuntu-d64, uri=http://172.27.59.30:8774/v2/98e76fc602cc4a2ca945ff7140a4c1a5/servers/873b9f1f-8c3b-41c1-9590-c85ba0bd39c7, location={scope=HOST, id=049edc6318675e518ceb2b7b4628dc2d680176680f59204d452b8314, description=049edc6318675e518ceb2b7b4628dc2d680176680f59204d452b8314, parent=RegionOne}, group=ubuntu, imageId=RegionOne/bf68af6f-e6a1-43f6-8ff7-25b54d257fe8, os={family=unrecognized, name=Ubuntu-14.04, description=Ubuntu-14.04, is64Bit=true}, status=RUNNING, loginPort=22, hostname=ubuntu-d64, privateAddresses=[10.0.0.2], hardware={id=RegionOne/2, providerId=2, name=m1.small, location={scope=ZONE, id=RegionOne, description=RegionOne, parent=openstack-nova}, processors=[{cores=1.0, speed=1.0}], ram=2048, volumes=[{type=LOCAL, size=20.0, bootDevice=true, durable=true}], supportsImage=ALWAYS_TRUE}, loginUser=ubuntu, userMetadata={Name=ubuntu, jclouds-group=ubuntu}}
    at org.jclouds.compute.util.ConcurrentOpenSocketFinder.findOpenSocketOnNode(ConcurrentOpenSocketFinder.java:107)
    at org.jclouds.compute.functions.CreateSshClientOncePortIsListeningOnNode.apply(CreateSshClientOncePortIsListeningOnNode.java:71)
    at org.jclouds.compute.functions.CreateSshClientOncePortIsListeningOnNode.apply(CreateSshClientOncePortIsListeningOnNode.java:45)
    at org.jclouds.compute.callables.SudoAwareInitManager.init(SudoAwareInitManager.java:71)
    at org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSsh.init(RunScriptOnNodeAsInitScriptUsingSsh.java:68)
    at org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.init(RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.java:81)
    at org.jclouds.compute.callables.RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.init(RunScriptOnNodeAsInitScriptUsingSshAndBlockUntilComplete.java:42)
    at org.jclouds.compute.strategy.InitializeRunScriptOnNodeOrPlaceInBadMap.call(InitializeRunScriptOnNodeOrPlaceInBadMap.java:65)
    at org.jclouds.compute.strategy.InitializeRunScriptOnNodeOrPlaceInBadMap.call(InitializeRunScriptOnNodeOrPlaceInBadMap.java:38)
    at org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.call(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:123)
    at org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.apply(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:146)
    at org.jclouds.compute.strategy.CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.apply(CustomizeNodeAndAddToGoodMapOrPutExceptionIntoBadMap.java:53)
    at shaded.com.google.common.util.concurrent.Futures$1.apply(Futures.java:711)
    at shaded.com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:849)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


1 error[s]
    at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:227)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)
    at com.sun.proxy.$Proxy90.createNodesInGroup(Unknown Source)
    at jenkins.plugins.jclouds.compute.JCloudsSlaveTemplate.get(JCloudsSlaveTemplate.java:334)
    ... 60 more

1 个答案:

答案 0 :(得分:0)

似乎jclouds无法进入你的机器。您的映像默认是否支持SSH?或者,它可能是一个网络问题。