Red Hat Bugzilla – Bug 978261
Hardcoded references to eth0 in oo-accept-node
Last modified: 2015-05-14 19:12:25 EDT
Description of problem:
If a Node does not have eth0 oo-accept-node will display a confusing error message. The offending code line is:
$TC_DATA = %x[/sbin/tc clas show dev eth0].split("\n").grep(/parent/)
However, there are more instance of eth0 in that file that need to be replaced.
Version-Release number of selected component (if applicable):
The node.conf file is used, baring that the ethernet device is probed for by finding what device either routes from or routes to the public IP address.
Commit pushed to master at https://github.com/openshift/origin-server
Bug 978261 - find the external ethernet device rather than hard-code eth0
Check this on devenv_3427,
Modify the EXTERNAL_ETH_DEV to non-exist one in node.conf
Use oo-accept-node to check the issue.
# oo-accept-node -v
INFO: loading node configuration file /etc/openshift/node.conf
INFO: loading resource limit file /etc/openshift/resource_limits.conf
INFO: finding external network device
Device "ethi10" does not exist.
FAIL: SEVERE: not a valid ethernet device: 'ethi10'
Cannot find device "ethi10"
INFO: checking node public hostname resolution
It will detect the nic dynamically, but not the hardcode one.