[
https://issues.apache.org/jira/browse/AMBARI-18717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Onischuk updated AMBARI-18717:
-------------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
Committed to trunk
> Python UT fail on trunk
> -----------------------
>
> Key: AMBARI-18717
> URL: https://issues.apache.org/jira/browse/AMBARI-18717
> Project: Ambari
> Issue Type: Bug
> Reporter: Andrew Onischuk
> Assignee: Andrew Onischuk
> Fix For: 3.0.0
>
> Attachments: AMBARI-18717.patch
>
>
> ----------------------------------------------------------------------
> Failed tests:
> FAIL: test_start_secured (test_kms_server.TestRangerKMS)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/user/ambari/ambari-common/src/test/python/mock/mock.py",
> line 1199, in patched
> return func(*args, **keywargs)
> File
> "/home/user/ambari/ambari-server/src/test/python/stacks/2.5/RANGER_KMS/test_kms_server.py",
> line 415, in test_start_secured
> mode = 0644
> File
> "/home/user/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
> line 282, in assertResourceCalled
> self.assertEquals(kwargs, resource.arguments)
> AssertionError: {'owner': 'kms', 'content':
> '<ranger>\n<enabled>2016-10-27 16:26:51</enabled>\n< [truncated]... !=
> {'content': '<ranger>\n<enabled>2016-10-27 16:26:50</enabled>\n</ranger>',
> 'owne [truncated]...
> - {'content': '<ranger>\n<enabled>2016-10-27
> 16:26:51</enabled>\n</ranger>',
> ? ^
>
> + {'content': '<ranger>\n<enabled>2016-10-27
> 16:26:50</enabled>\n</ranger>',
> ? ^
>
> - 'group': 'kms',
> + 'group': u'kms',
> ? +
>
> 'mode': 420,
> - 'owner': 'kms'}
> + 'owner': u'kms'}
> ? +
>
>
> FAIL: test_start_secured (test_zeppelin_master.TestZeppelinMaster)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/user/ambari/ambari-common/src/test/python/mock/mock.py",
> line 1199, in patched
> return func(*args, **keywargs)
> File
> "/home/user/ambari/ambari-server/src/test/python/stacks/2.5/ZEPPELIN/test_zeppelin_master.py",
> line 300, in test_start_secured
> user = 'zeppelin',
> File
> "/home/user/ambari/ambari-server/src/test/python/stacks/utils/RMFTestCase.py",
> line 281, in assertResourceCalled
> self.assertEquals(name, resource.name)
> AssertionError: '/usr/bin/kinit -kt
> /etc/security/keytabs/zeppelin.server.kerberos.keytab [email protected]; '
> != ('chown', '-R', u'zeppelin:zeppelin',
> '/usr/hdp/current/zeppelin-server/notebook')
>
> ----------------------------------------------------------------------
> Total run:1158
> Total errors:0
> Total failures:2
> ERROR
> INFO: AMBARI_SERVER_LIB is not set, using default /usr/lib/ambari-server
> INFO: Return code from stack upgrade command, retcode = 0
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Ambari Views ...................................... SUCCESS
> [1.960s]
> [INFO] Ambari Metrics Common ............................. SUCCESS
> [1.335s]
> [INFO] Ambari Server ..................................... FAILURE
> [1:14.657s]
> [INFO] Ambari Agent ...................................... SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 1:18.828s
> [INFO] Finished at: Thu Oct 27 16:27:34 EEST 2016
> [INFO] Final Memory: 87M/1190M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (python-test) on project
> ambari-server: Command execution failed. Process exited with an error: 1
> (Exit value: 1) -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <goals> -rf :ambari-server
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)