【问题标题】:Openshift 3 cluster installation issueOpenshift 3集群安装问题
【发布时间】:2020-06-23 10:11:47
【问题描述】:

我正在我的 Centos 7.8 VMS 上安装 Openshift 3.11 版本的集群。配置是有三个 Centos 虚拟机(一个主节点 + 两个工作节点)。我还配置了我的库存文件,并且“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”对象没有“路径”属性

我也查到了以下日志----

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

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

【问题讨论】:

    标签: ansible openshift openshift-origin openshift-3


    【解决方案1】:

    尝试将您的环境提升到更高的规格。

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

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-04-23
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-08-09
        • 1970-01-01
        • 2015-11-27
        • 1970-01-01
        相关资源
        最近更新 更多