Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK [Add Jenkins slave SSH fingerprint to known hosts] failed #138

Open
ghost opened this issue Apr 7, 2017 · 2 comments
Open

TASK [Add Jenkins slave SSH fingerprint to known hosts] failed #138

ghost opened this issue Apr 7, 2017 · 2 comments
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Apr 7, 2017

I tried a new TOAD deployment from a fresh Centos 7.3.
The toad-bootstrap went fine.
But with the toad-deploy script, i'm not going futher than the:


TASK [Add Jenkins slave SSH fingerprint to known hosts].

Here's the ansible verbose output :

TASK [Add Jenkins slave SSH fingerprint to known hosts] ************************
task path: /home/toad/toad/jenkins_ssh.yml:140
Using module file /usr/lib/python2.7/site-packages/ansible/modules/extras/system/known_hosts.py
<jenkins_master> ESTABLISH DOCKER CONNECTION FOR USER: root
<jenkins_master> EXEC ['/bin/docker', 'exec', '-i', u'jenkins_master', u'/bin/sh', '-c', u'/bin/sh -c \'( umask 77 && mkdir -p "` echo /tmp/ansible-tmp-1491584077.51-119701673011617 `" && echo ansible-tmp-1491584077.51-119701673011617="` echo /tmp/ansible-tmp-1491584077.51-119701673011617 `" ) && sleep 0\'']
<jenkins_master> PUT /tmp/tmpQ_ijd6 TO /tmp/ansible-tmp-1491584077.51-119701673011617/known_hosts.py
<jenkins_master> EXEC ['/bin/docker', 'exec', '-i', u'jenkins_master', u'/bin/sh', '-c', u"/bin/sh -c 'setfacl -m u:jenkins:r-x /tmp/ansible-tmp-1491584077.51-119701673011617/ /tmp/ansible-tmp-1491584077.51-119701673011617/known_hosts.py && sleep 0'"]
<jenkins_master> EXEC ['/bin/docker', 'exec', '-i', u'jenkins_master', u'/bin/sh', '-c', u'/bin/sh -c \'sudo -H -S -n -u jenkins /bin/sh -c \'"\'"\'echo BECOME-SUCCESS-wvnttohwdtikxbkmbesorkefkomlmjfl; /usr/bin/python /tmp/ansible-tmp-1491584077.51-119701673011617/known_hosts.py\'"\'"\' && sleep 0\'']
<jenkins_master> EXEC ['/bin/docker', 'exec', '-i', u'jenkins_master', u'/bin/sh', '-c', u"/bin/sh -c 'rm -f -r /tmp/ansible-tmp-1491584077.51-119701673011617/ > /dev/null 2>&1 && sleep 0'"]
fatal: [jenkins_master]: FAILED! => {
    "changed": false,
    "cmd": "/bin/ssh-keygen -F TOAD -f /tmp/tmpNGINdZ",
    "failed": true,
    "invocation": {
        "module_args": {
            "key": "TOAD ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEl/sVmw4TWW6tN9Ra0AH5IxqMVacRkBpHVk3Zgz0vCamKNoISoL6bKIe1sWuBCEVq8rPtM2p4knjYV3jQbcZdc=",
            "name": "TOAD",
            "path": "/var/lib/jenkins/.ssh/known_hosts",
            "state": "present"
        },
        "module_name": "known_hosts"
    },
    "msg": "",
    "rc": 1,
    "stderr": "",
    "stdout": "",
    "stdout_lines": []
}
        to retry, use: --limit @/home/toad/toad/site.retry

PLAY RECAP *********************************************************************
jenkins_master             : ok=57   changed=4    unreachable=0    failed=1
slave01                    : ok=18   changed=3    unreachable=0    failed=0
@leifmadsen
Copy link
Contributor

@rivardetienne hrmmm the thing that pops out at me is why the name of the user is TOAD and not toad. What shell are you running this on? I assume bash since you said it was a fresh CentOS 7.3 installation.

@leifmadsen
Copy link
Contributor

So far I haven't had any issues deploying. To me it looks like a possible configuration issue with something being in uppercase that shouldn't be during the script run.

@rivardetienne any other feedback or logs you can give? I'll have to close this out in a couple days if we're not able to get additional information for debugging. Thanks!

@leifmadsen leifmadsen added this to the 17.04 milestone Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant