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

Restarting Storm Supervisor from Ambari always fails while Stop and Start works fine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • None
    • ambari-server
    • None
    • CentOS-6 (64 Bit)

    Description

      We have Storm configured for supervision. When we restart Storm Supervisor from Ambari it always fails with the following stderr errors.txt:

      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1/package/scripts/supervisor_prod.py", line 84, in <module>
          Supervisor().execute()
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 314, in execute
          method(env)
        File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 751, in restart
          self.status(env)
        File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1/package/scripts/supervisor_prod.py", line 73, in status
          supervisord_check_status("supervisor")
        File "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1/package/scripts/supervisord_service.py", line 33, in supervisord_check_status
          except Fail:
      NameError: global name 'Fail' is not defined
      

      While when we stop supervisor-stop.txt and start supervisor-stop.txt the supervisor we do not get any error and it works fine. Only restart is the issue.

      Attachments

        1. errors.txt
          7 kB
          Arpit Khare
        2. supervisor-stop.txt
          2 kB
          Arpit Khare
        3. supervisor-start.txt
          7 kB
          Arpit Khare
        4. AMBARI-22237.patch
          1 kB
          Siddharth Wagle

        Activity

          People

            swagle Siddharth Wagle
            arpitkhare Arpit Khare
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: