我正在Centos 7.8 VMS上安装Openshift 3.11版本集群。配置是有三个Centos VM(一个主节点+两个工作节点)。我还配置了清单文件,“ 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'对象没有属性'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
我无法弄清楚是什么问题?有人可以帮我吗?
答案 0 :(得分:0)
尝试将环境提高到更高的规格。
尝试为群集计算机(Master + Infra 1,Compute 1)至少使用2vcpu和RAM 8GB!
答案 1 :(得分:0)
如上所述,资源可能是一个问题,还要确保您使用的是与安装程序手册兼容的ansible版本