[ https://issues.apache.org/jira/browse/AMBARI-24046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Swapan Shridhar updated AMBARI-24046: ------------------------------------- Description: Call to function toConfigurationValidationProblems() breaks for following : {code} Traceback (most recent call last): File "/var/lib/ambari-server/resources/scripts/mpack_advisor_wrapper.py", line 148, in <module> main(sys.argv) File "/var/lib/ambari-server/resources/scripts/mpack_advisor_wrapper.py", line 126, in main result = mpackAdvisor.validateConfigurations() File "/var/lib/ambari-server/resources/scripts/../stacks/mpack_advisor.py", line 1149, in validateConfigurations validationItems = self.getConfigurationsValidationItems() File "/var/lib/ambari-server/resources/scripts/../stacks/mpack_advisor.py", line 1588, in getConfigurationsValidationItems self.validateMinMax(items, itemHead, recommendedDefaults, configurations) File "/var/lib/ambari-server/resources/scripts/../stacks/mpack_advisor.py", line 1563, in validateMinMax validatedItems = self.toConfigurationValidationProblems(validationItems, configName) File "/var/lib/ambari-server/resources/scripts/../stacks/mpack_advisor.py", line 1518, in toConfigurationValidationProblems "config_type": siteName, "config_name": validationProblem["config-name"] } KeyError: 'config-name' {code} *Reason :* In *validateMinMax()* fn, when adding to validationItems, the string should be "config-name" instead of "config_name". *Fix* : Updated "config_name" to "config-name". > Fix the incorrect string from "config_name" to "config-name" in > mpack_advisor.py > -------------------------------------------------------------------------------- > > Key: AMBARI-24046 > URL: https://issues.apache.org/jira/browse/AMBARI-24046 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Reporter: Swapan Shridhar > Assignee: Swapan Shridhar > Priority: Blocker > Fix For: 3.0.0 > > > Call to function toConfigurationValidationProblems() breaks for following : > {code} > Traceback (most recent call last): > File "/var/lib/ambari-server/resources/scripts/mpack_advisor_wrapper.py", > line 148, in <module> > main(sys.argv) > File "/var/lib/ambari-server/resources/scripts/mpack_advisor_wrapper.py", > line 126, in main > result = mpackAdvisor.validateConfigurations() > File "/var/lib/ambari-server/resources/scripts/../stacks/mpack_advisor.py", > line 1149, in validateConfigurations > validationItems = self.getConfigurationsValidationItems() > File "/var/lib/ambari-server/resources/scripts/../stacks/mpack_advisor.py", > line 1588, in getConfigurationsValidationItems > self.validateMinMax(items, itemHead, recommendedDefaults, configurations) > File "/var/lib/ambari-server/resources/scripts/../stacks/mpack_advisor.py", > line 1563, in validateMinMax > validatedItems = self.toConfigurationValidationProblems(validationItems, > configName) > File "/var/lib/ambari-server/resources/scripts/../stacks/mpack_advisor.py", > line 1518, in toConfigurationValidationProblems > "config_type": siteName, "config_name": validationProblem["config-name"] } > KeyError: 'config-name' > {code} > *Reason :* In *validateMinMax()* fn, when adding to validationItems, the > string should be "config-name" instead of "config_name". > *Fix* : Updated "config_name" to "config-name". -- This message was sent by Atlassian JIRA (v7.6.3#76005)