ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrii Tkach (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-17690) StackAdvisor warning is missing at saving configs even when there are errors in stackadvisor
Date Wed, 13 Jul 2016 15:47:20 GMT
Andrii Tkach created AMBARI-17690:
-------------------------------------

             Summary: StackAdvisor warning is missing at saving configs even when there are
errors in stackadvisor
                 Key: AMBARI-17690
                 URL: https://issues.apache.org/jira/browse/AMBARI-17690
             Project: Ambari
          Issue Type: Bug
          Components: ambari-web
    Affects Versions: 2.4.0
            Reporter: Andrii Tkach
            Assignee: Andrii Tkach
            Priority: Critical
             Fix For: 2.4.0


Induce error in stackadvisor script by adding invalid properties. After modifying the stackadvisor
update any config via UI and try to save the config, Stack advisor is expected to show a warning
that the Consistency Check is failed.
There are errors related to this invalid property in ambari server logs but warning is not
shown up on UI. 
>From ambari-server.log
{code}
Error occured in stack advisor.
Error details: 'hdfs-site'
06 Jul 2016 07:23:50,547  INFO [ambari-client-thread-945] StackAdvisorRunner:71 -     advisor
script stderr: 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 109, in main
    result = stackAdvisor.recommendConfigurations(services, hosts)
  File "/var/lib/ambari-server/resources/scripts/../stacks/stack_advisor.py", line 757, in
recommendConfigurations
    calculation(configurations, clusterSummary, services, hosts)
  File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.3/services/stack_advisor.py",
line 271, in recommendHDFSConfigurations
    super(HDP23StackAdvisor, self).recommendHDFSConfigurations(configurations, clusterData,
services, hosts)
  File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.2/services/stack_advisor.py",
line 112, in recommendHDFSConfigurations
    super(HDP22StackAdvisor, self).recommendHDFSConfigurations(configurations, clusterData,
services, hosts)
  File "/var/lib/ambari-server/resources/scripts/./../stacks/HDP/2.0.6/services/stack_advisor.py",
line 282, in recommendHDFSConfigurations
    k = services['configurations']['hdfs-site']['foobar']

{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message