Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41821

Launching openstack windows images from Jenkins gives error

XMLWordPrintable

      Hi,

      I have installed latest version of Jenkins on my windows machine and installed all openstack plugin in it and configured all openstack related information and I am able to see all the image template from Jenkins. And in task I have selected the particular template to launch an instance.But when I was trying to Launch a windows instance from Jenkins I am getting below error.

      Can you please let me know what exactly need to be done to fix this ?

      Queuing cloud instance: #0 1, TP sysprep_bareos_win2012_v25
      ERROR: Exception creating a node
      jenkins.plugins.openstack.compute.internal.Openstack$ActionFailed: Failed to boot server sysprep_bareos_win2012_v25-5677 in time: status=BUILD vmState=building fault=none
      	at jenkins.plugins.openstack.compute.internal.Openstack.throwIfFailed(Openstack.java:410)
      	at jenkins.plugins.openstack.compute.internal.Openstack.bootAndWaitActive(Openstack.java:238)
      	at jenkins.plugins.openstack.compute.JCloudsSlaveTemplate.provision(JCloudsSlaveTemplate.java:266)
      	at jenkins.plugins.openstack.compute.JCloudsBuildWrapper$ServerSupplier.get(JCloudsBuildWrapper.java:121)
      	at jenkins.plugins.openstack.compute.JCloudsBuildWrapper$ServerSupplier.get(JCloudsBuildWrapper.java:110)
      	at jenkins.plugins.openstack.compute.internal.RetrySupplierOnFailure.call(RetrySupplierOnFailure.java:28)
      	at jenkins.plugins.openstack.compute.internal.RetrySupplierOnFailure.call(RetrySupplierOnFailure.java:12)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      	Suppressed: jenkins.plugins.openstack.compute.internal.Openstack$ActionFailed: Server deletion attempt failed:
      NovaServer{id=a7e16a70-ea4b-4130-84e5-0436b726ab42, name=sysprep_bareos_win2012_v25-5677, image={id=873971e7-5e47-4181-9dbf-b9466af9941b, links=[{href=http://10.241.154.4:8774/86d48817aea548b3a61f64367f2ee8ba/images/873971e7-5e47-4181-9dbf-b9466af9941b, rel=bookmark}]}, flavor=NovaFlavor{id=c01ea1c1-5eb9-4be4-9ca6-79290356edc2, ephemeral=0, swap=0, rxtx_factor=1.0, is_public=true, links=[GenericLink{href=http://10.241.154.4:8774/86d48817aea548b3a61f64367f2ee8ba/flavors/c01ea1c1-5eb9-4be4-9ca6-79290356edc2, rel=bookmark}], 
      }, status=BUILD, diskconfig=AUTO, userId=193f6f86221b4d188e1b8501f8be7bb5, created=Tue Feb 07 08:28:12 MST 2017, updated=Tue Feb 07 08:40:24 MST 2017, tenantId=86d48817aea548b3a61f64367f2ee8ba, hostId=b22d345de27b4d3ca239097c9a812565791ce70e61336380a8009641, addresses=NovaAddresses{addresses={slcos01a-private=[NovaAddress{address=10.196.14.33, type=fixed, version=4, macaddr=fa:16:3e:bb:03:21, 
      }]}, 
      }, hypervisor host=slcan752.us.oracle.com, powerstate=0, instanceName=instance-0000827a, vmState=building, metadata={jenkins-template-name=sysprep_bareos_win2012_v25, jenkins-instance=http://10.240.188.129:8080/}}
      		at jenkins.plugins.openstack.compute.internal.Openstack.destroyServer(Openstack.java:312)
      		at jenkins.plugins.openstack.compute.internal.Openstack.throwIfFailed(Openstack.java:412)
      		... 11 more
      
      Destroying node: sysprep_bareos_win2012_v25-7724
      Finished: SUCCESS
      
      {color:red}*Also when I select 16GB_4CPu I am getting below errors also*{color}
      
      Queuing cloud instance: #0 1, TP sysprep_bareos_win2012_v25
      ERROR: Exception creating a node
      jenkins.plugins.openstack.compute.internal.Openstack$ActionFailed: Flavor's disk is too small for requested image.
      	at jenkins.plugins.openstack.compute.internal.Openstack.bootAndWaitActive(Openstack.java:241)
      	at jenkins.plugins.openstack.compute.JCloudsSlaveTemplate.provision(JCloudsSlaveTemplate.java:266)
      	at jenkins.plugins.openstack.compute.JCloudsBuildWrapper$ServerSupplier.get(JCloudsBuildWrapper.java:121)
      	at jenkins.plugins.openstack.compute.JCloudsBuildWrapper$ServerSupplier.get(JCloudsBuildWrapper.java:110)
      	at jenkins.plugins.openstack.compute.internal.RetrySupplierOnFailure.call(RetrySupplierOnFailure.java:28)
      	at jenkins.plugins.openstack.compute.internal.RetrySupplierOnFailure.call(RetrySupplierOnFailure.java:12)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: ClientResponseException{message=Flavor's disk is too small for requested image., status=400, status-code=BAD_REQUEST}
      	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:38)
      	at org.openstack4j.core.transport.HttpExceptionHandler.mapException(HttpExceptionHandler.java:23)
      	at org.openstack4j.core.transport.HttpEntityHandler.handleLessThan500(HttpEntityHandler.java:100)
      	at org.openstack4j.core.transport.HttpEntityHandler.handle(HttpEntityHandler.java:46)
      	at org.openstack4j.connectors.httpclient.HttpResponseImpl.getEntity(HttpResponseImpl.java:69)
      	at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:189)
      	at org.openstack4j.openstack.internal.BaseOpenStackService$Invocation.execute(BaseOpenStackService.java:183)
      	at org.openstack4j.openstack.compute.internal.ServerServiceImpl.boot(ServerServiceImpl.java:127)
      	at org.openstack4j.openstack.compute.internal.ServerServiceImpl.bootAndWaitActive(ServerServiceImpl.java:137)
      	at jenkins.plugins.openstack.compute.internal.Openstack._bootAndWaitActive(Openstack.java:248)
      	at jenkins.plugins.openstack.compute.internal.Openstack.bootAndWaitActive(Openstack.java:236)
      	... 10 more
      
      FATAL: One or more instances failed to launch.
      java.lang.IllegalStateException: One or more instances failed to launch.
      	at jenkins.plugins.openstack.compute.internal.ProvisionPlannedInstancesAndDestroyAllOnError.apply(ProvisionPlannedInstancesAndDestroyAllOnError.java:78)
      	at jenkins.plugins.openstack.compute.JCloudsBuildWrapper.setUp(JCloudsBuildWrapper.java:77)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:156)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1728)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      Finished: FAILURE
      

      Any immediate help is much appreciated.

            olivergondza Oliver Gondža
            smenon Shimith Menon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: