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

Add ability to restart all host components with stale_configs=true with one API request

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.0
    • 2.4.0
    • ambari-server
    • None

    Description

      Provide ability to filter host components using a predicate that allows bulk ops like RESTART of stale configs with a simple API call.

      Example:

      {
        "RequestInfo": {
          "context": "Restart stale",
          "operational_level": "host_component",
          "command": "RESTART"
        },
        "Requests/resource_filters": [
          {
            "hosts_predicate": "HostRoles/stale_configs=true"
          }
        ]
      }
      

      This API call should allow user to perform custom command restart on all host components with stale configurations.

      Attachments

        1. AMBARI-14394.patch
          28 kB
          Siddharth Wagle

        Issue Links

          Activity

            People

              swagle Siddharth Wagle
              swagle Siddharth Wagle
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: