Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 837929

Summary: [Agent RPM] init-ec2 rpm does not disable jon-agent auto-startup
Product: [JBoss] JBoss Operations Network Reporter: Zhengping Jin <zjin>
Component: AgentAssignee: Stefan Negrea <snegrea>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: urgent Docs Contact:
Priority: urgent    
Version: JON 3.1.0CC: snegrea
Target Milestone: ---   
Target Release: JON 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-11 10:59:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 837381    

Description Zhengping Jin 2012-07-05 20:35:36 UTC
Description of problem:
init-ec2 rpm does not disable jon-agent auto-startup, which may result to potential bugs.

Version-Release number of selected component (if applicable):
3.1.0

How reproducible:
100%

Steps to Reproduce:
1. install agent rpm
2. install init-ec2 rpm
3. check /etc/init.d
  
Actual results:
both of jon-agent and jon-agent-ec2 are in that folder

Expected results:
only jon-agent-ec2 exists in init.d, jon-agent should be disabled for auto-startup

Additional info:
manually turn jon-agent off by using "chkconfig jon-agent off"

Comment 1 Mike Foley 2012-07-06 13:38:58 UTC
having this block the rpm agent tracker 837381

Comment 2 Stefan Negrea 2012-07-06 21:27:39 UTC
The regular agent service is stopped and removed upon ec2 service install. And vice-versa, the ec2 service is stopped and removed and the regular service reinstalled on ec2 RPM removal.

Comment 3 Zhengping Jin 2012-07-19 14:18:12 UTC
http://download.devel.redhat.com/brewroot/work/tasks/4773/4614773/jboss-on-agent-init-ec2-3.1.0.GA-8.el6_3.noarch.rpm

$ rpm -qp --scripts jboss-on-agent-init-ec2-3.1.0.GA-8.el6_3.noarch.rpm 
postinstall scriptlet (using /bin/sh):
/sbin/service jon-agent stop &> /dev/null
/sbin/chkconfig --del jon-agent
/sbin/chkconfig --add jon-agent-ec2
preuninstall scriptlet (using /bin/sh):
if [ "$1" = "0" ]; then
    /sbin/service jon-agent-ec2 stop &> /dev/null
    /sbin/chkconfig --del jon-agent-ec2
    /sbin/chkconfig --add jon-agent
fi

verified!