Bug 768425 - Sometimes apache fails to start on Config Server Setup
Summary: Sometimes apache fails to start on Config Server Setup
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: aeolus-configserver
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Greg Blomquist
QA Contact: dgao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-16 16:05 UTC by Greg Blomquist
Modified: 2012-08-30 17:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Greg Blomquist 2011-12-16 16:05:07 UTC
From a aeolus-configserver-setup log:

err: /Stage[main]/Apache::Base/Exec[graceful-apache]: Failed to call refresh: /sbin/service httpd graceful returned 1 instead of one of [0] at /usr/share/aeolus-configserver/configure/puppet/modules/apache/manifests/init.pp:41


Version-Release number of selected component (if applicable):
aeolus-configserver-0.4.3-2.fc15.noarch


How reproducible:
Intermittent.  Puppet is a non-deterministic finite state machine.  So, sometimes this error occurs, and sometimes it doesn't.


Steps to Reproduce:
1. run aeolus-configserver-setup from the command line of a config server


Actual results:
err: /Stage[main]/Apache::Base/Exec[graceful-apache]: Failed to call refresh: /sbin/service httpd graceful returned 1 instead of one of [0] at /usr/share/aeolus-configserver/configure/puppet/modules/apache/manifests/init.pp:41


Expected results:
Apache starts up after the setup script runs.


The fix is to force some aspects of the puppet code to be more deterministic by adding in "notify => Exec['graceful-apache']" to several of the puppet commands.  This will force several things to complete before attempting to notify the restart of apache.

Comment 1 Greg Blomquist 2011-12-16 19:25:16 UTC
POST:
https://fedorahosted.org/pipermail/aeolus-devel/2011-December/007550.html

Commit:
ee1508207cde4df07961142c01d352de6c9b2996

RPM Version:
aeolus-configserver-0.4.4-2

Comment 2 Steve Linabery 2012-01-11 22:02:00 UTC
aeolus-configserver-0.4.4-2.el6

Comment 3 dgao 2012-01-17 20:00:40 UTC
aeolus-configserver-0.4.5-1.fc15.noarch

Ran aeolus-configserver-setup in a script for 100 times, no error. Verified.


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