You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Andrew Onischuk <ao...@hortonworks.com> on 2015/11/25 14:41:46 UTC

Review Request 40704: Sometimes Supervisor Stop is failed when try to enable AD security (Upgrade from 2.1.1 to 2.1.3.0)[resource_management.core.exceptions.Fail]

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

Review request for Ambari and Dmitro Lisnichenko.


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


Repository: ambari


Description
-------

STR: **Cluster:**<http://172.22.94.137:8080/#/main/services/STORM/summary>  
1)Deploy old version  
3)Enable security (AD)  
4)Make Ambari only upgrade to 2.1.3.0  
5)Disable security  
5)Enable NN,RM HA (optional steps0  
6)Try to Enable security (AD)

Actual results:  
Sometimes Supervisor Stop is failed when try to disable AD security

    
    
    
    stderr:   /var/lib/ambari-agent/data/errors-2087.txt
    
    Traceback (most recent call last):
      File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/supervisor.py", line 104, in <module>
        Supervisor().execute()
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
        method(env)
      File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/supervisor.py", line 95, in stop
        service("logviewer", action="stop")
      File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/service.py", line 85, in service
        not_if = process_dont_exist)
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
        self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 156, in run
        self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 119, in run_action
        provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 238, in action_run
        tries=self.resource.tries, try_sleep=self.resource.try_sleep)
      File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
        result = function(command, **kwargs)
      File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
        tries=tries, try_sleep=try_sleep)
      File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
        result = _call(command, **kwargs_copy)
      File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
        raise Fail(err_msg)
    resource_management.core.exceptions.Fail: Execution of 'ambari-sudo.sh kill 28846
    12788' returned 127. kill 28846: No such process
    /bin/bash: line 1: 12788: command not found
    stdout:   /var/lib/ambari-agent/data/output-2087.txt
    
    2015-11-20 07:35:40,385 - call['ambari-sudo.sh su storm -l -s /bin/bash -c '! test -f /var/run/storm/logviewer.pid ||  cat /var/run/storm/logviewer.pid 1>/tmp/tmp_fmDns 2>/tmp/tmptXWeqo''] {'quiet': False}
    2015-11-20 07:35:40,452 - call returned (0, '')
    2015-11-20 07:35:40,453 - Execute['ambari-sudo.sh kill 28846
    12788'] {'not_if': "! (ambari-sudo.sh su storm -l -s /bin/bash -c 'ls /var/run/storm/logviewer.pid >/dev/null 2>&1 && ps -p `cat /var/run/storm/logviewer.pid` >/dev/null 2>&1')"}


Diffs
-----

  ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py 378bfd1 

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


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Re: Review Request 40704: Sometimes Supervisor Stop is failed when try to enable AD security (Upgrade from 2.1.1 to 2.1.3.0)[resource_management.core.exceptions.Fail]

Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40704/#review107987
-----------------------------------------------------------

Ship it!


Ship It!

- Dmitro Lisnichenko


On Nov. 25, 2015, 3:41 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40704/
> -----------------------------------------------------------
> 
> (Updated Nov. 25, 2015, 3:41 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-14064
>     https://issues.apache.org/jira/browse/AMBARI-14064
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> STR: **Cluster:**<http://172.22.94.137:8080/#/main/services/STORM/summary>  
> 1)Deploy old version  
> 3)Enable security (AD)  
> 4)Make Ambari only upgrade to 2.1.3.0  
> 5)Disable security  
> 5)Enable NN,RM HA (optional steps0  
> 6)Try to Enable security (AD)
> 
> Actual results:  
> Sometimes Supervisor Stop is failed when try to disable AD security
> 
>     
>     
>     
>     stderr:   /var/lib/ambari-agent/data/errors-2087.txt
>     
>     Traceback (most recent call last):
>       File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/supervisor.py", line 104, in <module>
>         Supervisor().execute()
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
>         method(env)
>       File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/supervisor.py", line 95, in stop
>         service("logviewer", action="stop")
>       File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/service.py", line 85, in service
>         not_if = process_dont_exist)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
>         self.env.run()
>       File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 156, in run
>         self.run_action(resource, action)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 119, in run_action
>         provider_action()
>       File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 238, in action_run
>         tries=self.resource.tries, try_sleep=self.resource.try_sleep)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
>         result = function(command, **kwargs)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
>         tries=tries, try_sleep=try_sleep)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
>         result = _call(command, **kwargs_copy)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
>         raise Fail(err_msg)
>     resource_management.core.exceptions.Fail: Execution of 'ambari-sudo.sh kill 28846
>     12788' returned 127. kill 28846: No such process
>     /bin/bash: line 1: 12788: command not found
>     stdout:   /var/lib/ambari-agent/data/output-2087.txt
>     
>     2015-11-20 07:35:40,385 - call['ambari-sudo.sh su storm -l -s /bin/bash -c '! test -f /var/run/storm/logviewer.pid ||  cat /var/run/storm/logviewer.pid 1>/tmp/tmp_fmDns 2>/tmp/tmptXWeqo''] {'quiet': False}
>     2015-11-20 07:35:40,452 - call returned (0, '')
>     2015-11-20 07:35:40,453 - Execute['ambari-sudo.sh kill 28846
>     12788'] {'not_if': "! (ambari-sudo.sh su storm -l -s /bin/bash -c 'ls /var/run/storm/logviewer.pid >/dev/null 2>&1 && ps -p `cat /var/run/storm/logviewer.pid` >/dev/null 2>&1')"}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py 378bfd1 
> 
> Diff: https://reviews.apache.org/r/40704/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>


Re: Review Request 40704: Sometimes Supervisor Stop is failed when try to enable AD security (Upgrade from 2.1.1 to 2.1.3.0)[resource_management.core.exceptions.Fail]

Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40704/#review107989
-----------------------------------------------------------

Ship it!


Ship It!

- Andrew Onischuk


On Nov. 25, 2015, 1:41 p.m., Andrew Onischuk wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40704/
> -----------------------------------------------------------
> 
> (Updated Nov. 25, 2015, 1:41 p.m.)
> 
> 
> Review request for Ambari and Dmitro Lisnichenko.
> 
> 
> Bugs: AMBARI-14064
>     https://issues.apache.org/jira/browse/AMBARI-14064
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> STR: **Cluster:**<http://172.22.94.137:8080/#/main/services/STORM/summary>  
> 1)Deploy old version  
> 3)Enable security (AD)  
> 4)Make Ambari only upgrade to 2.1.3.0  
> 5)Disable security  
> 5)Enable NN,RM HA (optional steps0  
> 6)Try to Enable security (AD)
> 
> Actual results:  
> Sometimes Supervisor Stop is failed when try to disable AD security
> 
>     
>     
>     
>     stderr:   /var/lib/ambari-agent/data/errors-2087.txt
>     
>     Traceback (most recent call last):
>       File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/supervisor.py", line 104, in <module>
>         Supervisor().execute()
>       File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
>         method(env)
>       File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/supervisor.py", line 95, in stop
>         service("logviewer", action="stop")
>       File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/service.py", line 85, in service
>         not_if = process_dont_exist)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
>         self.env.run()
>       File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 156, in run
>         self.run_action(resource, action)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 119, in run_action
>         provider_action()
>       File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 238, in action_run
>         tries=self.resource.tries, try_sleep=self.resource.try_sleep)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
>         result = function(command, **kwargs)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
>         tries=tries, try_sleep=try_sleep)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
>         result = _call(command, **kwargs_copy)
>       File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
>         raise Fail(err_msg)
>     resource_management.core.exceptions.Fail: Execution of 'ambari-sudo.sh kill 28846
>     12788' returned 127. kill 28846: No such process
>     /bin/bash: line 1: 12788: command not found
>     stdout:   /var/lib/ambari-agent/data/output-2087.txt
>     
>     2015-11-20 07:35:40,385 - call['ambari-sudo.sh su storm -l -s /bin/bash -c '! test -f /var/run/storm/logviewer.pid ||  cat /var/run/storm/logviewer.pid 1>/tmp/tmp_fmDns 2>/tmp/tmptXWeqo''] {'quiet': False}
>     2015-11-20 07:35:40,452 - call returned (0, '')
>     2015-11-20 07:35:40,453 - Execute['ambari-sudo.sh kill 28846
>     12788'] {'not_if': "! (ambari-sudo.sh su storm -l -s /bin/bash -c 'ls /var/run/storm/logviewer.pid >/dev/null 2>&1 && ps -p `cat /var/run/storm/logviewer.pid` >/dev/null 2>&1')"}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py 378bfd1 
> 
> Diff: https://reviews.apache.org/r/40704/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Andrew Onischuk
> 
>