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

Invalid login error on revert snapshot operation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • vsphere-cloud-plugin
    • jenkins : 2.277.4.3-rolling
      vsphere plugin : 2.25
      Pipeline: Basic Steps 2,23
      Folders 6,15
      Command Agent Launcher 1,5
      Credentials 2,3,15,1
      Node Iterator API 1,5,0
      SSH Build Agents ≥1,31,5

      Hello,

      We are facing a blocking issue :
      the core problem is described in this pipeline :

      pipeline {
        agent any
          stages {
            stage('Hello') {
              steps

      {                     vSphere buildStep: [$class: 'RevertToSnapshot', snapshotName: 'CLEAN_VM', vm:        'srdspiccloudxx '], serverName: 'Vcenter'                 }

            }
        }
      }

       

       

      the revert often fails with this message :

      10:29:32 Running on srdspiccloudxx in C:\CI\workspace\ic\poc\sylv1\reverttest
      {{ 10:29:32 [Pipeline] {}}
      {{ 10:29:32 [Pipeline] stage}}
      {{ 10:29:32 [Pipeline] { (Hello)}}
      {{ 10:29:32 [Pipeline] retry}}
      {{ 10:29:32 [Pipeline] {}}
      {{ 10:29:32 [Pipeline] timeout}}
      {{ 10:29:32 Timeout set to expire in 5 min 0 sec}}
      {{ 10:29:32 [Pipeline]}}{{

      { 10:29:32 [Pipeline] vSphere 10:29:32 [vSphere] 10:29:32 [vSphere] Performing vSphere build step: "Revert to Snapshot" 10:29:32 [vSphere] Attempting to use server configuration: "Vcenter" 10:29:32 [Pipeline] }

      }}10:29:33 [Pipeline] // timeout
      {{ 10:29:33 [Pipeline] echo}}
      {{ 10:29:33 com.vmware.vim25.InvalidLogin: Cannot complete login due to an incorrect user name or password.}}
      {{ 10:29:33 [Pipeline] error}}
      {{ 10:29:33 [Pipeline] }}}
      {{ 10:29:33 ERROR: Timeout}}

      a more complete stack can be obtained using URL <jenkins server>/configureClouds/ and pressing button "Test Connection" multiple times :

      com.vmware.vim25.InvalidLogin: Cannot complete login due to an incorrect user name or password.

      at sun.reflect.GeneratedConstructorAccessor2783.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)

            Unassigned Unassigned
            romain romain suire
            Votes:
            8 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: