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

vSphere Plugin: Cannot Access IP of My VM on Node Configure Section

      I created cloud for my vcenter and Im trying to add nodes for Jenkins but in node configure section I can't access VM's IP address so I can't connect my node with ssh. 

      While my nodes get IP from DHCP server, I can't really now the IP address because it can be change.

          [JENKINS-61842] vSphere Plugin: Cannot Access IP of My VM on Node Configure Section

          Nick Jones added a comment -

          Did you try putting ${NODE_NAME} as the value for Host? That's what we use, and it works well.

          Nick Jones added a comment - Did you try putting ${NODE_NAME } as the value for Host? That's what we use, and it works well.

          Gokberk Ince added a comment -

          medianick Yes I tried, 

          [MAC2] Starting Virtual Machine...
          [MAC2] Powering on VM
          [MAC2] Waiting for VMTools
          [MAC2] VM Tools are running
          [MAC2] Finished wait for VMTools
          [MAC2] Waiting for 10 seconds before asking hudson.plugins.sshslaves.SSHLauncher@7532717a to launch slave.
          [MAC2] Asking SSHLauncher to launch slave.
          SSHLauncher{host='${NODE_NAME}', port=22, credentialsId='866b2b93-717a-4c91-9d46-f5f79c45726a', jvmOptions='', javaPath='', prefixStartSlaveCmd='', suffixStartSlaveCmd='', launchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.NonVerifyingKeyVerificationStrategy, tcpNoDelay=false, trackCredentials=true}
          [05/21/20 11:57:01] [SSH] Opening SSH connection to ${NODE_NAME}:22.
          ${NODE_NAME}: Temporary failure in name resolution
          SSH Connection failed with IOException: "${NODE_NAME}: Temporary failure in name resolution", retrying in 15 seconds. There are 10 more retries left.
          ${NODE_NAME}: Temporary failure in name resolution
          SSH Connection failed with IOException: "${NODE_NAME}: Temporary failure in name resolution", retrying in 15 seconds. There are 9 more retries left.
          

          Gokberk Ince added a comment - medianick Yes I tried,  [MAC2] Starting Virtual Machine... [MAC2] Powering on VM [MAC2] Waiting for VMTools [MAC2] VM Tools are running [MAC2] Finished wait for VMTools [MAC2] Waiting for 10 seconds before asking hudson.plugins.sshslaves.SSHLauncher@7532717a to launch slave. [MAC2] Asking SSHLauncher to launch slave. SSHLauncher{host= '${NODE_NAME}' , port=22, credentialsId= '866b2b93-717a-4c91-9d46-f5f79c45726a' , jvmOptions= '', javaPath=' ', prefixStartSlaveCmd=' ', suffixStartSlaveCmd=' ', launchTimeoutSeconds=60, maxNumRetries=10, retryWaitTime=15, sshHostKeyVerificationStrategy=hudson.plugins.sshslaves.verifiers.NonVerifyingKeyVerificationStrategy, tcpNoDelay= false , trackCredentials= true } [05/21/20 11:57:01] [SSH] Opening SSH connection to ${NODE_NAME}:22. ${NODE_NAME}: Temporary failure in name resolution SSH Connection failed with IOException: "${NODE_NAME}: Temporary failure in name resolution" , retrying in 15 seconds. There are 10 more retries left. ${NODE_NAME}: Temporary failure in name resolution SSH Connection failed with IOException: "${NODE_NAME}: Temporary failure in name resolution" , retrying in 15 seconds. There are 9 more retries left.

            Unassigned Unassigned
            gokberkince Gokberk Ince
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: