[Bug 980180] [NEW] Apache RA doesn't create /var/run/apache2 [SRU]

Launchpad Bug Tracker 980180 at bugs.launchpad.net
Fri Apr 20 12:04:51 UTC 2012


You have been subscribed to a public bug by Ante Karamatić (ivoks):

[Problem]
Apache OCF resource agent doesn't work when SSL module is enabled

[Impact]
This bug impacts all users that want to set up highly available Apache service with SSL, using Pacmaker or RedHat Cluster Suite tools.

[Development Fix]
Development branch isn't fixed yet either. Proposed solution is an upstream patch for this problem.

[Stable Fix]
Attached patch - resource-agents-apache.debdiff - is an oneliner, authored by upstream and part of the new upstream versions.

[Text Case]
To reproduce the problem, follow these steps on a clean 12.04 install:
1. apt-get install pacemaker apache2
2. service apache2 stop ; a2enmod ssl
3. update-rc.d -f apache2 remove
4. sed -i 's/START=no/START=yes/' /etc/default/corosync ; service corosync start
5. sleep 90 ; crm configure primitive apache2 ocf:heartbeat:apache params \
configfile="/etc/apache2/apache2.conf"
6. sleep 21 ; crm status | grep 'unknown exec error'
7. echo $?

Broken Behavior: last step (echo $?) will return 0, apache will not be running
Fixed Behavior: last step (echo $?) will return 1, apache will be running

[Regression Potential]
There are no known regressions. This patch impacts only this resource agent; and since it's not working now it would hardly introduce any worse side effects.

[Original Report]

Summary: the apache heartbeat RA that ships with both the universe
package and PPA does not include a line to guarantee the existence of
/var/run/apache2, which is usually done by apache2ctl.  Since crm calls
the RA, which in turn directly calls the apache2 daemon, this bit of
housekeeping never gets done.

I originally raised this in https://github.com/ClusterLabs/resource-
agents/issues/70 but then realized this PPA isn't in sync with what
they're doing there.  (I'm guessing this package is downstream from
that?)

The line in question, at that remote repo, is
https://github.com/ClusterLabs/resource-
agents/blob/master/heartbeat/apache#L177

I discovered this bug in the course of setting up a Linux HA cluster
locally.  The line I'm proposing be added is also absent from the
universe cluster-agents package that ships with lucid. (See
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/lucid/cluster-agents
/lucid-proposed/view/head:/heartbeat/apache#L399)

I'd submit a patch but I am not much up to speed on bzr... it's one line
though so not too complex.

** Affects: cluster-agents (Ubuntu)
     Importance: Undecided
     Assignee: Ante Karamatić (ivoks)
         Status: Confirmed

** Affects: resource-agents (Ubuntu)
     Importance: High
     Assignee: Ante Karamatić (ivoks)
         Status: Incomplete

** Affects: cluster-agents (Ubuntu Precise)
     Importance: Undecided
     Assignee: Ante Karamatić (ivoks)
         Status: Confirmed

** Affects: resource-agents (Ubuntu Precise)
     Importance: High
     Assignee: Ante Karamatić (ivoks)
         Status: Incomplete

** Affects: cluster-agents (Ubuntu Q-series)
     Importance: Undecided
         Status: New

** Affects: resource-agents (Ubuntu Q-series)
     Importance: High
         Status: Incomplete


** Tags: apache apache2 heartbeat ocf pacemaker patch
-- 
Apache RA doesn't create /var/run/apache2 [SRU]
https://bugs.launchpad.net/bugs/980180
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list