ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Review Request 39752: Security can not be enabled on cluster with MOTD for "su"
Date Thu, 29 Oct 2015 11:30:26 GMT

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

Review request for Ambari and Vitalyi Brodetskyi.


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-common/src/main/python/resource_management/libraries/functions/get_user_call_output.py
b254372 
  ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
fcd3da5 
  ambari-server/src/test/python/stacks/2.1/STORM/test_storm_drpc_server.py 283c865 
  ambari-server/src/test/python/stacks/2.1/STORM/test_storm_nimbus.py bbcc15a 
  ambari-server/src/test/python/stacks/2.1/STORM/test_storm_rest_api_service.py b26913e 
  ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor.py 84fb64c 
  ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor_prod.py 649b716 
  ambari-server/src/test/python/stacks/2.1/STORM/test_storm_ui_server.py 185c66d 

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


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message