Bug 768425

Summary: Sometimes apache fails to start on Config Server Setup
Product: [Retired] CloudForms Cloud Engine Reporter: Greg Blomquist <gblomqui>
Component: aeolus-configserverAssignee: Greg Blomquist <gblomqui>
Status: CLOSED CURRENTRELEASE QA Contact: dgao
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, deltacloud-maint, slinaber
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.