Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-47298

ns_server alert subsystem resets hostname resolution/lookup options

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      When the alerts subsystem in ns_server has been enabled and when the alert fires it calls ns_mail:send which usingĀ gen_smtp_client module, which calls smtp_util:mxlookup function, this resets the lookup option to "[native]". See below,

      (n_0@127.0.0.1)1> inet:getaddr("cb.local", inet).
      {ok,{127,0,0,1}}
      (n_0@127.0.0.1)2> inet_db:res_option(lookup).
      [file,native]
       
      (n_0@127.0.0.1)6> smtp_util:mxlookup("gmail.com").
      [{5,"gmail-smtp-in.l.google.com"},
       {10,"alt1.gmail-smtp-in.l.google.com"},
       {20,"alt2.gmail-smtp-in.l.google.com"},
       {30,"alt3.gmail-smtp-in.l.google.com"},
       {40,"alt4.gmail-smtp-in.l.google.com"}]
      (n_0@127.0.0.1)7>
       
       
      (n_0@127.0.0.1)7> inet:getaddr("cb.local", inet).
      {error,nxdomain}
      (n_0@127.0.0.1)8> inet_db:res_option(lookup).
      [native] 

      This may cause us to lose connectivity to cb.local nodes.

      Attachments

        Issue Links

          Activity

            People

              Aliaksey Artamonau Aliaksey Artamonau (Inactive)
              Abhijeeth.Nuthan Abhijeeth Nuthan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty