** Description changed:

  [Problem]
- <1-2 sentence summary of the issue>
+ Apache OCF resource agent doesn't work when SSL module is enabled
  
  [Impact]
- <fill me in with explanation of severity and frequency of bug on users and 
justification for backporting the fix to the stable release>
+ 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]
- <fill me in with an explanation of how the bug has been addressed in the 
development branch, including the relevant version numbers of packages modified 
in order to implement the fix. >
+ Development branch isn't fixed yet either. Proposed solution is an upstream 
patch for this problem.
  
  [Stable Fix]
- <fill me in by pointing out a minimal patch applicable to the stable version 
of the package.>
+ Attached patch - resource-agents-apache.debdiff - is an oneliner, authored by 
upstream and part of the new upstream versions.
  
  [Text Case]
- <fill me in with detailed *instructions* on how to reproduce the bug.  This 
will be used by people later on to verify the updated package fixes the 
problem.>
- 1.
- 2.
- 3.
- Broken Behavior: 
- Fixed Behavior: 
+ 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]
- <fill me in with a discussion of likelihood and potential severity of 
regressions and how users could get inadvertently affected.>
+ 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.
+ 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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/980180

Title:
  Apache RA doesn't create /var/run/apache2 [SRU]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cluster-agents/+bug/980180/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to