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

Review request for Ambari and Dmytro Sen.


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


Repository: ambari


Description
-------

Steps:

  1. Enable motd for instances.
  2. Deploy cluster.
  3. Try to enable security.

Result: enabling security was failed during Storm UI stop:

    
    
    
    "stderr" : "Traceback (most recent call last):
      File 
\"/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/ui_server.py\",
 line 154, in <module>
        UiServer().execute()
      File 
\"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\",
 line 216, in execute
        method(env)
      File 
\"/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/ui_server.py\",
 line 93, in stop
        service(\"ui\", action=\"stop\")
      File 
\"/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/service.py\",
 line 81, 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 152, in run
        self.run_action(resource, action)
      File 
\"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", 
line 118, in run_action
        provider_action()
      File 
\"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py\",
 line 260, 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 `ambari-sudo.sh su storm -l -s /bin/bash -c 'cat /var/run/storm/ui.pid'`' 
returned 1. kill: cannot find process \"########\"
    kill: cannot find process \"Hortonworks\"
    kill: cannot find process \"#############\"
    kill: cannot find process \"This\"
    kill: cannot find process \"is\"
    kill: cannot find process \"MOTD\"
    kill: cannot find process \"message,\"
    kill: cannot find process \"added\"
    kill: cannot find process \"for\"
    kill: cannot find process \"testing\"
    kill: cannot find process \"in\"
    kill: cannot find process \"qe\"
    kill: cannot find process \"infra\"",
        "stdout" : "2015-10-26 17:04:02,469 - Execute['ambari-sudo.sh kill 
`ambari-sudo.sh su storm -l -s /bin/bash -c 'cat /var/run/storm/ui.pid'`'] 
{'not_if': \"! (ambari-sudo.sh su storm -l -s /bin/bash -c 'ls 
/var/run/storm/ui.pid >/dev/null 2>&1 && ps -p `cat /var/run/storm/ui.pid` 
>/dev/null 2>&1')\"}",


Diffs
-----

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

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


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk

Reply via email to