2

我在 Openshift 中部署集群时遇到问题。有什么理由吗?

版本

Red Hat Enterprise Linux Server release 7.7 (Maipo),
oc version: oc v3.11.43

ansible 2.6.18
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]

openshift-ansible-3.11.43-1.git.0.fa69a02.el7.noarch

命令:ansible-playbook -i /etc/ansible/hosts playbooks/deploy_cluster.yml

我试过了:

  • 80-openshift-network.conf(将其从工作的 openshift env 复制到当前的 env 我有问题)
  • 在 /etc/sysconfig/network-scripts/ifcfg-ens192 中添加 NM_CONTROLLED=yes, PEERDNS=yes
  • 从头开始重新安装

我也从https://github.com/openshift/openshift-ansible/issues/10969尝试了这个

而且还是失败了。

如果这有帮助,您可以查看我在 github 上的帖子https://github.com/openshift/openshift-ansible/issues/11825

我的库存文件(/etc/ansible/hosts):

[OSEv3:children]
masters
nfs
etcd
nodes
new_nodes

[OSEv3:vars]
template_service_broker_install=false
openshift_master_cluster_public_hostname=None
ansible_ssh_user=root
openshift_master_cluster_hostname=None
openshift_deployment_type=openshift-enterprise
os_firewall_use_firewalld=True
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider'}]
openshift_master_default_subdomain=cloudapps.10.110.25.147.nip.io
openshift_disable_check=memory_availability,disk_availability,package_version,docker_image_availability,package_availability,package_update,docker_storage

oreg_url=10.110.25.141:8082/openshift3/ose-${component}:${version}
openshift_examples_modify_imagestreams=true
openshift_image_tag=v3.11.43
openshift_pkg_version=-3.11.43

openshift_additional_registry_credentials=[{'host':'10.110.25.141:8082','user':'admin','password':'admin123','test_login':'False', 'tls_verify':'False'}]

[masters]
cssbh001d.openshift.smart.ph  openshift_public_ip=10.110.25.147 openshift_ip=10.110.25.147 openshift_public_hostname=cssbh001d.openshift.smart.ph openshift_hostname=cssbh001d.openshift.smart.ph ansible_connection=local

[nfs]
cssbh001d.openshift.smart.ph  openshift_public_ip=10.110.25.147 openshift_ip=10.110.25.147 openshift_public_hostname=cssbh001d.openshift.smart.ph openshift_hostname=cssbh001d.openshift.smart.ph ansible_connection=local

[etcd]
cssbh001d.openshift.smart.ph  openshift_public_ip=10.110.25.147 openshift_ip=10.110.25.147 openshift_public_hostname=cssbh001d.openshift.smart.ph openshift_hostname=cssbh001d.openshift.smart.ph ansible_connection=local

[nodes]
cssbh001d.openshift.smart.ph openshift_public_ip=10.110.25.147 openshift_ip=10.110.25.147 openshift_public_hostname=cssbh001d.openshift.smart.ph openshift_hostname=cssbh001d.openshift.smart.ph openshift_node_labels="{'region': 'infra'}" openshift_node_group_name='node-config-master-infra' openshift_schedulable=True ansible_connection=local

[new_nodes]

预期:使用此命令成功部署集群:ansible-playbook -i /etc/ansible/hosts playbooks/deploy_cluster.yml

实际结果:

TASK [openshift_cluster_monitoring_operator : Wait for the ServiceMonitor CRD to be created] ********************************************************************************************
Tuesday 13 August 2019 17:00:34 +0800 (0:00:02.250) 0:14:45.437 ********
FAILED - RETRYING: Wait for the ServiceMonitor CRD to be created (30 retries left).
FAILED - RETRYING: Wait for the ServiceMonitor CRD to be created (29 retries left).
.......
FAILED - RETRYING: Wait for the ServiceMonitor CRD to be created (2 retries left).
FAILED - RETRYING: Wait for the ServiceMonitor CRD to be created (1 retries left).

谢谢!

4

0 回答 0