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

Add API directive to force toggling Kerberos if the cluster's security type has not changed

    XMLWordPrintableJSON

Details

    Description

      Add an API directive to force toggling Kerberos if the cluster's security type has not changed.

      This is useful for retry attempts to enable or disable Kerberos when the workflow progressed far enough to store the new security type.

      Trying to enable Kerberos when the cluster's security type is already set to KERBEROS will result in a successful response from the Ambari server but no actions will be performed. Same for attempting to disable Kerberos when the cluster's security type is already set to NONE.

      By forcing the operation using the force_toggle_kerberos=true directive, the security type check is avoided, thus allowing the retry operation to proceed.

      Example:

      PUT /api/v1/clusters/CLUSTER_NAME?force_toggle_kerberos=true
      {
        "Clusters" : {
          "security_type" : "KERBEROS"
          }
      }
      

      Attachments

        1. AMBARI-14905_branch-2.2_01.patch
          20 kB
          Robert Levas
        2. AMBARI-14905_trunk_01.patch
          20 kB
          Robert Levas
        3. AMBARI-14905_branch-2.2_02.patch
          20 kB
          Robert Levas
        4. AMBARI-14905_trunk_02.patch
          20 kB
          Robert Levas
        5. AMBARI-14905_branch-2.2_03.patch
          14 kB
          Robert Levas
        6. AMBARI-14905_trunk_03.patch
          14 kB
          Robert Levas

        Issue Links

          Activity

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: