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

Remove Ambiguous Repository Version When Creating Clusters via Blueprints

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • ambari-server
    • None

    Description

      When creating a new cluster via a blueprint, we currently use a combination of stack and version:

      {
        "blueprint" : "foo",
        "repository_version": "2.5.0.0-1237",
        "host_groups" :[
          {
            "name" : "host_group_1", 
            "hosts" : [         
              {
                "fqdn" : "c6401.ambari.apache.org"
              },
              {
                "fqdn" : "c6402.ambari.apache.org"
              },
              {
                "fqdn" : "c6403.ambari.apache.org"
              }
            ]
          }
       ]
      }
      

      We lookup the repository using a query by stack/version. We could instead also take a repo ID which removes any ambiguity.

      Something like:

      {
        "blueprint" : "foo",
        "repository_id": 1,
        "host_groups" :[
          {
            "name" : "host_group_1", 
            "hosts" : [         
              {
                "fqdn" : "c6401.ambari.apache.org"
              },
              {
                "fqdn" : "c6402.ambari.apache.org"
              },
              {
                "fqdn" : "c6403.ambari.apache.org"
              }
            ]
          }
       ]
      }
      

      Attachments

        1. AMBARI-21777.patch
          15 kB
          Dmytro Grinenko
        2. AMBARI-21777-2.6.patch
          15 kB
          Dmytro Grinenko
        3. AMBARI-21777-2.6-UT-FIX.patch
          3 kB
          Dmytro Grinenko

        Issue Links

          Activity

            People

              hapylestat Dmytro Grinenko
              hapylestat Dmytro Grinenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: