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

Add Downgrade request validation to avoid accidental double-upgrades

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • ambari-server
    • None

    Description

      There are currently several ways of starting upgrades / downgrades:

      • The use of a directive on the request
        http://localhost:8080/api/v1/clusters/c1/upgrades?downgrade=true
        
      • The POST body JSON
        {
        "RequestInfo": {
          "downgrade": "true"
          },
        "Upgrade":{
          "from_version": ...
         }
        }
        

      The directive is confusing and can allow multiple downgrades or upgrades to be scheduled concurrently. It should be removed for consistency and the Upgrade/direction property should replace it.

      Attachments

        1. AMBARI-19473.patch
          27 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              shavi71 Vivek Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: