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

"Authentication failure" when use the "delegate_to" in the task

XMLWordPrintable

      The problem happen only when I run playbook in the Jenkins. In normal use everything is ok.

      The error message

      TASK [fuel : ...] ******
      task path: /var/lib/jenkins/jobs/Openstack Deploy/workspace/playbooks/openstack-deployment/roles/fuel/tasks/configure-pxe-server.yml:67
      <192.168.54.11> ESTABLISH SSH CONNECTION FOR USER: None
      <192.168.54.11> SSH: EXEC sshpass -d14 ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o ControlPath=/var/lib/jenkins/.ansible/cp/ansible-ssh-%h-%p-%r -tt 192.168.54.11 '/bin/sh -c '"'"'( umask 22 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1459173837.21-165158381236189 `" && echo "` echo $HOME/.ansible/tmp/ansible-tmp-1459173837.21-165158381236189 `" )'"'"''
      fatal: [fuel]: UNREACHABLE! => {"changed": false, "msg": "Authentication failure.", "unreachable": true}
      	to retry, use: --limit @/var/lib/jenkins/jobs/Openstack Deploy/workspace/playbooks/openstack-deployment/kvm-fuel.retry
      

      The task

      - name: ...
        synchronize:
          src: /mnt/fueliso/
          dest: '{{ tftp_root }}/fuel'
        delegate_to: '{{ delegate_host }}'
      

      I changed "{{ delegate_host }}" to plain ip address "192.168.54.11" - it didn't help

      The variable

      delegate_host: '{{ ansible_default_ipv4.address }}'
      

            sirot Jean-Christophe Sirot
            dissnn Dmitry S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: