Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 667222 - Apache resources with spaces in their names fail to start
Apache resources with spaces in their names fail to start
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: resource-agents (Show other bugs)
6.0
Unspecified Unspecified
low Severity medium
: rc
: ---
Assigned To: Marek Grac
Cluster QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-04 15:30 EST by joshua
Modified: 2011-12-06 07:02 EST (History)
5 users (show)

See Also:
Fixed In Version: resource-agents-3.9.1-1.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 632704 (view as bug list)
Environment:
Last Closed: 2011-12-06 07:02:36 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1580 normal SHIPPED_LIVE Low: resource-agents security, bug fix, and enhancement update 2011-12-05 19:38:57 EST

  None (edit)
Description joshua 2011-01-04 15:30:16 EST
Description of problem:

If an HA Cluster service is defined with an Apache resource that is named with two words, such as "kickstart httpd", the resulting directory is created:
/etc/cluster/apache/apache\:kickstart\ httpd/


However, the service will never start because it can't find:
/etc/cluster/apache/apache\:kickstart httpd/httpd.conf

Somehow the referencing to create the directory are quoted, but the references to starting the service on the command line don't seem to be.


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

$ rpm -q rgmanager cman httpd
rgmanager-3.0.12-10.el6.x86_64
cman-3.0.12-23.el6_0.4.x86_64
httpd-2.2.15-5.el6.x86_64
Comment 2 Marek Grac 2011-02-07 06:45:18 EST
Unfortunately I'm not able to reproduce it. Can you provide me more information?

This is my setup:


[root@bar-01 apache]# rpm -q rgmanager cman httpd
rgmanager-3.0.12-10.el6.i686
cman-3.0.12-23.el6_0.4.i686
httpd-2.2.15-5.el6.i686

--

<service autostart="1" name="my service">
    <ip address="10.34.38.100" monitor_link="0"/>
    <apache name="kickstart httpd"/> 
</service>

--
Comment 3 Marek Grac 2011-02-07 08:33:34 EST
@Joshua: sorry, my working environment was not completely clean. I'm able to reproduce it. 

Patch is available in upstream: http://git.fedorahosted.org/git/?p=resource-agents.git;a=commit;h=4ae988fa61afad242a870571622f4ab2aafadc31
Comment 5 Nate Straz 2011-05-24 09:38:07 EDT
Unit testing results are missing.  Please show the cluster config used and show that the apache service does start.
Comment 7 Marek Grac 2011-06-27 08:44:50 EDT
cluster.conf part:
        <rm>
                <service autostart="1" name="databaza">
                        <ip address="10.34.38.83/24" monitor_link="0"/>
                        <apache name="kickstart httpd"/>
                </service>

unit test result:

<debug>  1 IP addresses found for databaza/kickstart httpd
1 IP addresses found for databaza/kickstart httpd
<debug>  Looking For IP Addresses > Succeed -  IP Addresses Found
Looking For IP Addresses > Succeed -  IP Addresses Found
<debug>  Generating New Config File /apache/apache:kickstart httpd/httpd.conf From /etc/httpd/conf/httpd.conf
Generating New Config File /apache/apache:kickstart httpd/httpd.conf From /etc/httpd/conf/httpd.conf
<debug>  Generating New Config File /apache/apache:kickstart httpd/httpd.conf From /etc/httpd/conf/httpd.conf > Succeed
Generating New Config File /apache/apache:kickstart httpd/httpd.conf From /etc/httpd/conf/httpd.conf > Succeed
httpd: apr_sockaddr_info_get() failed for bar-01.brq.redhat.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
<debug>  Starting Service apache:kickstart httpd > Succeed
Starting Service apache:kickstart httpd > Succeed
Comment 10 errata-xmlrpc 2011-12-06 07:02:36 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1580.html

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