Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 243740 - Apache resource agent script is not starting httpd
Summary: Apache resource agent script is not starting httpd
Status: CLOSED DUPLICATE of bug 235178
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rgmanager
Version: 5.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Marek Grac
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2007-06-11 16:44 UTC by Kyle Gonzales
Modified: 2009-04-16 22:57 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-06-19 19:19:35 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Kyle Gonzales 2007-06-11 16:44:27 UTC
Opening this after checking with Lon H about correct behavior.

Description of problem:

In the service definition for Conga, if you add the local resource Apache to the
system, it does NOT configure the httpd service script for you.  All you get it
something like this:

<service autostart="1" domain="course_failover" exclusive="0" name="httpd"
     <apache config_file="conf/httpd.conf" name="httpd" server_root="/etc/httpd"

You have to define a script resource, and set the path to get httpd to start.

Version-Release number of selected component (if applicable):
]# rpm -q luci ricci

How reproducible:

Steps to Reproduce:
1. Define a service
2. Add local resource type Apache
3. Check of /etc/cluster/cluster.conf shows no script service defined for httpd
Actual results:
Selecting the Apache local resource does not add the httpd script resource.  The
service does not start.

Expected results:
Selecting the Apache local resource will provide for adding the httpd script

Additional info:

Comment 1 Lon Hohberger 2007-06-12 15:43:15 UTC
Correction: the resource agent is not correctly starting httpd; there doesn't
need to be a script resource added.

Comment 2 Ryan McCabe 2007-06-12 15:50:06 UTC
Moving this to rgmanager given the comment above. Please yell if this is the
wrong thing to do.

Comment 3 Kyle Gonzales 2007-06-12 16:43:31 UTC
So this is an rgmanager problem, not a Conga issue

Is rgmanager supposed to start httpd when it sees the Apache resource config
line in cluster.conf?

Comment 4 Marek Grac 2007-06-14 12:38:20 UTC
Yes, it is supposed to run httpd but you should provide IP addresses (or modify
the generated config file). So correct usage should be:

<service autostart="0" name="web00">
     <ip address=""/>
     <apache config_file="conf/httpd.conf" name="httpd" server_root="/etc/httpd"

But there is a bug because rgmanager attempts to stop service first and it fails
because pid file does not exist. 

Comment 5 Marek Grac 2007-06-19 19:19:35 UTC
Works in current RHEL5/HEAD. No patch needed because it was repaired as a side
effect of bug #235178

Just note: Do not use shutdown_wait="0" because then disabling service will
almost surely fails (it won't wait a second and application won't be stopped
=> fails). Use shutdown_wait="1" or do not use this attribute at all
(default values are more than enough)

*** This bug has been marked as a duplicate of 235178 ***

Comment 6 Nate Straz 2007-12-13 17:18:40 UTC
Moving all RHCS ver 5 bugs to RHEL 5 so we can remove RHCS v5 which never existed.

Note You need to log in before you can comment on or make changes to this bug.