繁体   English   中英

Openshift 3集群安装问题

[英]Openshift 3 cluster installation issue

我正在我的 Centos 7.8 VMS 上安装 Openshift 3.11 版本集群。 配置为3台Centos VM(1个master节点+2个worker节点)。 我还配置了我的库存文件,并且“prerequisites.yml”剧本也成功运行。 但是当我运行剧本'deploy_cluster.yml'时,它会产生如下错误----

[WARNING]: Module invocation had junk after the JSON data: Error in atexit._run_exitfuncs: Traceback (most recent call last):   File
"/usr/lib64/python2.7/atexit.py", line 24, in _run_exitfuncs     func(*targs, **kargs)   File
"/tmp/ansible_oc_obj_payload_A0Bg8i/ansible_oc_obj_payload.zip/ansible/modules/oc_obj.py", line 1257, in cleanup AttributeError:
'NoneType' object has no attribute 'path' Error in sys.exitfunc: Traceback (most recent call last):   File
"/usr/lib64/python2.7/atexit.py", line 24, in _run_exitfuncs     func(*targs, **kargs)   File
"/tmp/ansible_oc_obj_payload_A0Bg8i/ansible_oc_obj_payload.zip/ansible/modules/oc_obj.py", line 1257, in cleanup AttributeError:
'NoneType' object has no attribute 'path'

最后,安装程序失败。

TASK [openshift_control_plane : Report control plane errors] ******************************************************************************
fatal: [kubernetus]: FAILED! => {"changed": false, "msg": "Control plane pods didn't come up"}

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

PLAY RECAP ********************************************************************************************************************************
kubernetus                 : ok=293  changed=45   unreachable=0    failed=1    skipped=235  rescued=0    ignored=1
kubernetus1                : ok=103  changed=15   unreachable=0    failed=0    skipped=88   rescued=0    ignored=0
kubernetus2                : ok=103  changed=15   unreachable=0    failed=0    skipped=88   rescued=0    ignored=0
localhost                  : ok=11   changed=0    unreachable=0    failed=0    skipped=5    rescued=0    ignored=0


INSTALLER STATUS **************************************************************************************************************************
Initialization              : Complete (0:08:28)
Health Check                : Complete (0:02:42)
Node Bootstrap Preparation  : Complete (1:02:37)
etcd Install                : Complete (0:13:03)
Master Install              : In Progress (1:43:59)
        This phase can be restarted by running: playbooks/openshift-master/config.yml


Failure summary:


  1. Hosts:    kubernetus
     Play:     Configure masters
     Task:     Report control plane errors
     Message:  Control plane pods didn't come up

为此,我什至检查了 '/var/spool/abrt' 目录,但发现了相同的错误消息 --- 'NoneType' object has no attribute 'path'

我还发现了以下日志----

Jun 23 15:57:49 kubernetus origin-node: I0623 15:57:49.898598   35114 container_manager_linux.go:428] [ContainerManager]: Discovered runtime cgroups name: /system.slice/docker.service
Jun 23 15:57:58 kubernetus python: ansible-oc_obj Invoked with files=None kind=pod force=False all_namespaces=None field_selector=None namespace=kube-system delete_after=False kubeconfig=/etc/origin/master/admin.kubeconfig content=None state=list debug=False selector=None name=master-api-kubernetus
Jun 23 15:58:01 kubernetus python: detected unhandled Python exception in '/root/.ansible/tmp/ansible-tmp-1592908072.81-35221-114985355081512/AnsiballZ_oc_obj.py'
Jun 23 15:58:07 kubernetus python: communication with ABRT daemon failed: timed out
Jun 23 15:58:08 kubernetus abrt-server: Email address of sender was not specified. Would you like to do so now? If not, 'user@localhost' is to be used [y/N]
Jun 23 15:58:08 kubernetus abrt-server: Email address of receiver was not specified. Would you like to do so now? If not, 'root@localhost' is to be used [y/N]
Jun 23 15:58:08 kubernetus abrt-server: Undefined variable outside of [[ ]] bracket
Jun 23 15:58:08 kubernetus abrt-server: Sending an email...
Jun 23 15:58:08 kubernetus abrt-server: Sending a notification email to: root@localhost
Jun 23 15:58:09 kubernetus abrt-server: Email was sent to: root@localhost

我无法弄清楚是什么问题? 有人可以帮我吗?

尝试将您的环境迁移到更高的规格。

尝试为集群机器(Master + Infra 1, Compute 1)使用至少 2vcpu 和 8GB RAM!

如前所述,资源可能是一个问题,还要确保您使用的是与安装程序手册兼容的 ansible 版本

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM