You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Jonathan Hurley <jh...@hortonworks.com> on 2015/02/22 21:43:08 UTC

Review Request 31281: Ranger Python Test Fails Because Of Missing Python Path For Common Services

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31281/
-----------------------------------------------------------

Review request for Ambari, Sumit Mohanty and Yusaku Sako.


Bugs: AMBARI-9741
    https://issues.apache.org/jira/browse/AMBARI-9741


Repository: ambari


Description
-------

Python tests on build.apache.org are failing because {{patch}} cannot find the module to patch.

{code}
OK
Running tests for stack:2.2 service:RANGER
test_upgrade (test_ranger_usersync.TestRangerUserSync) ... ERROR
test_upgrade (test_ranger_admin.TestRangerAdmin) ... 2015-02-21 00:04:28,200 - Could not determine HDP version for component ranger-admin by calling '/usr/bin/hdp-select status ranger-admin > /tmp/user/10011/ambari-test/tmpLUpYb6'. Return Code: 127, Output: .
2015-02-21 00:04:28,200 - Could not determine HDP version for component ranger-admin by calling '/usr/bin/hdp-select status ranger-admin > /tmp/user/10011/ambari-test/tmpLUpYb6'. Return Code: 127, Output: .
ok

======================================================================
ERROR: test_upgrade (test_ranger_usersync.TestRangerUserSync)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py", line 1191, in patched
    arg = patching.__enter__()
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py", line 1250, in __enter__
    self.target = self.getter()
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py", line 1412, in <lambda>
    getter = lambda: _importer(target)
  File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py", line 1096, in _importer
    thing = __import__(import_path)
ImportError: No module named setup_ranger
{code}


Diffs
-----

  ambari-server/src/test/python/stacks/2.2/RANGER/test_ranger_usersync.py d25d43a 

Diff: https://reviews.apache.org/r/31281/diff/


Testing
-------

----------------------------------------------------------------------
Total run:598
Total errors:0
Total failures:0
OK


Thanks,

Jonathan Hurley


Re: Review Request 31281: Ranger Python Test Fails Because Of Missing Python Path For Common Services

Posted by Yusaku Sako <yu...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31281/#review73460
-----------------------------------------------------------

Ship it!


Ship It!

- Yusaku Sako


On Feb. 22, 2015, 8:43 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/31281/
> -----------------------------------------------------------
> 
> (Updated Feb. 22, 2015, 8:43 p.m.)
> 
> 
> Review request for Ambari, Sumit Mohanty and Yusaku Sako.
> 
> 
> Bugs: AMBARI-9741
>     https://issues.apache.org/jira/browse/AMBARI-9741
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Python tests on build.apache.org are failing because {{patch}} cannot find the module to patch.
> 
> {code}
> OK
> Running tests for stack:2.2 service:RANGER
> test_upgrade (test_ranger_usersync.TestRangerUserSync) ... ERROR
> test_upgrade (test_ranger_admin.TestRangerAdmin) ... 2015-02-21 00:04:28,200 - Could not determine HDP version for component ranger-admin by calling '/usr/bin/hdp-select status ranger-admin > /tmp/user/10011/ambari-test/tmpLUpYb6'. Return Code: 127, Output: .
> 2015-02-21 00:04:28,200 - Could not determine HDP version for component ranger-admin by calling '/usr/bin/hdp-select status ranger-admin > /tmp/user/10011/ambari-test/tmpLUpYb6'. Return Code: 127, Output: .
> ok
> 
> ======================================================================
> ERROR: test_upgrade (test_ranger_usersync.TestRangerUserSync)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py", line 1191, in patched
>     arg = patching.__enter__()
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py", line 1250, in __enter__
>     self.target = self.getter()
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py", line 1412, in <lambda>
>     getter = lambda: _importer(target)
>   File "/home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-common/src/test/python/mock/mock.py", line 1096, in _importer
>     thing = __import__(import_path)
> ImportError: No module named setup_ranger
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/test/python/stacks/2.2/RANGER/test_ranger_usersync.py d25d43a 
> 
> Diff: https://reviews.apache.org/r/31281/diff/
> 
> 
> Testing
> -------
> 
> ----------------------------------------------------------------------
> Total run:598
> Total errors:0
> Total failures:0
> OK
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>