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

Provisioning a new vSphere clone is failing when initiated from Jenkins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • vsphere-cloud-plugin
    • None

      Provisioning a new clone is failing when initiated from Jenkins. 
      When attempted the same on command line or on vCenter UI, there are no errors.

      Jenkins is using vSphere plugin (version 2.25)

      Account is setup with recommended permissions. https://github.com/jenkinsci/vsphere-cloud-plugin/blob/master/docs/jenkins-configuration.md

      Error shown on Jenkins side as below:

      com.vmware.vim25.NoPermission: Permission to perform this operation was denied.

      provision(vsphere&&XXXX,1): 0 existing slaves (=0 executors), templates available are [Template[prefix=XXXXtest, provisioned=[], planned=[], unwanted={}, max=2, fullness=0.000%]]Jul 27, 2021 3:46:02 PM INFO org.jenkinsci.plugins.vSphereCloud provisionprovision(vsphere&&XXXX,1): Provisioning 1 new =[XXXXtest1]Jul 27, 2021 3:46:02 PM INFO hudson.slaves.NodeProvisioner$StandardStrategyImpl applyStarted provisioning XXXXtest1 from vSphereCloud with 1 executors. Remaining excess workload: 0Jul 27, 2021 3:46:02 PM SEVERE com.vmware.vim25.ws.WSClient invokeException caught while invoking method: CloneVM_Taskcom.vmware.vim25.NoPermission: Permission to perform this operation was denied. at sun.reflect.GeneratedConstructorAccessor716.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at com.vmware.vim25.ws.XmlGenDom.fromXml(XmlGenDom.java:253) at com.vmware.vim25.ws.XmlGenDom.parseSoapFault(XmlGenDom.java:151) at com.vmware.vim25.ws.XmlGenDom.fromXML(XmlGenDom.java:109) at com.vmware.vim25.ws.SoapClient.unMarshall(SoapClient.java:253) at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:96) at com.vmware.vim25.ws.VimStub.cloneVM_Task(VimStub.java:2305) at com.vmware.vim25.mo.VirtualMachine.cloneVM_Task(VirtualMachine.java:166) at org.jenkinsci.plugins.vsphere.tools.VSphere.cloneOrDeployVm(VSphere.java:281) at org.jenkinsci.plugins.vSphereCloudSlaveTemplate.provision(vSphereCloudSlaveTemplate.java:428) at org.jenkinsci.plugins.vSphereCloudSlaveTemplate.provision(vSphereCloudSlaveTemplate.java:403) at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode.provisionNewNode(vSphereCloud.java:534) at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode.access$100(vSphereCloud.java:496) at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode$1.call(vSphereCloud.java:510) at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode$1.call(vSphereCloud.java:506) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:80) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
      

            Unassigned Unassigned
            vudayagiri01 Venkat U
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: