Skip to content

Instantly share code, notes, and snippets.

@subodhp
Created December 25, 2017 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subodhp/efffe33a0d17d8a69687af6f2568bd29 to your computer and use it in GitHub Desktop.
Save subodhp/efffe33a0d17d8a69687af6f2568bd29 to your computer and use it in GitHub Desktop.
Ansible Error Output
TASK [openshift_version : Set openshift_version for rpm installation] ***********************************************************************************************************************************************************************
task path: /root/openshift-ansible/roles/openshift_version/tasks/main.yml:91
included: /root/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml for mymaster.local.com
TASK [openshift_version : Set rpm version to configure if openshift_pkg_version specified] **************************************************************************************************************************************************
task path: /root/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml:2
skipping: [mymaster.local.com] => {
"changed": false,
"skip_reason": "Conditional result was False",
"skipped": true
}
TASK [openshift_version : Get available origin version] *************************************************************************************************************************************************************************************
task path: /root/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml:11
Using module file /root/openshift-ansible/roles/lib_utils/library/repoquery.py
<mymaster.local.com> ESTABLISH SSH CONNECTION FOR USER: root
<mymaster.local.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/7d832251fc mymaster.local.com '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<mymaster.local.com> (0, '/root\n', '')
<mymaster.local.com> ESTABLISH SSH CONNECTION FOR USER: root
<mymaster.local.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/7d832251fc mymaster.local.com '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1514198171.29-248980702208527 `" && echo ansible-tmp-1514198171.29-248980702208527="` echo /root/.ansible/tmp/ansible-tmp-1514198171.29-248980702208527 `" ) && sleep 0'"'"''
<mymaster.local.com> (0, 'ansible-tmp-1514198171.29-248980702208527=/root/.ansible/tmp/ansible-tmp-1514198171.29-248980702208527\n', '')
<mymaster.local.com> PUT /tmp/tmp5_DwvE TO /root/.ansible/tmp/ansible-tmp-1514198171.29-248980702208527/repoquery.py
<mymaster.local.com> SSH: EXEC sftp -b - -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/7d832251fc '[mymaster.local.com]'
<mymaster.local.com> (0, 'sftp> put /tmp/tmp5_DwvE /root/.ansible/tmp/ansible-tmp-1514198171.29-248980702208527/repoquery.py\n', '')
<mymaster.local.com> ESTABLISH SSH CONNECTION FOR USER: root
<mymaster.local.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/7d832251fc mymaster.local.com '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1514198171.29-248980702208527/ /root/.ansible/tmp/ansible-tmp-1514198171.29-248980702208527/repoquery.py && sleep 0'"'"''
<mymaster.local.com> (0, '', '')
<mymaster.local.com> ESTABLISH SSH CONNECTION FOR USER: root
<mymaster.local.com> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/7d832251fc -tt mymaster.local.com '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1514198171.29-248980702208527/repoquery.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1514198171.29-248980702208527/" > /dev/null 2>&1 && sleep 0'"'"''
<mymaster.local.com> (0, 'Traceback (most recent call last):\r\n File "/tmp/ansible_XnWkJB/ansible_module_repoquery.py", line 641, in <module>\r\n main()\r\n File "/tmp/ansible_XnWkJB/ansible_module_repoquery.py", line 631, in main\r\n rval = Repoquery.run_ansible(module.params, module.check_mode)\r\n File "/tmp/ansible_XnWkJB/ansible_module_repoquery.py", line 587, in run_ansible\r\n results = repoquery.repoquery()\r\n File "/tmp/ansible_XnWkJB/ansible_module_repoquery.py", line 546, in repoquery\r\n rval = self._repoquery_cmd(repoquery_cmd, True, \'raw\')\r\n File "/tmp/ansible_XnWkJB/ansible_module_repoquery.py", line 384, in _repoquery_cmd\r\n returncode, stdout, stderr = _run(cmds)\r\n File "/tmp/ansible_XnWkJB/ansible_module_repoquery.py", line 355, in _run\r\n stderr=subprocess.PIPE)\r\n File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__\r\n errread, errwrite)\r\n File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child\r\n raise child_exception\r\nOSError: [Errno 2] No such file or directory\r\n', 'Shared connection to mymaster.local.com closed.\r\n')
fatal: [mymaster.local.com]: FAILED! => {
"changed": false,
"failed": true,
"module_stderr": "Shared connection to mymaster.local.com closed.\r\n",
"module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_XnWkJB/ansible_module_repoquery.py\", line 641, in <module>\r\n main()\r\n File \"/tmp/ansible_XnWkJB/ansible_module_repoquery.py\", line 631, in main\r\n rval = Repoquery.run_ansible(module.params, module.check_mode)\r\n File \"/tmp/ansible_XnWkJB/ansible_module_repoquery.py\", line 587, in run_ansible\r\n results = repoquery.repoquery()\r\n File \"/tmp/ansible_XnWkJB/ansible_module_repoquery.py\", line 546, in repoquery\r\n rval = self._repoquery_cmd(repoquery_cmd, True, 'raw')\r\n File \"/tmp/ansible_XnWkJB/ansible_module_repoquery.py\", line 384, in _repoquery_cmd\r\n returncode, stdout, stderr = _run(cmds)\r\n File \"/tmp/ansible_XnWkJB/ansible_module_repoquery.py\", line 355, in _run\r\n stderr=subprocess.PIPE)\r\n File \"/usr/lib64/python2.7/subprocess.py\", line 711, in __init__\r\n errread, errwrite)\r\n File \"/usr/lib64/python2.7/subprocess.py\", line 1327, in _execute_child\r\n raise child_exception\r\nOSError: [Errno 2] No such file or directory\r\n",
"msg": "MODULE FAILURE",
"rc": 0
}
to retry, use: --limit @/root/openshift-ansible/playbooks/deploy_cluster.retry
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
localhost : ok=11 changed=0 unreachable=0 failed=0
myinfra.local.com : ok=13 changed=0 unreachable=0 failed=0
mymaster.local.com : ok=21 changed=0 unreachable=0 failed=1
mynode.local.com : ok=13 changed=0 unreachable=0 failed=0
INSTALLER STATUS ****************************************************************************************************************************************************************************************************************************
Initialization : In Progress (0:00:26)
Failure summary:
1. Hosts: mymaster.local.com
Play: Determine openshift_version to configure on first master
Task: Get available origin version
Message: MODULE FAILURE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment