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

fail install with latest openshift-ansible #6560

Open
hetzbh opened this Issue Dec 23, 2017 · 11 comments

Comments

Projects
None yet
6 participants
@hetzbh

hetzbh commented Dec 23, 2017

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?

@nirdshabo

This comment has been minimized.

Show comment
Hide comment
@nirdshabo

nirdshabo Dec 23, 2017

sudo yum install -y centos-release-openshift-origin
fixed 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

nirdshabo commented Dec 23, 2017

sudo yum install -y centos-release-openshift-origin
fixed 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

@hetzbh

This comment has been minimized.

Show comment
Hide comment
@hetzbh

hetzbh Dec 23, 2017

inventory.txt
I thought about it too and I added it. Didn't help much. I enabled NFS (since I use it for ETCD) and .. same thing.

[OSEv3:children]

masters
nodes
nfs
etcd

[masters]
openshift.hetzlabs.io openshift_schedulable=true

[nfs]
openshift.hetzlabs.io

[etcd]
openshift.hetzlabs.io

[nodes]
openshift.hetzlabs.io openshift_schedulable=true openshift_node_labels="{'region': 'infra', 'zone': 'default'}"

[OSEv3:vars]
ansible_user=hetz
ansible_ssh_user=root
ansible_become=yes

enable_excluders=false
enable_docker_excluder=false

containerized=True
os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
openshift_disable_check=disk_availability,docker_storage,memory_availability,docker_image_availability

openshift_node_kubelet_args={'pods-per-core': ['10']}

deployment_type=origin
openshift_deployment_type=origin

openshift_release=v3.6.0
openshift_pkg_version=v3.6.0
openshift_image_tag=v3.6.0

openshift_hosted_etcd_storage_kind=nfs
openshift_hosted_etcd_storage_nfs_options="*(rw,root_squash,sync,no_wdelay)"
openshift_hosted_etcd_storage_nfs_directory=/opt/osev3-etcd
openshift_hosted_etcd_storage_volume_name=broker-ansible-etcd
openshift_hosted_etcd_storage_access_modes=["ReadWriteOnce"]
openshift_hosted_etcd_storage_volume_size=10G
openshift_hosted_etcd_storage_labels={'storage': 'etcd'}

osm_use_cockpit=true

openshift_metrics_install_metrics=True

openshift_logging_install_logging=True
openshift_logging_image_version=v3.7

openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]

openshift_public_hostname=openshift.hetzlabs.io
openshift_master_default_subdomain=apps.hetzlabs.io

hetzbh commented Dec 23, 2017

inventory.txt
I thought about it too and I added it. Didn't help much. I enabled NFS (since I use it for ETCD) and .. same thing.

[OSEv3:children]

masters
nodes
nfs
etcd

[masters]
openshift.hetzlabs.io openshift_schedulable=true

[nfs]
openshift.hetzlabs.io

[etcd]
openshift.hetzlabs.io

[nodes]
openshift.hetzlabs.io openshift_schedulable=true openshift_node_labels="{'region': 'infra', 'zone': 'default'}"

[OSEv3:vars]
ansible_user=hetz
ansible_ssh_user=root
ansible_become=yes

enable_excluders=false
enable_docker_excluder=false

containerized=True
os_sdn_network_plugin_name='redhat/openshift-ovs-multitenant'
openshift_disable_check=disk_availability,docker_storage,memory_availability,docker_image_availability

openshift_node_kubelet_args={'pods-per-core': ['10']}

deployment_type=origin
openshift_deployment_type=origin

openshift_release=v3.6.0
openshift_pkg_version=v3.6.0
openshift_image_tag=v3.6.0

openshift_hosted_etcd_storage_kind=nfs
openshift_hosted_etcd_storage_nfs_options="*(rw,root_squash,sync,no_wdelay)"
openshift_hosted_etcd_storage_nfs_directory=/opt/osev3-etcd
openshift_hosted_etcd_storage_volume_name=broker-ansible-etcd
openshift_hosted_etcd_storage_access_modes=["ReadWriteOnce"]
openshift_hosted_etcd_storage_volume_size=10G
openshift_hosted_etcd_storage_labels={'storage': 'etcd'}

osm_use_cockpit=true

openshift_metrics_install_metrics=True

openshift_logging_install_logging=True
openshift_logging_image_version=v3.7

openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]

openshift_public_hostname=openshift.hetzlabs.io
openshift_master_default_subdomain=apps.hetzlabs.io

@subodhp

This comment has been minimized.

Show comment
Hide comment
@subodhp

subodhp Dec 25, 2017

I am facing the same error, I tried running using -vvv. Any help is appreciated.

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-1514197910.01-113682525007274" && echo ansible-tmp-1514197910.01-113682525007274="echo /root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274" ) && sleep 0'"'"''
<mymaster.local.com> (0, 'ansible-tmp-1514197910.01-113682525007274=/root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274\n', '')
<mymaster.local.com> PUT /tmp/tmpLpXr0A TO /root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274/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/tmpLpXr0A /root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274/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-1514197910.01-113682525007274/ /root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274/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-1514197910.01-113682525007274/repoquery.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274/" > /dev/null 2>&1 && sleep 0'"'"''
<mymaster.local.com> (0, 'Traceback (most recent call last):\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 641, in \r\n main()\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 631, in main\r\n rval = Repoquery.run_ansible(module.params, module.check_mode)\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 587, in run_ansible\r\n results = repoquery.repoquery()\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 546, in repoquery\r\n rval = self._repoquery_cmd(repoquery_cmd, True, 'raw')\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 384, in _repoquery_cmd\r\n returncode, stdout, stderr = _run(cmds)\r\n File "/tmp/ansible_h4Jvxw/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_h4Jvxw/ansible_module_repoquery.py", line 641, in \r\n main()\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 631, in main\r\n rval = Repoquery.run_ansible(module.params, module.check_mode)\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 587, in run_ansible\r\n results = repoquery.repoquery()\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 546, in repoquery\r\n rval = self._repoquery_cmd(repoquery_cmd, True, 'raw')\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 384, in _repoquery_cmd\r\n returncode, stdout, stderr = _run(cmds)\r\n File "/tmp/ansible_h4Jvxw/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=14 changed=0 unreachable=0 failed=0
mymaster.local.com : ok=23 changed=0 unreachable=0 failed=1
mynode.local.com : ok=14 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
    [root@myadmin ansible]#

Thanks,
Subodh Pachghare

subodhp commented Dec 25, 2017

I am facing the same error, I tried running using -vvv. Any help is appreciated.

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-1514197910.01-113682525007274" && echo ansible-tmp-1514197910.01-113682525007274="echo /root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274" ) && sleep 0'"'"''
<mymaster.local.com> (0, 'ansible-tmp-1514197910.01-113682525007274=/root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274\n', '')
<mymaster.local.com> PUT /tmp/tmpLpXr0A TO /root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274/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/tmpLpXr0A /root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274/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-1514197910.01-113682525007274/ /root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274/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-1514197910.01-113682525007274/repoquery.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1514197910.01-113682525007274/" > /dev/null 2>&1 && sleep 0'"'"''
<mymaster.local.com> (0, 'Traceback (most recent call last):\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 641, in \r\n main()\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 631, in main\r\n rval = Repoquery.run_ansible(module.params, module.check_mode)\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 587, in run_ansible\r\n results = repoquery.repoquery()\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 546, in repoquery\r\n rval = self._repoquery_cmd(repoquery_cmd, True, 'raw')\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 384, in _repoquery_cmd\r\n returncode, stdout, stderr = _run(cmds)\r\n File "/tmp/ansible_h4Jvxw/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_h4Jvxw/ansible_module_repoquery.py", line 641, in \r\n main()\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 631, in main\r\n rval = Repoquery.run_ansible(module.params, module.check_mode)\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 587, in run_ansible\r\n results = repoquery.repoquery()\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 546, in repoquery\r\n rval = self._repoquery_cmd(repoquery_cmd, True, 'raw')\r\n File "/tmp/ansible_h4Jvxw/ansible_module_repoquery.py", line 384, in _repoquery_cmd\r\n returncode, stdout, stderr = _run(cmds)\r\n File "/tmp/ansible_h4Jvxw/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=14 changed=0 unreachable=0 failed=0
mymaster.local.com : ok=23 changed=0 unreachable=0 failed=1
mynode.local.com : ok=14 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
    [root@myadmin ansible]#

Thanks,
Subodh Pachghare

@nirdshabo

This comment has been minimized.

Show comment
Hide comment
@nirdshabo

nirdshabo Dec 25, 2017

i can confirm i pass openstack installation with release openshift-ansible-3.9.0-0.4.0
From 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...

nirdshabo commented Dec 25, 2017

i can confirm i pass openstack installation with release openshift-ansible-3.9.0-0.4.0
From 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...

@hetzbh

This comment has been minimized.

Show comment
Hide comment
@hetzbh

hetzbh Dec 30, 2017

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.

hetzbh commented Dec 30, 2017

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.

openshift-merge-robot added a commit that referenced this issue Jan 8, 2018

Merge pull request #6580 from tomassedovic/openstack-fixes
Automatic merge from submit-queue.

Openstack fixes

This includes a few fixes for the OpenStack provider.

It should fix #6555 and possibly also #6560.
@adgud

This comment has been minimized.

Show comment
Hide comment
@adgud

adgud Feb 9, 2018

I had the same exact problem, I solved it by running playbooks/prerequisites.yml playbook first - this should be mentioned in docs.

adgud commented Feb 9, 2018

I had the same exact problem, I solved it by running playbooks/prerequisites.yml playbook first - this should be mentioned in docs.

@lukasb95

This comment has been minimized.

Show comment
Hide comment
@lukasb95

lukasb95 Apr 2, 2018

@adgud where to find that playbooks/prerequisites.yml file?

It's already more than 2 weeks and and my openshift-container platform still fails to install with various problems.

Last installation error is the same like ts:
2018-04-02 10:41:16,134 p=12188 u=root | fatal: [osnodea.172.16.0.15.nip.io]: FAILED! => {"changed": false, "module_stderr": "Shared connection to osnodea.172.16.0.15.nip.io closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/tmp/ansible_d2lUs_/ansible_module_repoquery.py", line 642, in \r\n main()\r\n File "/tmp/ansible_d2lUs_/ansible_module_repoquery.py", line 632, in main\r\n rval = Repoquery.run_ansible(module.params, module.check_mode)\r\n File "/tmp/ansible_d2lUs_/ansible_module_repoquery.py", line 588, in run_ansible\r\n results = repoquery.repoquery()\r\n File "/tmp/ansible_d2lUs_/ansible_module_repoquery.py", line 547, in repoquery\r\n rval = self.repoquery_cmd(repoquery_cmd, True, 'raw')\r\n File "/tmp/ansible_d2lUs/ansible_module_repoquery.py", line 385, in _repoquery_cmd\r\n returncode, stdout, stderr = run(cmds)\r\n File "/tmp/ansible_d2lUs/ansible_module_repoquery.py", line 356, 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}

hopefully someone can help me...

lukasb95 commented Apr 2, 2018

@adgud where to find that playbooks/prerequisites.yml file?

It's already more than 2 weeks and and my openshift-container platform still fails to install with various problems.

Last installation error is the same like ts:
2018-04-02 10:41:16,134 p=12188 u=root | fatal: [osnodea.172.16.0.15.nip.io]: FAILED! => {"changed": false, "module_stderr": "Shared connection to osnodea.172.16.0.15.nip.io closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File "/tmp/ansible_d2lUs_/ansible_module_repoquery.py", line 642, in \r\n main()\r\n File "/tmp/ansible_d2lUs_/ansible_module_repoquery.py", line 632, in main\r\n rval = Repoquery.run_ansible(module.params, module.check_mode)\r\n File "/tmp/ansible_d2lUs_/ansible_module_repoquery.py", line 588, in run_ansible\r\n results = repoquery.repoquery()\r\n File "/tmp/ansible_d2lUs_/ansible_module_repoquery.py", line 547, in repoquery\r\n rval = self.repoquery_cmd(repoquery_cmd, True, 'raw')\r\n File "/tmp/ansible_d2lUs/ansible_module_repoquery.py", line 385, in _repoquery_cmd\r\n returncode, stdout, stderr = run(cmds)\r\n File "/tmp/ansible_d2lUs/ansible_module_repoquery.py", line 356, 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}

hopefully someone can help me...

@adgud

This comment has been minimized.

Show comment
Hide comment
@adgud

adgud commented Apr 3, 2018

@lukasb95
It's here.

@lukasb95

This comment has been minimized.

Show comment
Hide comment
@lukasb95

lukasb95 Apr 4, 2018

Thanks,
Currently I'm stuck at installing the web console -- the web console couldn't start...

lukasb95 commented Apr 4, 2018

Thanks,
Currently I'm stuck at installing the web console -- the web console couldn't start...

@Git-yangrui

This comment has been minimized.

Show comment
Hide comment
@Git-yangrui

Git-yangrui Oct 10, 2018

TASK [Gather Cluster facts and set is_containerized if needed] ****************************************************************************************************************************************************************
Wednesday 10 October 2018 11:58:43 -0400 (0:00:00.182) 0:00:16.777 *****
fatal: [node2]: FAILED! => {"changed": false, "module_stderr": "KeyError('ansible_os_family',)\nTraceback (most recent call last):\n File "/tmp/ansible_TwhDzs/ansible_module_openshift_facts.py", line 2501, in \n main()\n File "/tmp/ansible_TwhDzs/ansible_module_openshift_facts.py", line 2488, in main\n protected_facts_to_overwrite)\n File "/tmp/ansible_TwhDzs/ansible_module_openshift_facts.py", line 1841, in init\n protected_facts_to_overwrite)\n File "/tmp/ansible_TwhDzs/ansible_module_openshift_facts.py", line 1878, in generate_facts\n defaults = self.get_defaults(roles, deployment_type, deployment_subtype)\n File "/tmp/ansible_TwhDzs/ansible_module_openshift_facts.py", line 1969, in get_defaults\n if self.system_facts['ansible_pkg_mgr'] == 'dnf':\nKeyError: 'ansible_pkg_mgr'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
fatal: [node1]: FAILED! => {"changed": false, "module_stderr": "KeyError('ansible_os_family',)\nTraceback (most recent call last):\n File "/tmp/ansible_k7JYnJ/ansible_module_openshift_facts.py", line 2501, in \n main()\n File "/tmp/ansible_k7JYnJ/ansible_module_openshift_facts.py", line 2488, in main\n protected_facts_to_overwrite)\n File "/tmp/ansible_k7JYnJ/ansible_module_openshift_facts.py", line 1841, in init\n protected_facts_to_overwrite)\n File "/tmp/ansible_k7JYnJ/ansible_module_openshift_facts.py", line 1878, in generate_facts\n defaults = self.get_defaults(roles, deployment_type, deployment_subtype)\n File "/tmp/ansible_k7JYnJ/ansible_module_openshift_facts.py", line 1969, in get_defaults\n if self.system_facts['ansible_pkg_mgr'] == 'dnf':\nKeyError: 'ansible_pkg_mgr'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
fatal: [master]: FAILED! => {"changed": false, "module_stderr": "KeyError('ansible_os_family',)\nTraceback (most recent call last):\n File "/tmp/ansible_zsiRAu/ansible_module_openshift_facts.py", line 2501, in \n main()\n File "/tmp/ansible_zsiRAu/ansible_module_openshift_facts.py", line 2488, in main\n protected_facts_to_overwrite)\n File "/tmp/ansible_zsiRAu/ansible_module_openshift_facts.py", line 1841, in init\n protected_facts_to_overwrite)\n File "/tmp/ansible_zsiRAu/ansible_module_openshift_facts.py", line 1878, in generate_facts\n defaults = self.get_defaults(roles, deployment_type, deployment_subtype)\n File "/tmp/ansible_zsiRAu/ansible_module_openshift_facts.py", line 1969, in get_defaults\n if self.system_facts['ansible_pkg_mgr'] == 'dnf':\nKeyError: 'ansible_pkg_mgr'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}

NO MORE HOSTS LEFT ************************************************************************************************************************************************************************************************************

PLAY RECAP ********************************************************************************************************************************************************************************************************************
localhost : ok=11 changed=0 unreachable=0 failed=0
master : ok=21 changed=0 unreachable=0 failed=1
node1 : ok=20 changed=0 unreachable=0 failed=1
node2 : ok=20 changed=0 unreachable=0 failed=1

Git-yangrui commented Oct 10, 2018

TASK [Gather Cluster facts and set is_containerized if needed] ****************************************************************************************************************************************************************
Wednesday 10 October 2018 11:58:43 -0400 (0:00:00.182) 0:00:16.777 *****
fatal: [node2]: FAILED! => {"changed": false, "module_stderr": "KeyError('ansible_os_family',)\nTraceback (most recent call last):\n File "/tmp/ansible_TwhDzs/ansible_module_openshift_facts.py", line 2501, in \n main()\n File "/tmp/ansible_TwhDzs/ansible_module_openshift_facts.py", line 2488, in main\n protected_facts_to_overwrite)\n File "/tmp/ansible_TwhDzs/ansible_module_openshift_facts.py", line 1841, in init\n protected_facts_to_overwrite)\n File "/tmp/ansible_TwhDzs/ansible_module_openshift_facts.py", line 1878, in generate_facts\n defaults = self.get_defaults(roles, deployment_type, deployment_subtype)\n File "/tmp/ansible_TwhDzs/ansible_module_openshift_facts.py", line 1969, in get_defaults\n if self.system_facts['ansible_pkg_mgr'] == 'dnf':\nKeyError: 'ansible_pkg_mgr'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
fatal: [node1]: FAILED! => {"changed": false, "module_stderr": "KeyError('ansible_os_family',)\nTraceback (most recent call last):\n File "/tmp/ansible_k7JYnJ/ansible_module_openshift_facts.py", line 2501, in \n main()\n File "/tmp/ansible_k7JYnJ/ansible_module_openshift_facts.py", line 2488, in main\n protected_facts_to_overwrite)\n File "/tmp/ansible_k7JYnJ/ansible_module_openshift_facts.py", line 1841, in init\n protected_facts_to_overwrite)\n File "/tmp/ansible_k7JYnJ/ansible_module_openshift_facts.py", line 1878, in generate_facts\n defaults = self.get_defaults(roles, deployment_type, deployment_subtype)\n File "/tmp/ansible_k7JYnJ/ansible_module_openshift_facts.py", line 1969, in get_defaults\n if self.system_facts['ansible_pkg_mgr'] == 'dnf':\nKeyError: 'ansible_pkg_mgr'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
fatal: [master]: FAILED! => {"changed": false, "module_stderr": "KeyError('ansible_os_family',)\nTraceback (most recent call last):\n File "/tmp/ansible_zsiRAu/ansible_module_openshift_facts.py", line 2501, in \n main()\n File "/tmp/ansible_zsiRAu/ansible_module_openshift_facts.py", line 2488, in main\n protected_facts_to_overwrite)\n File "/tmp/ansible_zsiRAu/ansible_module_openshift_facts.py", line 1841, in init\n protected_facts_to_overwrite)\n File "/tmp/ansible_zsiRAu/ansible_module_openshift_facts.py", line 1878, in generate_facts\n defaults = self.get_defaults(roles, deployment_type, deployment_subtype)\n File "/tmp/ansible_zsiRAu/ansible_module_openshift_facts.py", line 1969, in get_defaults\n if self.system_facts['ansible_pkg_mgr'] == 'dnf':\nKeyError: 'ansible_pkg_mgr'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}

NO MORE HOSTS LEFT ************************************************************************************************************************************************************************************************************

PLAY RECAP ********************************************************************************************************************************************************************************************************************
localhost : ok=11 changed=0 unreachable=0 failed=0
master : ok=21 changed=0 unreachable=0 failed=1
node1 : ok=20 changed=0 unreachable=0 failed=1
node2 : ok=20 changed=0 unreachable=0 failed=1

@Git-yangrui

This comment has been minimized.

Show comment
Hide comment
@Git-yangrui

Git-yangrui Oct 10, 2018

I also meet the error when install openshift 3.7 by ansible as above

Git-yangrui commented Oct 10, 2018

I also meet the error when install openshift 3.7 by ansible as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment