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

Pass Down More Specific Repository When Creating an Upgrade

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.5.2
    • 2.5.2
    • ambari-web
    • None

    Description

      The current command for creating an upgrade only passes in the version. It does not specify the stack that is associated with the version. This is because Ambari (incorrectly) assumes its the same stack.

      Example of API call today
      POST api/v1/clusters/c1/upgrades
      {
        "Upgrade": {
          "repository_version": "2.6.0.0-334",
          "skip_failures": "true",
          "skip_service_check_failures": "true",
          "skip_prerequisite_checks": "true",
          "upgrade_type": "NON_ROLLING",
          "direction": "UPGRADE"
        }
      }
      

      This needs to change to either supply the stack name along with the version or simply just the repository ID. It doesn't matter which one we switch to (the backend can adjust to either), but we should pick the easiest to change here since this is only going into Ambari 2.5.2.

      Attachments

        1. AMABRI-21375.patch
          4 kB
          Andrii Tkach

        Activity

          People

            atkach Andrii Tkach
            atkach Andrii Tkach
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: