You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Vladimir Tkhir (JIRA)" <ji...@apache.org> on 2013/08/21 12:48:53 UTC

[jira] [Created] (AMBARI-2973) Ambari server and agent are not stopped during package uninstall

Vladimir Tkhir created AMBARI-2973:
--------------------------------------

             Summary: Ambari server and agent are not stopped during package uninstall
                 Key: AMBARI-2973
                 URL: https://issues.apache.org/jira/browse/AMBARI-2973
             Project: Ambari
          Issue Type: Bug
          Components: agent, controller
    Affects Versions: 1.4.1
            Reporter: Vladimir Tkhir
             Fix For: 1.4.1


When ambari-agent and ambari-server packages are uninstalled, uninstall scriplets don't stop running services. That's why processes remain running even after package removal. 
That may cause issues during upgrade (if administrator misses the "stop services" step)
{code}
[root@host01 ~]$ ambari-server status
Using python  /usr/bin/python2.6
Ambari-server status
Ambari Server running
Found Ambari Server PID: '7850 at: /var/run/ambari-server/ambari-server.pid

[root@host01]# ambari-agent status
Found ambari-agent PID: 3521
ambari-agent running.
Agent PID at: /var/run/ambari-agent/ambari-agent.pid
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log

[root@host01]# rpm -e ambari-server
[root@host01]# rpm -e ambari-agent
[root@host01]# ps aux | grep ambari | grep -v grep | grep -v postgres
root      7850  2.1 13.2 3031480 254212 ?      Sl   20:51   0:36 /usr/jdk64/jdk1.6.0_31/bin/java -server -XX:NewRatio=3 -XX:+UseConcMarkSweepGC -XX:-UseGCOverheadLimit -XX:CMSInitiatingOccupancyFraction=60 -Xms512m -Xmx2048m -cp /etc/ambari-server/conf:/usr/lib/ambari-server/*:/sbin:/bin:/usr/sbin:/usr/bin:/usr/lib/ambari-server/* org.apache.ambari.server.controller.AmbariServer
root      3521  0.7  1.1 499760 22544 ?        Sl   20:53   0:12 /usr/bin/python2.6 /usr/lib/python2.6/site-packages/ambari_agent/main.py start restart --expected-hostname=host01
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira