openshift-ansible: fail install with latest openshift-ansible
I’m using CentOS 7.4 and @gshipley ansible configuration along with the latest update to use deploy_cluster.yml.
My inventory.erb file is the same as @gshipley just different host & domain name. When I run the command: ansible-playbook -i installcentos/inventory.erb openshift-ansible/playbooks/deploy_cluster.yml it stops after a minute or so with the following message:
TASK [openshift_version : Get available origin version] ****************************************************************************************** fatal: [openshift.hetzlabs.io]: FAILED! => {"changed": false, "module_stderr": "Shared connection to openshift.hetzlabs.io closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_qhIerf/ansible_module_repoquery.py\", line 641, in <module>\r\n main()\r\n File \"/tmp/ansible_qhIerf/ansible_module_repoquery.py\", line 631, in main\r\n rval = Repoquery.run_ansible(module.params, module.check_mode)\r\n File \"/tmp/ansible_qhIerf/ansible_module_repoquery.py\", line 587, in run_ansible\r\n results = repoquery.repoquery()\r\n File \"/tmp/ansible_qhIerf/ansible_module_repoquery.py\", line 546, in repoquery\r\n rval = self._repoquery_cmd(repoquery_cmd, True, 'raw')\r\n File \"/tmp/ansible_qhIerf/ansible_module_repoquery.py\", line 384, in _repoquery_cmd\r\n returncode, stdout, stderr = _run(cmds)\r\n File \"/tmp/ansible_qhIerf/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 @/home/hetz/openshift-ansible/playbooks/deploy_cluster.retry
I thought it was related to firewalld but it’s stopped and there are no iptable rules.
Am I missing something?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18
I had the same exact problem, I solved it by running
playbooks/prerequisites.ymlplaybook first - this should be mentioned in docs.Ok, looks like I found the issue. the config file mentioned osm_use_cockpit=true while my machine doesn’t have cockpit installed. Removed this line and it works.
i can confirm i pass openstack installation with release
openshift-ansible-3.9.0-0.4.0From quick review of the deploy process, on latest openshift ansible its seems to skip major chunk of the requirements/facts installation, hence its also not installing the required repos and libs, but only that, its not putting in many important deployment facts required for the deployment to succeed…sudo yum install -y centos-release-openshift-originfixed for me this issue (but not others) on latest cloudimg CentOS7… from a very brief view its some regression that the playbook is not adding the yum repos anymore. Again, atleast on CentOS7