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

Configs For Target Stack Are Not Created During Upgrade

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.6.0
    • 2.6.0
    • None
    • None

    Description

      During an upgrade from HDP 2.5 to HDP 2.6, the new configurations are not created in HDP 2.6 - they're created in HDP 2.5 which causes services to fail on restart.

      STR:

      • Create an HDP 2.5 cluster with ZK + HDFS
      • Do an EU to HDP 2.6

      The EU will fail right after the "move stack version" step.

      It looks like the bug is in ConfigHelper where it ignores the passed-in StackId and uses the Cluster's stack:

        Config createConfig(Cluster cluster, StackId stackId, AmbariManagementController controller,
            String type, String tag, Map<String, String> properties,
            Map<String, Map<String, String>> propertyAttributes) throws AmbariException {
      
              ...
          return controller.createConfig(cluster, type, properties, tag, propertyAttributes);
        }
      

      Attachments

        1. AMBARI-21626.patch
          17 kB
          Jonathan Hurley

        Issue Links

          Activity

            People

              jonathanhurley Jonathan Hurley
              jonathanhurley Jonathan Hurley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: