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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      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')\"}

      ",

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-branch-2.1 #775 (See https://builds.apache.org/job/Ambari-branch-2.1/775/)
          AMBARI-13627. Security can not be enabled on cluster with MOTD for "su" (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=81d5ccf014516debf1facfdc5db860802571b1fe)

          • ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-branch-2.1 #775 (See https://builds.apache.org/job/Ambari-branch-2.1/775/ ) AMBARI-13627 . Security can not be enabled on cluster with MOTD for "su" (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=81d5ccf014516debf1facfdc5db860802571b1fe ) ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #3743 (See https://builds.apache.org/job/Ambari-trunk-Commit/3743/)
          AMBARI-13627. Security can not be enabled on cluster with MOTD for "su" (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=7e45cd3ef9e2691bb68f3ef12d7fedd1cbdf6ed4)

          • ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #3743 (See https://builds.apache.org/job/Ambari-trunk-Commit/3743/ ) AMBARI-13627 . Security can not be enabled on cluster with MOTD for "su" (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=7e45cd3ef9e2691bb68f3ef12d7fedd1cbdf6ed4 ) ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
          Hide
          hudson Hudson added a comment -

          ABORTED: Integrated in Ambari-trunk-Commit #3734 (See https://builds.apache.org/job/Ambari-trunk-Commit/3734/)
          AMBARI-13627. Security can not be enabled on cluster with MOTD for "su" (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=0388379b7d1032ee2314d6bce31b6de2d791b44a)

          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_rest_api_service.py
          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_drpc_server.py
          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_nimbus.py
          • ambari-common/src/main/python/resource_management/libraries/functions/get_user_call_output.py
          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor_prod.py
          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor.py
          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_ui_server.py
          • ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
          Show
          hudson Hudson added a comment - ABORTED: Integrated in Ambari-trunk-Commit #3734 (See https://builds.apache.org/job/Ambari-trunk-Commit/3734/ ) AMBARI-13627 . Security can not be enabled on cluster with MOTD for "su" (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=0388379b7d1032ee2314d6bce31b6de2d791b44a ) ambari-server/src/test/python/stacks/2.1/STORM/test_storm_rest_api_service.py ambari-server/src/test/python/stacks/2.1/STORM/test_storm_drpc_server.py ambari-server/src/test/python/stacks/2.1/STORM/test_storm_nimbus.py ambari-common/src/main/python/resource_management/libraries/functions/get_user_call_output.py ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor_prod.py ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor.py ambari-server/src/test/python/stacks/2.1/STORM/test_storm_ui_server.py ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-branch-2.1 #765 (See https://builds.apache.org/job/Ambari-branch-2.1/765/)
          AMBARI-13627. Security can not be enabled on cluster with MOTD for "su" (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c1cda7f035cb4b2cdd0e756fb856a0564baed798)

          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_ui_server.py
          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor.py
          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_drpc_server.py
          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor_prod.py
          • ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py
          • ambari-common/src/main/python/resource_management/libraries/functions/get_user_call_output.py
          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_rest_api_service.py
          • ambari-server/src/test/python/stacks/2.1/STORM/test_storm_nimbus.py
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-branch-2.1 #765 (See https://builds.apache.org/job/Ambari-branch-2.1/765/ ) AMBARI-13627 . Security can not be enabled on cluster with MOTD for "su" (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c1cda7f035cb4b2cdd0e756fb856a0564baed798 ) ambari-server/src/test/python/stacks/2.1/STORM/test_storm_ui_server.py ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor.py ambari-server/src/test/python/stacks/2.1/STORM/test_storm_drpc_server.py ambari-server/src/test/python/stacks/2.1/STORM/test_storm_supervisor_prod.py ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/service.py ambari-common/src/main/python/resource_management/libraries/functions/get_user_call_output.py ambari-server/src/test/python/stacks/2.1/STORM/test_storm_rest_api_service.py ambari-server/src/test/python/stacks/2.1/STORM/test_storm_nimbus.py
          Hide
          aonishuk Andrew Onischuk added a comment -

          Committed to trunk and branch-2.1 and branch-2.1.2

          Show
          aonishuk Andrew Onischuk added a comment - Committed to trunk and branch-2.1 and branch-2.1.2

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development