+++ This bug was initially created as a clone of Bug #1121203 +++ Description of problem: oo-iptables-port-proxy requires that EXTERNAL_ETH_DEV be set to a network interface that has a globally scoped IPv4 address. oo-accept-node does not check that this requirement is met. How reproducible: Completely. Steps to Reproduce: 1. Install an OpenShift Enterprise PaaS with 1 node. 2. Set EXTERNAL_ETH_DEV=lo in /etc/openshift/node.conf on the node in Step 1. 3. Run oo-accept-node. Actual results: oo-accept-node does not complain that the network interface specified by EXTERNAL_ETH_DEV does not have a globally scoped IPv4 address. Expected results: oo-accept-node should warn about the problem. Additional info: See bug 1121195.
PR: https://github.com/openshift/origin-server/pull/5623
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/9a83c88dd32bfd5ad9275387c20ceb7a2ed86fa5 oo-accept-node: Add check_ext_net_dev_addr Add check_ext_net_dev_addr to oo-accept-node to check that the network interface specified by EXTERNAL_ETH_DEV in /etc/openshift/node.conf has a globally scoped IPv4 address (if it does not, oo-iptables-port-proxy will fail). This commit fixes bug 1121206.
Verified on devenv_4996, "oo-accept-node" returns correct error warning: [root@ip-10-69-151-57 ~]# oo-accept-node FAIL: SEVERE: lo has no globally scoped IPv4 address FAIL: tc htb qdisc not configured 2 ERRORS