Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8.5, 1.8.6, 1.8.7, 1.8.8
-
Component/s: Web UI - General
-
Security Level: Default (Default Security Scheme)
-
Labels:None
-
Environment:CentOS 5.5 x86_64, Sun Java 1.6.0_23, OpenNMS YUM/RPM install; verified on clean install
Description
Since upgrade to 1.8.5 (or 1.8.6, forgot) links are not shown for Telnet/HTTP/OpenManage in node.jsp, even when appropriate services were actually discovered.
Went to debug element/node.jsp. In findServiceAddress(), a "List<InetAddress> ips" contains the correct list of IPv4 addresses for the node+service. But getLowestInetAddress(ips) seems to always return null instead of an address, so the service is not advertised later on.
A workaround for me was to bypass getLowestInetAddress() altogether and for now use the first available IP as in the patch below, as I don't (yet) understand how getLowestInetAddress() or ByteArrayComparator works.
— node.jsp.orig 2011-02-09 03:06:38.000000000 +0100
+++ node.jsp 2011-02-09 21:43:46.000000000 +0100
@@ -130,7 +130,7 @@
ips.add(InetAddress.getByName(service.getIpAddress()));
}
- InetAddress lowest = InetAddressUtils.getLowestInetAddress(ips);
+ InetAddress lowest = ips.get(0);
if (lowest != null) {
return lowest.getHostAddress();