Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18479

Service check fails against Yarn with HA and SPNEGO

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.4.0
    • None
    • ambari-agent
    • None
    • Hortonworks HDP 2.5

    Description

      If both HA and SPNEGO is configured for the cluster, the service check fails on Yarn.

      The problem is because we are using curl to fetch the http pages, we also enters –L to follow the location information in the header. But –L don’t forward authentication information to redirected hosts. Changing –L to --location-trusted solves the problem.

      — /tmp/service_check.py 2016-09-28 13:08:06.468192028 +0200
      +++ /var/lib/ambari-agent/cache/common-services/YARN/2.1.0.2.0/package/scripts/service_check.py 2016-09-28 13:17:36.810100884 +0200
      @@ -129,7 +129,7 @@
      for rm_webapp_address in params.rm_webapp_addresses_list:
      info_app_url = params.scheme + "://" + rm_webapp_address + "/ws/v1/cluster/apps/" + application_name

      • get_app_info_cmd = "curl --negotiate -u : -ksL --connect-timeout " + CURL_CONNECTION_TIMEOUT + " " + info_app_url
        + get_app_info_cmd = "curl --negotiate -u : -ks --location-trusted --connect-timeout " + CURL_CONNECTION_TIMEOUT + " " + info_app_url

      return_code, stdout, _ = get_user_call_output(get_app_info_cmd,
      user=params.smokeuser,

      Attachments

        Issue Links

          Activity

            People

              amagyar Attila Magyar
              berry.osterlund@middlecon.se Berry Österlund
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: