+++ 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.
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.
oo-accept-node does not complain that the network interface specified by EXTERNAL_ETH_DEV does not have a globally scoped IPv4 address.
oo-accept-node should warn about the problem.
See bug 1121195.
Commit pushed to master at https://github.com/openshift/origin-server
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
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