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

Reconfigure VM - Add NIC results in error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • vsphere-cloud-plugin
    • Jenkins 2.204.5
      vSphere plugin 2.23
      vCenter 6.7, 15976728
      ESXi 6.7.0, 13981272

      Reconfigure VM > Edit Network Adapter > Add results in an error message. Removing a NIC, for example works fine.

       

      May 13, 2020 9:05:59 AM FINEST com.vmware.vim25.ws.WSClient postPayload: <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ReconfigVM_Task xmlns="urn:vim25"><_this type="VirtualMachine">vm-11129</_this><spec><npivDesiredNodeWwns xsi:type="xsd:short">0</npivDesiredNodeWwns><npivDesiredPortWwns xsi:type="xsd:short">0</npivDesiredPortWwns><deviceChange><device xsi:type="VirtualE1000"><key xsi:type="xsd:int">0</key><deviceInfo><label>Network adapter 1</label></deviceInfo><backing xsi:type="VirtualEthernetCardNetworkBackingInfo"></backing><macAddress>00:50:56:1a:ff:ff</macAddress></device></deviceChange></spec></ReconfigVM_Task></soapenv:Body></soapenv:Envelope>
      May 13, 2020 9:05:59 AM FINEST com.vmware.vim25.ws.WSClient postSetting Cookie.
      May 13, 2020 9:05:59 AM FINE com.vmware.vim25.ws.WSClient getInputStreamFromConnectionCaught an IOException. Reading ErrorStream for results.
      java.io.IOException: Server returned HTTP response code: 500 for URL: https://192.168.220.103/sdk
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1900)
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
      	at com.vmware.vim25.ws.WSClient.getInputStreamFromConnection(WSClient.java:187)
      	at com.vmware.vim25.ws.WSClient.post(WSClient.java:174)
      	at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:94)
      	at com.vmware.vim25.ws.VimStub.reconfigVM_Task(VimStub.java:2200)
      	at com.vmware.vim25.mo.VirtualMachine.reconfigVM_Task(VirtualMachine.java:407)
      	at org.jenkinsci.plugins.vsphere.tools.VSphere.reconfigureVm(VSphere.java:350)
      	at org.jenkinsci.plugins.vsphere.builders.Reconfigure.reconfigureVm(Reconfigure.java:129)
      	at org.jenkinsci.plugins.vsphere.builders.Reconfigure.perform(Reconfigure.java:80)
      	at org.jenkinsci.plugins.vsphere.VSphereBuildStepContainer.perform(VSphereBuildStepContainer.java:101)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      	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:1853)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:427)
      
      May 13, 2020 9:05:59 AM FINEST com.vmware.vim25.ws.WSClient invokeConverting xml response from server to: ManagedObjectReference
      May 13, 2020 9:05:59 AM FINE com.vmware.vim25.ws.XmlGenDom fromXMLParsing XML payload from server. ManagedObjectReference
      May 13, 2020 9:05:59 AM FINEST com.vmware.vim25.ws.XmlGenDom fromXMLXML Document: <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>
      Required property summary is missing from data object of type Description
      
      while parsing serialized DataObject of type vim.Description
      at line 1, column 578
      
      while parsing property "deviceInfo" of static type Description
      
      while parsing serialized DataObject of type vim.vm.device.VirtualE1000
      at line 1, column 515
      
      while parsing property "device" of static type VirtualDevice
      
      while parsing serialized DataObject of type vim.vm.device.VirtualDeviceSpec
      at line 1, column 501
      
      while parsing property "deviceChange" of static type ArrayOfVirtualDeviceConfigSpec
      
      while parsing serialized DataObject of type vim.vm.ConfigSpec
      at line 1, column 365
      
      while parsing call information for method ReconfigVM_Task
      at line 1, column 285
      
      while parsing SOAP body
      at line 1, column 271
      
      while parsing SOAP envelope
      at line 1, column 38
      
      while parsing HTTP request for method reconfigure
      on object of type vim.VirtualMachine
      at line 1, column 0</faultstring><detail><InvalidRequestFault xmlns="urn:vim25" xsi:type="InvalidRequest"></InvalidRequestFault></detail></soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>
      May 13, 2020 9:05:59 AM SEVERE com.vmware.vim25.ws.WSClient invokeException caught while invoking method: ReconfigVM_Task
      com.vmware.vim25.InvalidRequest: 
      Required property summary is missing from data object of type Description
      
      while parsing serialized DataObject of type vim.Description
      at line 1, column 578
      
      while parsing property "deviceInfo" of static type Description
      
      while parsing serialized DataObject of type vim.vm.device.VirtualE1000
      at line 1, column 515
      
      while parsing property "device" of static type VirtualDevice
      
      while parsing serialized DataObject of type vim.vm.device.VirtualDeviceSpec
      at line 1, column 501
      
      while parsing property "deviceChange" of static type ArrayOfVirtualDeviceConfigSpec
      
      while parsing serialized DataObject of type vim.vm.ConfigSpec
      at line 1, column 365
      
      while parsing call information for method ReconfigVM_Task
      at line 1, column 285
      
      while parsing SOAP body
      at line 1, column 271
      
      while parsing SOAP envelope
      at line 1, column 38
      
      while parsing HTTP request for method reconfigure
      on object of type vim.VirtualMachine
      at line 1, column 0
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	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.reconfigVM_Task(VimStub.java:2200)
      	at com.vmware.vim25.mo.VirtualMachine.reconfigVM_Task(VirtualMachine.java:407)
      	at org.jenkinsci.plugins.vsphere.tools.VSphere.reconfigureVm(VSphere.java:350)
      	at org.jenkinsci.plugins.vsphere.builders.Reconfigure.reconfigureVm(Reconfigure.java:129)
      	at org.jenkinsci.plugins.vsphere.builders.Reconfigure.perform(Reconfigure.java:80)
      	at org.jenkinsci.plugins.vsphere.VSphereBuildStepContainer.perform(VSphereBuildStepContainer.java:101)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)
      	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:1853)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:427)
      
      
      

            Unassigned Unassigned
            supfors sup fors
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: