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

ambari-server may kill INIT and SSHD process (in some specific scenarios)

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.6.1
    • ambari-server
    • None

    Description

      STR:

      1. create directory
      2. change current dir to this directory
      3. remove directory
      4. run ambari-server restart. It will complain that could not perform getcwd and fail.
      5. Check ambari-server PID file:
        # cat /var/run/ambari-server/ambari-server.pid 
        1
        
      6. The 1 is a PID of an /sbin/init process
        cat /proc/1/cmdline 
        /sbin/init
        
      7. Try to restart ambari-server. It notices that old process (INIT) is running and tries to kills it. As a result, INIT process does not die, but SSHD and probably other services are killed, active login sessions are terminated.
      8. Now host is not available over SSH and requires physical access

      Attachments

        1. AMBARI-6288-1.6.1.patch
          4 kB
          Dmitry Lysnichenko

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: