Apache RA doesn't create /var/run/apache2 [SRU]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cluster-agents (Ubuntu) |
Confirmed
|
Undecided
|
Ante Karamatić | ||
Precise |
Won't Fix
|
Undecided
|
Ante Karamatić | ||
Quantal |
Won't Fix
|
Undecided
|
Unassigned | ||
resource-agents (Ubuntu) |
Fix Released
|
High
|
Ante Karamatić | ||
Precise |
Fix Released
|
High
|
Ante Karamatić | ||
Quantal |
Fix Released
|
High
|
Unassigned |
Bug Description
[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-
[Test 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. rm -rf /var/run/apache2 # or reboot
5. sed -i 's/START=
6. sleep 90 ; crm configure property stonith-
7. crm configure primitive apache2 ocf:heartbeat:
configfile=
8. sleep 21 ; crm status | grep 'unknown exec error'
9. 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:/
The line in question, at that remote repo, is https:/
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://
I'd submit a patch but I am not much up to speed on bzr... it's one line though so not too complex.
tags: | added: apache apache2 heartbeat ocf pacemaker |
description: | updated |
Changed in resource-agents (Ubuntu Precise): | |
status: | Incomplete → Confirmed |
description: | updated |
description: | updated |
Brad-
Thanks for reporting this. I'm curious as to what PPA you are refering to? Does the issue exist in the cluster-agents package currently available in Precise (1:1.0.4-0ubuntu2) ? It's a bit late to fix this for release, but if you can confirm it affects the current version to be shipped in Precise we can queue up an SRU to fix it shortly after Precise is released.