[ 
https://issues.apache.org/jira/browse/AMBARI-19559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sumit Mohanty reopened AMBARI-19559:
------------------------------------

Unit tests failing - 

{code}
Failed tests:
FAIL: test_start_default (test_namenode.TestNamenode)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-common/src/test/python/mock/mock.py",
 line 1199, in patched
    return func(*args, **keywargs)
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py",
 line 185, in test_start_default
    logoutput = True,
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 281, in assertResourceCalled
    self.assertEquals(kwargs, resource.arguments)
AssertionError: {'logoutput': True, 'path': ['/usr/bin'], 'user': 'hdfs'} != 
{'path': ['/usr/bin'], 'user': u'hdfs'}
- {'logoutput': True, 'path': ['/usr/bin'], 'user': 'hdfs'}
?  -------------------

+ {'path': ['/usr/bin'], 'user': u'hdfs'}
?                                +


FAIL: test_start_default_alt_fs (test_namenode.TestNamenode)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-common/src/test/python/mock/mock.py",
 line 1199, in patched
    return func(*args, **keywargs)
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py",
 line 68, in test_start_default_alt_fs
    logoutput = True,
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 281, in assertResourceCalled
    self.assertEquals(kwargs, resource.arguments)
AssertionError: {'logoutput': True, 'path': ['/usr/bin'], 'user': 'hdfs'} != 
{'path': ['/usr/bin'], 'user': u'hdfs'}
- {'logoutput': True, 'path': ['/usr/bin'], 'user': 'hdfs'}
?  -------------------

+ {'path': ['/usr/bin'], 'user': u'hdfs'}
?                                +


FAIL: test_start_ha_bootstrap_active_from_blueprint (test_namenode.TestNamenode)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-common/src/test/python/mock/mock.py",
 line 1199, in patched
    return func(*args, **keywargs)
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py",
 line 742, in test_start_ha_bootstrap_active_from_blueprint
    logoutput = True,
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 281, in assertResourceCalled
    self.assertEquals(kwargs, resource.arguments)
AssertionError: {'logoutput': True, 'path': ['/usr/bin'], 'user': 'hdfs'} != 
{'path': ['/usr/bin'], 'user': u'hdfs'}
- {'logoutput': True, 'path': ['/usr/bin'], 'user': 'hdfs'}
?  -------------------

+ {'path': ['/usr/bin'], 'user': u'hdfs'}
?                                +


FAIL: test_start_secured (test_namenode.TestNamenode)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-common/src/test/python/mock/mock.py",
 line 1199, in patched
    return func(*args, **keywargs)
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-server/src/test/python/stacks/2.0.6/HDFS/test_namenode.py",
 line 315, in test_start_secured
    logoutput = True,
  File 
"/Users/smohanty/enlistments/asf-ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
 line 281, in assertResourceCalled
    self.assertEquals(kwargs, resource.arguments)
AssertionError: {'logoutput': True, 'path': ['/usr/bin'], 'user': 'hdfs'} != 
{'path': ['/usr/bin'], 'user': u'hdfs'}
- {'logoutput': True, 'path': ['/usr/bin'], 'user': 'hdfs'}
?  -------------------

+ {'path': ['/usr/bin'], 'user': u'hdfs'}
?                                +


----------------------------------------------------------------------
Total run:1151
Total errors:0
Total failures:4
{code}

> Log Namenode formatting output into ambari-agent command logs
> -------------------------------------------------------------
>
>                 Key: AMBARI-19559
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19559
>             Project: Ambari
>          Issue Type: Improvement
>          Components: ambari-server
>            Reporter: Sebastian Toader
>            Assignee: Sebastian Toader
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-19559.branch-2.5.v1.patch, AMBARI-19559.v1.patch
>
>
> NN is being formatted during it's first startup. The script used for 
> formatting NN logs to standard output which currently is being collected only 
> in DEBUG mode by ambari agent thus is lost in production environments where 
> the agent usually runs in non-DEBUG mode. The NN formatting log is useful for 
> trouble shooting thus these should be collected and written out into the NN 
> start command output log.
> This can be done by adding logoutput=True option to the NN format script 
> invocation within NN start script.



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

Reply via email to