我正在尝试安装 2 节点集群,Origin 版本为 3.10(一个主节点,一个节点)。Playbook 在任务上失败
openshift_control_plane :等待控制平面容器出现
Initialization : Complete (0:00:35)
Health Check : Complete (0:00:41)
Node Bootstrap Preparation : Complete (0:01:39)
etcd Install : Complete (0:00:31)
Master Install : In Progress (0:18:40)
This phase can be restarted by running: playbooks/openshift-master/config.yml
Failure summary:
1. Hosts: openshift-master.itandwisdom.com
Play: Configure masters
Task: Report control plane errors
Message: Control plane pods didn't come up
我的ansible版本是ansible 2.6.5,openshift-ansible版本是3.10.82-1
操作系统:CentOS Linux版本7.5.1804(核心)
3.11版本也出现这种情况
[OSEv3:children]
masters
nodes
etcd
[OSEv3:vars]
ansible_ssh_user=root
openshift_disable_check=disk_availability,memory_availability,docker_storage
openshift_release="3.10.0"
openshift_image_tag="v3.10.0"
openshift_pkg_version="-3.10.0"
openshift_deployment_type=origin
[masters]
openshift-master.itandwisdom.com openshift_public_ip=185.136.232.200 openshift_public_hostname=openshift-master.itandwisdom.com
[etcd]
openshift-node.itandwisdom.com openshift_node_group_name='node-config-compute' openshift_public_ip=185.136.233.130 openshift_public_hostname=openshift-node.itandwisdom.com
[nodes]
openshift-master.itandwisdom.com openshift_public_ip=185.136.232.200 openshift_public_hostname=openshift-master.itandwisdom.com openshift_schedulable=true openshift_node_group_name='node-config-master-infra'
openshift-node.itandwisdom.com openshift_public_ip=185.136.233.130 openshift_public_hostname=openshift-node.itandwisdom.com openshift_node_group_name='node-config-compute'
答案1
我发现我遇到了两个不同的问题:
- 主机名应与 FQDN 匹配(主机名 == 主机名 -f) https://github.com/openshift/origin/issues/21285
- Docker exec 命令错误
https://bugzilla.redhat.com/show_bug.cgi?id=1655214
更多信息:https://github.com/openshift/openshift-ansible/issues/10798
希望它能够对某人有所帮助。