进行openshift v3.9安装时,出现如下报错:
TASK [openshift_manage_node : Wait for Node Registration] **********************
FAILED - RETRYING: Wait for Node Registration (50 retries left).
FAILED - RETRYING: Wait for Node Registration (49 retries left).
FAILED - RETRYING: Wait for Node Registration (48 retries left).
FAILED - RETRYING: Wait for Node Registration (47 retries left).
FAILED - RETRYING: Wait for Node Registration (46 retries left).
FAILED - RETRYING: Wait for Node Registration (45 retries left).
FAILED - RETRYING: Wait for Node Registration (44 retries left).
FAILED - RETRYING: Wait for Node Registration (43 retries left).
FAILED - RETRYING: Wait for Node Registration (42 retries left).
FAILED - RETRYING: Wait for Node Registration (41 retries left).
FAILED - RETRYING: Wait for Node Registration (40 retries left).
.........
通过journalctl 查看Node的日志:
Jun 12 06:32:49 os-node1 systemd[1]: Starting OpenShift Node...
Jun 12 06:32:49 os-node1 dnsmasq[20690]: setting upstream servers from DBus
Jun 12 06:32:49 os-node1 dnsmasq[20690]: using nameserver 127.0.0.1#53 for domain in-addr.arpa
Jun 12 06:32:49 os-node1 dnsmasq[20690]: using nameserver 127.0.0.1#53 for domain cluster.local
Jun 12 06:32:49 os-node1 origin-node[24025]: I0612 06:32:49.443143 24025 start_node.go:309] Reading node configuration from /etc/origin/node/node-config.yaml
Jun 12 06:32:49 os-node1 origin-node[24025]: I0612 06:32:49.444961 24025 start_node.go:479] Starting node os-node1 (v3.9.0+ba7faec-1)
Jun 12 06:32:49 os-node1 origin-node[24025]: W0612 06:32:49.445199 24025 server.go:185] WARNING: all flags other than --config, --write-config-to, and --cleanup are deprecated. Please begin using a config file ASAP.
Jun 12 06:32:49 os-node1 origin-node[24025]: Flag --require-kubeconfig has been deprecated, You no longer need to use --require-kubeconfig. This will be removed in a future version. Providing --kubeconfig enables API server mode, omitti
Jun 12 06:32:49 os-node1 origin-node[24025]: I0612 06:32:49.449083 24025 node.go:151] Initializing SDN node of type "redhat/openshift-ovs-subnet" with configured hostname "os-node1" (IP ""), iptables sync period "30s"
Jun 12 06:32:49 os-node1 origin-node[24025]: I0612 06:32:49.449127 24025 start_node.go:535] kubelet [--address=0.0.0.0 --allow-privileged=true --anonymous-auth=true --authentication-token-webhook=true --authentication-token-webhook-ca
Jun 12 06:32:49 os-node1 origin-node[24025]: I0612 06:32:49.449219 24025 feature_gate.go:220] feature gates: &{{} map[]}
Jun 12 06:32:49 os-node1 origin-node[24025]: I0612 06:32:49.449283 24025 controller.go:114] kubelet config controller: starting controller
Jun 12 06:32:49 os-node1 origin-node[24025]: I0612 06:32:49.449294 24025 controller.go:118] kubelet config controller: validating combination of defaults and flags
Jun 12 06:32:49 os-node1 origin-node[24025]: F0612 06:32:49.450331 24025 start_node.go:161] could not start DNS, unable to read config file: open /etc/origin/node/resolv.conf: no such file or directory
Jun 12 06:32:49 os-node1 systemd[1]: origin-node.service: main process exited, code=exited, status=255/n/a
Jun 12 06:32:49 os-node1 systemd[1]: Started Kubernetes systemd probe.
Jun 12 06:32:49 os-node1 systemd[1]: Starting Kubernetes systemd probe.
Jun 12 06:32:49 os-node1 dnsmasq[20690]: setting upstream servers from DBus
Jun 12 06:32:49 os-node1 systemd[1]: Failed to start OpenShift Node.
Jun 12 06:32:49 os-node1 systemd[1]: Unit origin-node.service entered failed state.
Jun 12 06:32:49 os-node1 systemd[1]: origin-node.service failed.
Jun 12 06:32:54 os-node1 systemd[1]: origin-node.service holdoff time over, scheduling restart.
日志分析是少个文件,通过搜索查找解决方法:
第一种是复制/etc/resolve.conf 到/etc/origin/node
第二种是修改/etc/sysconfig/network-scripts/ifcfg-eth0的NM_CONTROLLED=no
经过测试,第一种方法有效;
需要注意的是每个节点都需要手动拷贝,包括master;