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


Ship it!




Ship It!

- Dmytro Sen


On Июль 13, 2016, 8:55 д.п., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/49982/
> -----------------------------------------------------------
> 
> (Updated Июль 13, 2016, 8:55 д.п.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-17685
>     https://issues.apache.org/jira/browse/AMBARI-17685
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Check DB connection failed with the following error:
> 
>     
>     
>     
>     2016-07-13 01:01:18,989 - Error installing java.
>     Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
>     Traceback (most recent call last):
>       File 
> "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 383, 
> in execute_db_connection_check
>         Directory(java_home, user=getpass.getuser(), recursive_ownership=True)
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 
> 147, in __init__
>         raise Fail("%s received unsupported argument %s" % (self, key))
>     Fail: Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument 
> user
>     2016-07-13 01:01:19,164 - Check db_connection_check was unsuccessful. 
> Exit code: 1. Message: Error installing java.
>     Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
>     
>     Traceback (most recent call last):
>       File 
> "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 506, 
> in <module>
>         CheckHost().execute()
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 280, in execute
>         method(env)
>       File 
> "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 206, 
> in actionexecute
>         raise Fail(error_message)
>     resource_management.core.exceptions.Fail: Check db_connection_check was 
> unsuccessful. Exit code: 1. Message: Error installing java.
>     Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
>     
> 
> Looks like `user` is not a valid parameter.
> 
> Full context of the call
> 
>     
>     
>     
>     [?1034h2016-07-13 01:01:12,230 - Host checks started.
>     2016-07-13 01:01:12,230 - Check execute list: db_connection_check
>     2016-07-13 01:01:12,230 - DB connection check started.
>     
>     2016-07-13 01:01:13,050 - Directory['/usr/jdk64'] {}
>     2016-07-13 01:01:13,058 - Creating directory Directory['/usr/jdk64'] 
> since it doesn't exist.
>     2016-07-13 01:01:13,060 - Execute[('chmod', 'a+x', '/usr/jdk64')] 
> {'not_if': 'test -e /usr/jdk64/jdk1.8.0_60/bin/java', 'sudo': True}
>     2016-07-13 01:01:13,078 - Execute['cd 
> /var/lib/ambari-agent/tmp/jdk_tmp_P5yiwx && tar -xf 
> /var/lib/ambari-agent/cache/jdk-8u60-linux-x64.tar.gz && ambari-sudo.sh cp 
> -rp /var/lib/ambari-agent/tmp/jdk_tmp_P5yiwx/* /usr/jdk64'] {'not_if': 'test 
> -e /usr/jdk64/jdk1.8.0_60/bin/java'}
>     2016-07-13 01:01:18,988 - File['/usr/jdk64/jdk1.8.0_60/bin/java'] 
> {'mode': 0755, 'cd_access': 'a'}
>     2016-07-13 01:01:18,989 - Error installing java.
>     Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
>     Traceback (most recent call last):
>       File 
> "/var/lib/ambari-agent/cache/custom_actions/scripts/check_host.py", line 383, 
> in execute_db_connection_check
>         Directory(java_home, user=getpass.getuser(), recursive_ownership=True)
>       File 
> "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 
> 147, in __init__
>         raise Fail("%s received unsupported argument %s" % (self, key))
>     Fail: Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument 
> user
>     2016-07-13 01:01:18,990 - Directory['/usr/jdk64/jdk1.8.0_60'] 
> {'recursive_ownership': True}
>     2016-07-13 01:01:18,991 - 
> Directory['/var/lib/ambari-agent/tmp/jdk_tmp_P5yiwx'] {'action': ['delete']}
>     2016-07-13 01:01:18,991 - Removing directory 
> Directory['/var/lib/ambari-agent/tmp/jdk_tmp_P5yiwx'] and all its content
>     2016-07-13 01:01:19,164 - Host checks completed.
>     2016-07-13 01:01:19,164 - Check db_connection_check was unsuccessful. 
> Exit code: 1. Message: Error installing java.
>     Directory['/usr/jdk64/jdk1.8.0_60'] received unsupported argument user
>     
>     Command failed after 1 tries
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/custom_actions/scripts/check_host.py 
> 004d5ef 
> 
> Diff: https://reviews.apache.org/r/49982/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>

Reply via email to