Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-1444

[2.8.3 Backport] - discoverInterfaceName should resolve hostnames before trying to find network interface stats using IP addresses

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Critical
    • 2.8.3
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 83
    • 3

    Description

      The code to find a matching network interface to pull stats for assumes the configured interaface is an IP address, but it's just as valid (if not more) to specify a hostname instead.

      When the interface is a hostname, discoverInterfaceName() fails to find a matching address from the list of system network interfaces, because it's still trying to match against a hostname instead of an address.

      It would be handy if Sync Gateway performed a lookup to fetch IP addresses for a hostname if an IP address was not specified in the first place, before falling through to the existing code. This ensures machines that are able to resolve an address can accurately map it back to a given network interface.

       

      Attachments

        Issue Links

          Activity

            People

              isaac.lambat Isaac Lambat
              ben.brooks Ben Brooks
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty