[JIRA] [ansible-plugin] (JENKINS-33849) "Authentication failure" when use the "delegate_to" in the task

3 views
Skip to first unread message

dissnn@gmail.com (JIRA)

unread,
Mar 28, 2016, 11:05:03 AM3/28/16
to jenkinsc...@googlegroups.com
Dmitry S created an issue
 
Jenkins / Bug JENKINS-33849
"Authentication failure" when use the "delegate_to" in the task
Issue Type: Bug Bug
Assignee: Jean-Christophe Sirot
Components: ansible-plugin
Created: 2016/Mar/28 3:04 PM
Environment: Ubuntu 14.04 3.13.0-52-generic x86_64
Jenkins 1.655
ansible-plugin 0.4
Ansible 2.0.1.0
Labels: plugin jenkins ansible-plugin ansible
Priority: Major Major
Reporter: Dmitry S

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 }}'
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

dissnn@gmail.com (JIRA)

unread,
Apr 12, 2016, 7:06:03 AM4/12/16
to jenkinsc...@googlegroups.com
Dmitry S updated an issue
Change By: Dmitry S
The problem happen only when I run playbook in the Jenkins. In normal use everything is ok.

*The error message*
{code:java}

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
{code}

*The task*
{code:java}

- name: ...
  synchronize:
    src: /mnt/fueliso/
    dest: '{{ tftp_root }}/fuel'
  delegate_to: '{{ delegate_host }}'
{code}
_I I  changed "{{ delegate_host }}" to plain ip address "192.168.54.11" - it didn't  help_  help

*The variable*
{code:java}
delegate_host: '{{ ansible_default_ipv4.address }}'
{code}

jcsirot@gmail.com (JIRA)

unread,
Oct 26, 2016, 10:57:02 AM10/26/16
to jenkinsc...@googlegroups.com
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

dissnn@gmail.com (JIRA)

unread,
Aug 9, 2019, 10:51:03 PM8/9/19
to jenkinsc...@googlegroups.com
Dmitry S closed an issue as Fixed
 
Change By: Dmitry S
Status: Open Closed
Resolution: Fixed
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages