Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-564

Mpack shows UI error when changing configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • 0.2.1BETA
    • 0.3.0
    • None

    Description

      When confirming configuration changes, the Ambari UI shows an error that it cannot validate configuration consistency.

      An error in the logs refers to the service advisor (getServiceConfigurationRecommendations), in particular a method that actually appears twice in the file, which is probably the root cause. This first instance of this method should be removed, and the error fixed.

      Traceback (most recent call last):
        File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 158, in <module>
          main(sys.argv)
        File "/var/lib/ambari-server/resources/scripts/stack_advisor.py", line 115, in main
          result = stackAdvisor.validateConfigurations(services, hosts)
        File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 536, in validateConfigurations
          validationItems = self.getConfigurationsValidationItems(services, hosts)
        File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 612, in getConfigurationsValidationItems
          recommendations = self.recommendConfigurations(services, hosts)
        File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 766, in recommendConfigurations
          serviceAdvisor.getServiceConfigurationRecommendations(configurations, clusterSummary, services, hosts)
        File "/var/lib/ambari-server/resources/common-services/METRON/0.3.0/service_advisor.py", line 103, in getServiceConfigurationRecommendations
          stormUIServerPort = services["configurations"]["storm-site"]["properties"]["ui.port"]
      KeyError: 'storm-site'
      10 Nov 2016 15:29:58,186  WARN [ambari-client-thread-28] AbstractResourceProvider:90 - Error occurred during validation
      org.apache.ambari.server.api.services.stackadvisor.StackAdvisorException: Stack Advisor reported an error: KeyError: 'storm-site'
      StdOut file: /var/run/ambari-server/stack-recommendations/18/stackadvisor.out
      

      Attachments

        Issue Links

          Activity

            People

              justinleet Justin Leet
              justinleet Justin Leet
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: