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

Unable to change virtual machine port group

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • vsphere-cloud-plugin
    • Debian 8, Jenkins 1.646, vsphere cloud plugin 2.9

      Trying to change the port group of my virtual machine to one that is used for all virtual machines in a particular Resource Pool. I get a null pointer exception, when I try to use the vsphere cloud plugin. Cloud user account is able to do that through Vcenter GUI

      Building on master in workspace /var/lib/jenkins/jobs/test vcenter networking reconfiguration/workspace
      [vSphere]
      [vSphere] Performing vSphere build step: "Power-Off VM"
      [vSphere] Attempting to use server configuration: "vcenter"
      [vSphere] Shutting Down VM FW-DEV...
      [vSphere] Successfully shutdown "FW-DEV"
      [vSphere]
      [vSphere] Performing vSphere build step: "Reconfigure VM"
      [vSphere] Attempting to use server configuration: "vcenter"
      [vSphere] Reconfiguring VM "FW-DEV". Please wait ...
      [vSphere] Preparing reconfigure: Edit Network Adapter ""
      [vSphere] Reconfiguring Distributed Switch Port Group -> pgFirewall Port Id ->
      [vSphere] Exception
      org.jenkinsci.plugins.vsphere.tools.VSphereException: java.lang.NullPointerException
      at org.jenkinsci.plugins.vsphere.tools.VSphere.getDistributedVirtualSwitchByPortGroup(VSphere.java:883)
      at org.jenkinsci.plugins.vsphere.builders.ReconfigureNetworkAdapters.perform(ReconfigureNetworkAdapters.java:173)
      at org.jenkinsci.plugins.vsphere.builders.Reconfigure.reconfigureVm(Reconfigure.java:81)
      at org.jenkinsci.plugins.vsphere.builders.Reconfigure.perform(Reconfigure.java:58)
      at org.jenkinsci.plugins.vsphere.VSphereBuildStepContainer.perform(VSphereBuildStepContainer.java:91)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      at hudson.model.Build$BuildExecution.build(Build.java:205)
      at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.lang.NullPointerException
      at org.jenkinsci.plugins.vsphere.tools.VSphere.getDistributedVirtualSwitchByPortGroup(VSphere.java:878)
      ... 13 more
      Build step 'vSphere Build Step' marked build as failure
      Finished: FAILURE

            Unassigned Unassigned
            wellu veli pekka jutila
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: