ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-13895) Unit Test failure in Ambari Server python tests
Date Sat, 14 Nov 2015 18:38:10 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-13895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15005523#comment-15005523
] 

Hudson commented on AMBARI-13895:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.1 #861 (See [https://builds.apache.org/job/Ambari-branch-2.1/861/])
AMBARI-13895. Unit Test failure in Ambari Server python tests (smohanty) (smohanty: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a799c31ad66b4e69b81404a66b4617e491d8eb0b])
* ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py
* ambari-agent/src/test/python/ambari_agent/TestActionQueue.py


> Unit Test failure in Ambari Server python tests
> -----------------------------------------------
>
>                 Key: AMBARI-13895
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13895
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.3
>            Reporter: Jayush Luniya
>            Assignee: Sumit Mohanty
>            Priority: Blocker
>             Fix For: 2.1.3
>
>         Attachments: AMBARI-13895.patch
>
>
> See following python UT failures
> {noformat}
> ----------------------------------------------------------------------
> Failed tests:
> FAIL: test_configure_default (test_historyserver.TestHistoryServer)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/jluniya/merge/trunk/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>     return func(*args, **keywargs)
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py",
line 45, in test_configure_default
>     self.assert_configure_default()
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py",
line 222, in assert_configure_default
>     action = ['create_on_execute'],
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 254, in assertResourceCalled
>     self.assertEquals(kwargs, resource.arguments)
> AssertionError: {'security_enabled': False, 'hadoop_conf_dir': '/etc/hadoop/conf', 'keytab':
UnknownConfigurationMock(), 'default_fs': 'hdfs://c6401.ambari.apache.org:8020', 'hdfs_site':
{u'dfs.namenode.checkpoint.period': u'21600', u'dfs.namenode.avoid.write.stale.datanode':
u'true', u'dfs.block.access.token.enable': u'true', u'dfs.support.append': u'true', u'dfs.datanode.address':
u'0.0.0.0:${ambari.dfs.datanode.port}', u'dfs.cluster.administrators': u'test_user1,test_user2
hdfs,test_group', u'dfs.replication': u'3', u'ambari.dfs.datanode.http.port': u'50075', u'dfs.datanode.balance.bandwidthPerSec':
u'6250000', u'dfs.namenode.safemode.threshold-pct': u'1.0f', u'dfs.namenode.checkpoint.edits.dir':
u'${dfs.namenode.checkpoint.dir}', u'dfs.permissions.enabled': u'true', u'fs.checkpoint.size':
u'67108864', u'dfs.client.read.shortcircuit': u'true', u'dfs.namenode.https-address': u'c6401.ambari.apache.org:50470',
u'dfs.journalnode.edits.dir': u'/grid/0/hdfs/journal', u'dfs.blocksize': u'134217728', u'dfs.datanode.max.transfer.threads':
u'1024', u'dfs.datanode.du.reserved': u'1073741824', u'dfs.webhdfs.enabled': u'true', u'dfs.namenode.handler.count':
u'100', u'dfs.namenode.checkpoint.dir': u'/hadoop/hdfs/namesecondary,/hadoop/hdfs/namesecondary2',
u'fs.permissions.umask-mode': u'022', u'dfs.datanode.http.address': u'0.0.0.0:50075', u'dfs.datanode.ipc.address':
u'0.0.0.0:8010', u'dfs.datanode.data.dir': u'/hadoop/hdfs/data', u'dfs.namenode.http-address':
u'c6401.ambari.apache.org:50070', u'dfs.blockreport.initialDelay': u'120', u'dfs.datanode.failed.volumes.tolerated':
u'0', u'dfs.namenode.accesstime.precision': u'0', u'ambari.dfs.datanode.port': u'50010', u'dfs.namenode.avoid.read.stale.datanode':
u'true', u'dfs.namenode.secondary.http-address': u'c6402.ambari.apache.org:50090', u'dfs.namenode.stale.datanode.interval':
u'30000', u'dfs.heartbeat.interval': u'3', u'dfs.client.read.shortcircuit.streams.cache.size':
u'4096', u'dfs.permissions.superusergroup': u'hdfs', u'dfs.https.port': u'50470', u'dfs.journalnode.http-address':
u'0.0.0.0:8480', u'dfs.domain.socket.path': u'/var/lib/hadoop-hdfs/dn_socket', u'dfs.namenode.write.stale.datanode.ratio':
u'1.0f', u'dfs.hosts.exclude': u'/etc/hadoop/conf/dfs.exclude', u'dfs.datanode.data.dir.perm':
u'750', u'dfs.namenode.name.dir.restore': u'true', u'dfs.replication.max': u'50', u'dfs.namenode.name.dir':
u'/hadoop/hdfs/namenode'}, 'kinit_path_local': '/usr/bin/kinit', 'principal_name': UnknownConfigurationMock(),
'user': 'hdfs', 'owner': 'yarn', 'group': 'hadoop', 'hadoop_bin_dir': '/usr/bin', 'type':
'directory', 'action': ['create_on_execute']} != {'security_enabled': False, 'hadoop_bin_dir':
'/usr/bin', 'keytab': UnknownConfiguration(), 'dfs_type': '', 'default_fs': u'hdfs://c6401.ambari.apache.org:8020',
'hdfs_site': {u'dfs.namenode.checkpoint.period': u'21600', u'dfs.namenode.avoid.write.stale.datanode':
u'true', u'dfs.block.access.token.enable': u'true', u'dfs.support.append': u'true', u'dfs.datanode.address':
u'0.0.0.0:${ambari.dfs.datanode.port}', u'dfs.cluster.administrators': u'test_user1,test_user2
hdfs,test_group', u'dfs.replication': u'3', u'ambari.dfs.datanode.http.port': u'50075', u'dfs.datanode.balance.bandwidthPerSec':
u'6250000', u'dfs.namenode.safemode.threshold-pct': u'1.0f', u'dfs.namenode.checkpoint.edits.dir':
u'${dfs.namenode.checkpoint.dir}', u'dfs.permissions.enabled': u'true', u'fs.checkpoint.size':
u'67108864', u'dfs.client.read.shortcircuit': u'true', u'dfs.namenode.https-address': u'c6401.ambari.apache.org:50470',
u'dfs.journalnode.edits.dir': u'/grid/0/hdfs/journal', u'dfs.blocksize': u'134217728', u'dfs.datanode.max.transfer.threads':
u'1024', u'dfs.datanode.du.reserved': u'1073741824', u'dfs.webhdfs.enabled': u'true', u'dfs.namenode.handler.count':
u'100', u'dfs.namenode.checkpoint.dir': u'/hadoop/hdfs/namesecondary,/hadoop/hdfs/namesecondary2',
u'fs.permissions.umask-mode': u'022', u'dfs.datanode.http.address': u'0.0.0.0:50075', u'dfs.datanode.ipc.address':
u'0.0.0.0:8010', u'dfs.datanode.data.dir': u'/hadoop/hdfs/data', u'dfs.namenode.http-address':
u'c6401.ambari.apache.org:50070', u'dfs.blockreport.initialDelay': u'120', u'dfs.datanode.failed.volumes.tolerated':
u'0', u'dfs.namenode.accesstime.precision': u'0', u'ambari.dfs.datanode.port': u'50010', u'dfs.namenode.avoid.read.stale.datanode':
u'true', u'dfs.namenode.secondary.http-address': u'c6402.ambari.apache.org:50090', u'dfs.namenode.stale.datanode.interval':
u'30000', u'dfs.heartbeat.interval': u'3', u'dfs.client.read.shortcircuit.streams.cache.size':
u'4096', u'dfs.permissions.superusergroup': u'hdfs', u'dfs.https.port': u'50470', u'dfs.journalnode.http-address':
u'0.0.0.0:8480', u'dfs.domain.socket.path': u'/var/lib/hadoop-hdfs/dn_socket', u'dfs.namenode.write.stale.datanode.ratio':
u'1.0f', u'dfs.hosts.exclude': u'/etc/hadoop/conf/dfs.exclude', u'dfs.datanode.data.dir.perm':
u'750', u'dfs.namenode.name.dir.restore': u'true', u'dfs.replication.max': u'50', u'dfs.namenode.name.dir':
u'/hadoop/hdfs/namenode'}, 'kinit_path_local': '/usr/bin/kinit', 'principal_name': UnknownConfiguration(),
'user': u'hdfs', 'owner': u'yarn', 'group': u'hadoop', 'hadoop_conf_dir': '/etc/hadoop/conf',
'type': 'directory', 'action': ['create_on_executStackAdvisor implementation for stack HDP1,
version 2.0.6 was not found
> Returning DefaultStackAdvisor implementation
> StackAdvisor implementation for stack XYZ, version 1.0.0 was loaded
> StackAdvisor implementation for stack XYZ, version 1.0.1 was loaded
> Returning XYZ101StackAdvisor implementation
> e']}
> FAIL: test_configure_secured (test_historyserver.TestHistoryServer)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/jluniya/merge/trunk/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>     return func(*args, **keywargs)
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py",
line 146, in test_configure_secured
>     self.assert_configure_secured()
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py",
line 468, in assert_configure_secured
>     action = ['create_on_execute'],
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 254, in assertResourceCalled
>     self.assertEquals(kwargs, resource.arguments)
> AssertionError: {'security_enabled': True, 'hadoop_conf_dir': '/etc/hadoop/conf', 'keytab':
'/etc/security/keytabs/hdfs.headless.keytab', 'default_fs': 'hdfs://c6401.ambari.apache.org:8020',
'hdfs_site': {u'dfs.namenode.avoid.write.stale.datanode': u'true', u'dfs.namenode.kerberos.internal.spnego.principal':
u'${dfs.web.authentication.kerberos.principal}', u'dfs.datanode.kerberos.principal': u'dn/_HOST@EXAMPLE.COM',
u'dfs.heartbeat.interval': u'3', u'dfs.block.access.token.enable': u'true', u'dfs.support.append':
u'true', u'dfs.datanode.address': u'0.0.0.0:${ambari.dfs.datanode.port}', u'dfs.cluster.administrators':
u' hdfs', u'ambari.dfs.datanode.http.port': u'1022', u'dfs.journalnode.kerberos.principal':
u'jn/_HOST@EXAMPLE.COM', u'dfs.datanode.balance.bandwidthPerSec': u'6250000', u'dfs.namenode.safemode.threshold-pct':
u'1.0f', u'dfs.namenode.checkpoint.edits.dir': u'${dfs.namenode.checkpoint.dir}', u'dfs.namenode.write.stale.datanode.ratio':
u'1.0f', u'dfs.permissions.enabled': u'true', u'fs.checkpoint.size': u'67108864', u'dfs.client.read.shortcircuit':
u'true', u'dfs.namenode.https-address': u'c6401.ambari.apache.org:50470', u'dfs.blockreport.initialDelay':
u'120', u'dfs.journalnode.edits.dir': u'/grid/0/hdfs/journal', u'dfs.blocksize': u'134217728',
u'dfs.datanode.max.transfer.threads': u'1024', u'dfs.secondary.namenode.kerberos.internal.spnego.principal':
u'${dfs.web.authentication.kerberos.principal}', u'dfs.webhdfs.enabled': u'true', u'dfs.namenode.handler.count':
u'100', u'dfs.namenode.checkpoint.dir': u'/hadoop/hdfs/namesecondary', u'fs.permissions.umask-mode':
u'022', u'dfs.namenode.stale.datanode.interval': u'30000', u'dfs.datanode.ipc.address': u'0.0.0.0:8010',
u'dfs.namenode.name.dir': u'/hadoop/hdfs/namenode', u'dfs.namenode.keytab.file': u'/etc/security/keytabs/nn.service.keytab',
u'dfs.datanode.data.dir': u'/hadoop/hdfs/data', u'dfs.namenode.http-address': u'c6401.ambari.apache.org:50070',
u'dfs.replication': u'3', u'dfs.datanode.failed.volumes.tolerated': u'0', u'dfs.namenode.accesstime.precision':
u'0', u'dfs.namenode.kerberos.principal': u'nn/_HOST@EXAMPLE.COM', u'ambari.dfs.datanode.port':
u'1019', u'dfs.web.authentication.kerberos.keytab': u'/etc/security/keytabs/spnego.service.keytab',
u'dfs.namenode.secondary.http-address': u'c6402.ambari.apache.org:50090', u'dfs.journalnode.keytab.file':
u'/etc/security/keytabs/jn.service.keytab', u'dfs.datanode.http.address': u'0.0.0.0:1022',
u'dfs.datanode.du.reserved': u'1073741824', u'dfs.client.read.shortcircuit.streams.cache.size':
u'4096', u'dfs.secondary.namenode.keytab.file': u'/etc/security/keytabs/nn.service.keytab',
u'dfs.web.authentication.kerberos.principal': u'HTTP/_HOST@EXAMPLE.COM', u'dfs.secondary.namenode.kerberos.principal':
u'nn/_HOST@EXAMPLE.COM', u'dfs.datanode.keytab.file': u'/etc/security/keytabs/dn.service.keytab',
u'dfs.permissions.superusergroup': u'hdfs', u'dfs.https.port': u'50470', u'dfs.journalnode.http-address':
u'0.0.0.0:8480', u'dfs.journalnode.kerberos.internal.spnego.principal': u'HTTP/_HOST@EXAMPLE.COM',
u'dfs.domain.socket.path': u'/var/lib/hadoop-hdfs/dn_socket', u'dfs.namenode.avoid.read.stale.datanode':
u'true', u'dfs.hosts.exclude': u'/etc/hadoop/conf/dfs.exclude', u'dfs.datanode.data.dir.perm':
u'750', u'dfs.namenode.name.dir.restore': u'true', u'dfs.replication.max': u'50', u'dfs.namenode.checkpoint.period':
u'21600'}, 'kinit_path_local': '/usr/bin/kinit', 'principal_name': 'hdfs', 'user': 'hdfs',
'owner': 'yarn', 'group': 'hadoop', 'hadoop_bin_dir': '/usr/bin', 'type': 'directory', 'action':
['create_on_execute']} != {'security_enabled': True, 'hadoop_bin_dir': '/usr/bin', 'keytab':
u'/etc/security/keytabs/hdfs.headless.keytab', 'dfs_type': '', 'default_fs': u'hdfs://c6401.ambari.apache.org:8020',
'hdfs_site': {u'dfs.namenode.avoid.write.stale.datanode': u'true', u'dfs.namenode.kerberos.internal.spnego.principal':
u'${dfs.web.authentication.kerberos.principal}', u'dfs.datanode.kerberos.principal': u'dn/_HOST@EXAMPLE.COM',
u'dfs.heartbeat.interval': u'3', u'dfs.block.access.token.enable': u'true', u'dfs.support.append':
u'true', u'dfs.datanode.address': u'0.0.0.0:${ambari.dfs.datanode.port}', u'dfs.cluster.administrators':
u' hdfs', u'ambari.dfs.datanode.http.port': u'1022', u'dfs.journalnode.kerberos.principal':
u'jn/_HOST@EXAMPLE.COM', u'dfs.datanode.balance.bandwidthPerSec': u'6250000', u'dfs.namenode.safemode.threshold-pct':
u'1.0f', u'dfs.namenode.checkpoint.edits.dir': u'${dfs.namenode.checkpoint.dir}', u'dfs.namenode.write.stale.datanode.ratio':
u'1.0f', u'dfs.permissions.enabled': u'true', u'fs.checkpoint.size': u'67108864', u'dfs.client.read.shortcircuit':
u'true', u'dfs.namenode.https-address': u'c6401.ambari.apache.org:50470', u'dfs.blockreport.initialDelay':
u'120', u'dfs.journalnode.edits.dir': u'/grid/0/hdfs/journal', u'dfs.blocksize': u'134217728',
u'dfs.datanode.max.transfer.threads': u'1024', u'dfs.secondary.namenode.kerberos.internal.spnego.principal':
u'${dfs.web.authentication.kerberos.principal}', u'dfs.webhdfs.enabled': u'true', u'dfs.namenode.handler.count':
u'100', u'dfs.namenode.checkpoint.dir': u'/hadoop/hdfs/namesecondary', u'fs.permissions.umask-mode':
u'022', u'dfs.namenode.stale.datanode.interval': u'30000', u'dfs.datanode.ipc.address': u'0.0.0.0:8010',
u'dfs.namenode.name.dir': u'/hadoop/hdfs/namenode', u'dfs.namenode.keytab.file': u'/etc/security/keytabs/nn.service.keytab',
u'dfs.datanode.data.dir': u'/hadoop/hdfs/data', u'dfs.namenode.http-address': u'c6401.ambari.apache.org:50070',
u'dfs.replication': u'3', u'dfs.datanode.failed.volumes.tolerated': u'0', u'dfs.namenode.accesstime.precision':
u'0', u'dfs.namenode.kerberos.principal': u'nn/_HOST@EXAMPLE.COM', u'ambari.dfs.datanode.port':
u'1019', u'dfs.web.authentication.kerberos.keytab': u'/etc/security/keytabs/spnego.service.keytab',
u'dfs.namenode.secondary.http-address': u'c6402.ambari.apache.org:50090', u'dfs.journalnode.keytab.file':
u'/etc/security/keytabs/jn.service.keytab', u'dfs.datanode.http.address': u'0.0.0.0:1022',
u'dfs.datanode.du.reserved': u'1073741824', u'dfs.client.read.shortcircuit.streams.cache.size':
u'4096', u'dfs.secondary.namenode.keytab.file': u'/etc/security/keytabs/nn.service.keytab',
u'dfs.web.authentication.kerberos.principal': u'HTTP/_HOST@EXAMPLE.COM', u'dfs.secondary.namenode.kerberos.principal':
u'nn/_HOST@EXAMPLE.COM', u'dfs.datanode.keytab.file': u'/etc/security/keytabs/dn.service.keytab',
u'dfs.permissions.superusergroup': u'hdfs', u'dfs.https.port': u'50470', u'dfs.journalnode.http-address':
u'0.0.0.0:8480', u'dfs.journalnode.kerberos.internal.spnego.principal': u'HTTP/_HOST@EXAMPLE.COM',
u'dfs.domain.socket.path': u'/var/lib/hadoop-hdfs/dn_socket', u'dfs.namenode.avoid.read.stale.datanode':
u'true', u'dfs.hosts.exclude': u'/etc/hadoop/conf/dfs.exclude', u'dfs.datanode.data.dir.perm':
u'750', u'dfs.namenode.name.dir.restore': u'true', u'dfs.replication.max': u'50', u'dfs.namenode.checkpoint.period':
u'21600'}, 'kinit_path_local': '/usr/bin/kinit', 'principal_name': u'hdfs', 'user': u'hdfs',
'owner': u'yarn', 'group': u'hadoop', 'hadoop_conf_dir': '/etc/hadoop/conf', 'type': 'directory',
'action': ['create_on_execute']}
> FAIL: test_start_default (test_historyserver.TestHistoryServer)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/jluniya/merge/trunk/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>     return func(*args, **keywargs)
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py",
line 56, in test_start_default
>     self.assert_configure_default()
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py",
line 222, in assert_configure_default
>     action = ['create_on_execute'],
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 254, in assertResourceCalled
>     self.assertEquals(kwargs, resource.arguments)
> AssertionError: {'security_enabled': False, 'hadoop_conf_dir': '/etc/hadoop/conf', 'keytab':
UnknownConfigurationMock(), 'default_fs': 'hdfs://c6401.ambari.apache.org:8020', 'hdfs_site':
{u'dfs.namenode.checkpoint.period': u'21600', u'dfs.namenode.avoid.write.stale.datanode':
u'true', u'dfs.block.access.token.enable': u'true', u'dfs.support.append': u'true', u'dfs.datanode.address':
u'0.0.0.0:${ambari.dfs.datanode.port}', u'dfs.cluster.administrators': u'test_user1,test_user2
hdfs,test_group', u'dfs.replication': u'3', u'ambari.dfs.datanode.http.port': u'50075', u'dfs.datanode.balance.bandwidthPerSec':
u'6250000', u'dfs.namenode.safemode.threshold-pct': u'1.0f', u'dfs.namenode.checkpoint.edits.dir':
u'${dfs.namenode.checkpoint.dir}', u'dfs.permissions.enabled': u'true', u'fs.checkpoint.size':
u'67108864', u'dfs.client.read.shortcircuit': u'true', u'dfs.namenode.https-address': u'c6401.ambari.apache.org:50470',
u'dfs.journalnode.edits.dir': u'/grid/0/hdfs/journal', u'dfs.blocksize': u'134217728', u'dfs.datanode.max.transfer.threads':
u'1024', u'dfs.datanode.du.reserved': u'1073741824', u'dfs.webhdfs.enabled': u'true', u'dfs.namenode.handler.count':
u'100', u'dfs.namenode.checkpoint.dir': u'/hadoop/hdfs/namesecondary,/hadoop/hdfs/namesecondary2',
u'fs.permissions.umask-mode': u'022', u'dfs.datanode.http.address': u'0.0.0.0:50075', u'dfs.datanode.ipc.address':
u'0.0.0.0:8010', u'dfs.datanode.data.dir': u'/hadoop/hdfs/data', u'dfs.namenode.http-address':
u'c6401.ambari.apache.org:50070', u'dfs.blockreport.initialDelay': u'120', u'dfs.datanode.failed.volumes.tolerated':
u'0', u'dfs.namenode.accesstime.precision': u'0', u'ambari.dfs.datanode.port': u'50010', u'dfs.namenode.avoid.read.stale.datanode':
u'true', u'dfs.namenode.secondary.http-address': u'c6402.ambari.apache.org:50090', u'dfs.namenode.stale.datanode.interval':
u'30000', u'dfs.heartbeat.interval': u'3', u'dfs.client.read.shortcircuit.streams.cache.size':
u'4096', u'dfs.permissions.superusergroup': u'hdfs', u'dfs.https.port': u'50470', u'dfs.journalnode.http-address':
u'0.0.0.0:8480', u'dfs.domain.socket.path': u'/var/lib/hadoop-hdfs/dn_socket', u'dfs.namenode.write.stale.datanode.ratio':
u'1.0f', u'dfs.hosts.exclude': u'/etc/hadoop/conf/dfs.exclude', u'dfs.datanode.data.dir.perm':
u'750', u'dfs.namenode.name.dir.restore': u'true', u'dfs.replication.max': u'50', u'dfs.namenode.name.dir':
u'/hadoop/hdfs/namenode'}, 'kinit_path_local': '/usr/bin/kinit', 'principal_name': UnknownConfigurationMock(),
'user': 'hdfs', 'owner': 'yarn', 'group': 'hadoop', 'hadoop_bin_dir': '/usr/bin', 'type':
'directory', 'action': ['create_on_execute']} != {'security_enabled': False, 'hadoop_bin_dir':
'/usr/bin', 'keytab': UnknownConfiguration(), 'dfs_type': '', 'default_fs': u'hdfs://c6401.ambari.apache.org:8020',
'hdfs_site': {u'dfs.namenode.checkpoint.period': u'21600', u'dfs.namenode.avoid.write.stale.datanode':
u'true', u'dfs.block.access.token.enable': u'true', u'dfs.support.append': u'true', u'dfs.datanode.address':
u'0.0.0.0:${ambari.dfs.datanode.port}', u'dfs.cluster.administrators': u'test_user1,test_user2
hdfs,test_group', u'dfs.replication': u'3', u'ambari.dfs.datanode.http.port': u'50075', u'dfs.datanode.balance.bandwidthPerSec':
u'6250000', u'dfs.namenode.safemode.threshold-pct': u'1.0f', u'dfs.namenode.checkpoint.edits.dir':
u'${dfs.namenode.checkpoint.dir}', u'dfs.permissions.enabled': u'true', u'fs.checkpoint.size':
u'67108864', u'dfs.client.read.shortcircuit': u'true', u'dfs.namenode.https-address': u'c6401.ambari.apache.org:50470',
u'dfs.journalnode.edits.dir': u'/grid/0/hdfs/journal', u'dfs.blocksize': u'134217728', u'dfs.datanode.max.transfer.threads':
u'1024', u'dfs.datanode.du.reserved': u'1073741824', u'dfs.webhdfs.enabled': u'true', u'dfs.namenode.handler.count':
u'100', u'dfs.namenode.checkpoint.dir': u'/hadoop/hdfs/namesecondary,/hadoop/hdfs/namesecondary2',
u'fs.permissions.umask-mode': u'022', u'dfs.datanode.http.address': u'0.0.0.0:50075', u'dfs.datanode.ipc.address':
u'0.0.0.0:8010', u'dfs.datanode.data.dir': u'/hadoop/hdfs/data', u'dfs.namenode.http-address':
u'c6401.ambari.apache.org:50070', u'dfs.blockreport.initialDelay': u'120', u'dfs.datanode.failed.volumes.tolerated':
u'0', u'dfs.namenode.accesstime.precision': u'0', u'ambari.dfs.datanode.port': u'50010', u'dfs.namenode.avoid.read.stale.datanode':
u'true', u'dfs.namenode.secondary.http-address': u'c6402.ambari.apache.org:50090', u'dfs.namenode.stale.datanode.interval':
u'30000', u'dfs.heartbeat.interval': u'3', u'dfs.client.read.shortcircuit.streams.cache.size':
u'4096', u'dfs.permissions.superusergroup': u'hdfs', u'dfs.https.port': u'50470', u'dfs.journalnode.http-address':
u'0.0.0.0:8480', u'dfs.domain.socket.path': u'/var/lib/hadoop-hdfs/dn_socket', u'dfs.namenode.write.stale.datanode.ratio':
u'1.0f', u'dfs.hosts.exclude': u'/etc/hadoop/conf/dfs.exclude', u'dfs.datanode.data.dir.perm':
u'750', u'dfs.namenode.name.dir.restore': u'true', u'dfs.replication.max': u'50', u'dfs.namenode.name.dir':
u'/hadoop/hdfs/namenode'}, 'kinit_path_local': '/usr/bin/kinit', 'principal_name': UnknownConfiguration(),
'user': u'hdfs', 'owner': u'yarn', 'group': u'hadoop', 'hadoop_conf_dir': '/etc/hadoop/conf',
'type': 'directory', 'action': ['create_on_execute']}
> FAIL: test_start_secured (test_historyserver.TestHistoryServer)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Users/jluniya/merge/trunk/ambari/ambari-common/src/test/python/mock/mock.py",
line 1199, in patched
>     return func(*args, **keywargs)
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py",
line 158, in test_start_secured
>     self.assert_configure_secured()
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/2.0.6/YARN/test_historyserver.py",
line 468, in assert_configure_secured
>     action = ['create_on_execute'],
>   File "/Users/jluniya/merge/trunk/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
line 254, in assertResourceCalled
>     self.assertEquals(kwargs, resource.arguments)
> AssertionError: {'security_enabled': True, 'hadoop_conf_dir': '/etc/hadoop/conf', 'keytab':
'/etc/security/keytabs/hdfs.headless.keytab', 'default_fs': 'hdfs://c6401.ambari.apache.org:8020',
'hdfs_site': {u'dfs.namenode.avoid.write.stale.datanode': u'true', u'dfs.namenode.kerberos.internal.spnego.principal':
u'${dfs.web.authentication.kerberos.principal}', u'dfs.datanode.kerberos.principal': u'dn/_HOST@EXAMPLE.COM',
u'dfs.heartbeat.interval': u'3', u'dfs.block.access.token.enable': u'true', u'dfs.support.append':
u'true', u'dfs.datanode.address': u'0.0.0.0:${ambari.dfs.datanode.port}', u'dfs.cluster.administrators':
u' hdfs', u'ambari.dfs.datanode.http.port': u'1022', u'dfs.journalnode.kerberos.principal':
u'jn/_HOST@EXAMPLE.COM', u'dfs.datanode.balance.bandwidthPerSec': u'6250000', u'dfs.namenode.safemode.threshold-pct':
u'1.0f', u'dfs.namenode.checkpoint.edits.dir': u'${dfs.namenode.checkpoint.dir}', u'dfs.namenode.write.stale.datanode.ratio':
u'1.0f', u'dfs.permissions.enabled': u'true', u'fs.checkpoint.size': u'67108864', u'dfs.client.read.shortcircuit':
u'true', u'dfs.namenode.https-address': u'c6401.ambari.apache.org:50470', u'dfs.blockreport.initialDelay':
u'120', u'dfs.journalnode.edits.dir': u'/grid/0/hdfs/journal', u'dfs.blocksize': u'134217728',
u'dfs.datanode.max.transfer.threads': u'1024', u'dfs.secondary.namenode.kerberos.internal.spnego.principal':
u'${dfs.web.authentication.kerberos.principal}', u'dfs.webhdfs.enabled': u'true', u'dfs.namenode.handler.count':
u'100', u'dfs.namenode.checkpoint.dir': u'/hadoop/hdfs/namesecondary', u'fs.permissions.umask-mode':
u'022', u'dfs.namenode.stale.datanode.interval': u'30000', u'dfs.datanode.ipc.address': u'0.0.0.0:8010',
u'dfs.namenode.name.dir': u'/hadoop/hdfs/namenode', u'dfs.namenode.keytab.file': u'/etc/security/keytabs/nn.service.keytab',
u'dfs.datanode.data.dir': u'/hadoop/hdfs/data', u'dfs.namenode.http-address': u'c6401.ambari.apache.org:50070',
u'dfs.replication': u'3', u'dfs.datanode.failed.volumes.tolerated': u'0', u'dfs.namenode.accesstime.precision':
u'0', u'dfs.namenode.kerberos.principal': u'nn/_HOST@EXAMPLE.COM', u'ambari.dfs.datanode.port':
u'1019', u'dfs.web.authentication.kerberos.keytab': u'/etc/security/keytabs/spnego.service.keytab',
u'dfs.namenode.secondary.http-address': u'c6402.ambari.apache.org:50090', u'dfs.journalnode.keytab.file':
u'/etc/security/keytabs/jn.service.keytab', u'dfs.datanode.http.address': u'0.0.0.0:1022',
u'dfs.datanode.du.reserved': u'1073741824', u'dfs.client.read.shortcircuit.streams.cache.size':
u'4096', u'dfs.secondary.namenode.keytab.file': u'/etc/security/keytabs/nn.service.keytab',
u'dfs.web.authentication.kerberos.principal': u'HTTP/_HOST@EXAMPLE.COM', u'dfs.secondary.namenode.kerberos.principal':
u'nn/_HOST@EXAMPLE.COM', u'dfs.datanode.keytab.file': u'/etc/security/keytabs/dn.service.keytab',
u'dfs.permissions.superusergroup': u'hdfs', u'dfs.https.port': u'50470', u'dfs.journalnode.http-address':
u'0.0.0.0:8480', u'dfs.journalnode.kerberos.internal.spnego.principal': u'HTTP/_HOST@EXAMPLE.COM',
u'dfs.domain.socket.path': u'/var/lib/hadoop-hdfs/dn_socket', u'dfs.namenode.avoid.read.stale.datanode':
u'true', u'dfs.hosts.exclude': u'/etc/hadoop/conf/dfs.exclude', u'dfs.datanode.data.dir.perm':
u'750', u'dfs.namenode.name.dir.restore': u'true', u'dfs.replication.max': u'50', u'dfs.namenode.checkpoint.period':
u'21600'}, 'kinit_path_local': '/usr/bin/kinit', 'principal_name': 'hdfs', 'user': 'hdfs',
'owner': 'yarn', 'group': 'hadoop', 'hadoop_bin_dir': '/usr/bin', 'type': 'directory', 'action':
['create_on_execute']} != {'security_enabled': True, 'hadoop_bin_dir': '/usr/bin', 'keytab':
u'/etc/security/keytabs/hdfs.headless.keytab', 'dfs_type': '', 'default_fs': u'hdfs://c6401.ambari.apache.org:8020',
'hdfs_site': {u'dfs.namenode.avoid.write.stale.datanode': u'true', u'dfs.namenode.kerberos.internal.spnego.principal':
u'${dfs.web.authentication.kerberos.principal}', u'dfs.datanode.kerberos.principal': u'dn/_HOST@EXAMPLE.COM',
u'dfs.heartbeat.interval': u'3', u'dfs.block.access.token.enable': u'true', u'dfs.support.append':
u'true', u'dfs.datanode.address': u'0.0.0.0:${ambari.dfs.datanode.port}', u'dfs.cluster.administrators':
u' hdfs', u'ambari.dfs.datanode.http.port': u'1022', u'dfs.journalnode.kerberos.principal':
u'jn/_HOST@EXAMPLE.COM', u'dfs.datanode.balance.bandwidthPerSec': u'6250000', u'dfs.namenode.safemode.threshold-pct':
u'1.0f', u'dfs.namenode.checkpoint.edits.dir': u'${dfs.namenode.checkpoint.dir}', u'dfs.namenode.write.stale.datanode.ratio':
u'1.0f', u'dfs.permissions.enabled': u'true', u'fs.checkpoint.size': u'67108864', u'dfs.client.read.shortcircuit':
u'true', u'dfs.namenode.https-address': u'c6401.ambari.apache.org:50470', u'dfs.blockreport.initialDelay':
u'120', u'dfs.journalnode.edits.dir': u'/grid/0/hdfs/journal', u'dfs.blocksize': u'134217728',
u'dfs.datanode.max.transfer.threads': u'1024', u'dfs.secondary.namenode.kerberos.internal.spnego.principal':
u'${dfs.web.authentication.kerberos.principal}', u'dfs.webhdfs.enabled': u'true', u'dfs.namenode.handler.count':
u'100', u'dfs.namenode.checkpoint.dir': u'/hadoop/hdfs/namesecondary', u'fs.permissions.umask-mode':
u'022', u'dfs.namenode.stale.datanode.interval': u'30000', u'dfs.datanode.ipc.address': u'0.0.0.0:8010',
u'dfs.namenode.name.dir': u'/hadoop/hdfs/namenode', u'dfs.namenode.keytab.file': u'/etc/security/keytabs/nn.service.keytab',
u'dfs.datanode.data.dir': u'/hadoop/hdfs/data', u'dfs.namenode.http-address': u'c6401.ambari.apache.org:50070',
u'dfs.replication': u'3', u'dfs.datanode.failed.volumes.tolerated': u'0', u'dfs.namenode.accesstime.precision':
u'0', u'dfs.namenode.kerberos.principal': u'nn/_HOST@EXAMPLE.COM', u'ambari.dfs.datanode.port':
u'1019', u'dfs.web.authentication.kerberos.keytab': u'/etc/security/keytabs/spnego.service.keytab',
u'dfs.namenode.secondary.http-address': u'c6402.ambari.apache.org:50090', u'dfs.journalnode.keytab.file':
u'/etc/security/keytabs/jn.service.keytab', u'dfs.datanode.http.address': u'0.0.0.0:1022',
u'dfs.datanode.du.reserved': u'1073741824', u'dfs.client.read.shortcircuit.streams.cache.size':
u'4096', u'dfs.secondary.namenode.keytab.file': u'/etc/security/keytabs/nn.service.keytab',
u'dfs.web.authentication.kerberos.principal': u'HTTP/_HOST@EXAMPLE.COM', u'dfs.secondary.namenode.kerberos.principal':
u'nn/_HOST@EXAMPLE.COM', u'dfs.datanode.keytab.file': u'/etc/security/keytabs/dn.service.keytab',
u'dfs.permissions.superusergroup': u'hdfs', u'dfs.https.port': u'50470', u'dfs.journalnode.http-address':
u'0.0.0.0:8480', u'dfs.journalnode.kerberos.internal.spnego.principal': u'HTTP/_HOST@EXAMPLE.COM',
u'dfs.domain.socket.path': u'/var/lib/hadoop-hdfs/dn_socket', u'dfs.namenode.avoid.read.stale.datanode':
u'true', u'dfs.hosts.exclude': u'/etc/hadoop/conf/dfs.exclude', u'dfs.datanode.data.dir.perm':
u'750', u'dfs.namenode.name.dir.restore': u'true', u'dfs.replication.max': u'50', u'dfs.namenode.checkpoint.period':
u'21600'}, 'kinit_path_local': '/usr/bin/kinit', 'principal_name': u'hdfs', 'user': u'hdfs',
'owner': u'yarn', 'group': u'hadoop', 'hadoop_conf_dir': '/etc/hadoop/conf', 'type': 'directory',
'action': ['create_on_execute']}
> ----------------------------------------------------------------------
> {noformat}



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

Mime
View raw message