Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-13627

Security can not be enabled on cluster with MOTD for "su"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • None
    • None

    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')\"}

      ",

      Attachments

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: