-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Windows
I’m attempting to use the vSphere plugin to make a clone of a VM using the “Clone VM from VM or template” build step in a freestyle Jenkins project. It apparently doesn’t like it when I try to use a datastore cluster name the Datastore field of the build step (see console output below). It says it can’t find the datastore. If I put an actual LUN into the field the clone operation will work.
I can use the datastore cluster name from within vSphere itself to create a clone, just not through the vSphere plugin in Jenkins.
Are datastore clusters not supported? Or maybe the cluster isn’t configured correctly to be recognized by the plugin?
Thanks for your help,
Randy Beckwith
Started by user Randy Beckwith
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building on master in workspace C:\Program Files (x86)\Jenkins\workspace\rpb-vSphere-Test
[vSphere]
[vSphere] Performing vSphere build step: "Clone VM from VM or template"
[vSphere] Attempting to use server configuration: "PK10A"
[vSphere] Creating a deep clone of "NIABuildTMP12" to "rpbTest01"
[vSphere] Error cloning VM or template
org.jenkinsci.plugins.vsphere.tools.VSphereNotFoundException: vSphere Error: Datastore "NIABld_FL_Cluster" not found
at org.jenkinsci.plugins.vsphere.tools.VSphere.createRelocateSpec(VSphere.java:336)
at org.jenkinsci.plugins.vsphere.tools.VSphere.cloneOrDeployVm(VSphere.java:235)
at org.jenkinsci.plugins.vsphere.tools.VSphere.cloneVm(VSphere.java:174)
at org.jenkinsci.plugins.vsphere.builders.Clone.cloneFromSource(Clone.java:183)
at org.jenkinsci.plugins.vsphere.builders.Clone.perform(Clone.java:140)
at org.jenkinsci.plugins.vsphere.VSphereBuildStepContainer.perform(VSphereBuildStepContainer.java:101)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1815)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
ERROR: vSphere Error: Datastore "NIABld_FL_Cluster" not found
Finished: FAILURE