Uploaded image for project: 'infrautils'
  1. infrautils
  2. INFRAUTILS-64

Infrautils imposes restriction on cluser hostname to be IP address

XMLWordPrintable

      When configured hostname in akka.conf instead of IP address, infrautils' ready service fail during startup:

       

      2019-02-28T08:14:18,317 | ERROR | SystemReadyService-0 | SystemReadyImpl                  | 123 - org.opendaylight.infrautils.ready-impl - 1.4.2.SNAPSHOT | Thread terminated due to uncaught exception: SystemReadyService-0
      java.lang.IllegalArgumentException: 'b5400' is not an IP string literal.
              at com.google.common.net.InetAddresses.formatIllegalArgumentException(InetAddresses.java:989) ~[?:?]
              at com.google.common.net.InetAddresses.forString(InetAddresses.java:140) ~[?:?]
              at org.opendaylight.infrautils.diagstatus.MBeanUtils.isIpv6Address(MBeanUtils.java:167) ~[?:?]
              at org.opendaylight.infrautils.diagstatus.MBeanUtils.constructJmxUrl(MBeanUtils.java:72) ~[?:?]
              at org.opendaylight.infrautils.diagstatus.MBeanUtils.getJMXUrl(MBeanUtils.java:67) ~[?:?]
              at org.opendaylight.infrautils.diagstatus.MBeanUtils.startRMIConnectorServer(MBeanUtils.java:81) ~[?:?]
              at org.opendaylight.infrautils.diagstatus.internal.DiagStatusServiceMBeanImpl.lambda$onSystemBootReady$0(DiagStatusServiceMBeanImpl.java:73) ~[?:?]
              at java.util.Optional.ifPresent(Optional.java:159) [?:?]
              at org.opendaylight.infrautils.diagstatus.internal.DiagStatusServiceMBeanImpl.onSystemBootReady(DiagStatusServiceMBeanImpl.java:71) [114:org.opendaylight.infrautils.diagstatus-impl:1.4.2.SNAPSHOT]
              at org.opendaylight.infrautils.ready.internal.SystemReadyImpl.run(SystemReadyImpl.java:112) [123:org.opendaylight.infrautils.ready-impl:1.4.2.SNAPSHOT]
              at java.lang.Thread.run(Thread.java:748)

      [?:?]

       

      in configuration/initial/akka.conf, I just replaced "127.0.0.1" with hostname configured in /etc/hosts (it's "b5400" in my case)

       

            rkosegi Richard Kosegi
            rkosegi Richard Kosegi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: