Bug 1101652
| Summary: | Apache crashes when replica is restarted when installing | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Rob Crittenden <rcritten> |
| Component: | mod_wsgi | Assignee: | Luboš Uhliarik <luhliari> |
| Status: | CLOSED DUPLICATE | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.5 | CC: | jkaluza, nsoman, rcritten |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1099811 | Environment: | |
| Last Closed: | 2014-05-28 12:41:42 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1099811 | ||
| Bug Blocks: | |||
|
Description
Rob Crittenden
2014-05-27 17:01:23 UTC
This is the sequence of events from the replica install log: [ Enable SSL booleans ] 2014-05-27T16:24:19Z DEBUG [11/12]: restarting httpd 2014-05-27T16:24:19Z DEBUG args=/sbin/service httpd status 2014-05-27T16:24:19Z DEBUG stdout=httpd is stopped 2014-05-27T16:24:19Z DEBUG stderr= 2014-05-27T16:24:19Z DEBUG Saving StateFile to '/var/lib/ipa/sysrestore/sysrestore.state' 2014-05-27T16:24:20Z DEBUG args=/sbin/service httpd restart 2014-05-27T16:24:20Z DEBUG stdout=Stopping httpd: [FAILED]^M Starting httpd: [ OK ]^M 2014-05-27T16:24:20Z DEBUG stderr= 2014-05-27T16:24:20Z DEBUG args=/sbin/service httpd status 2014-05-27T16:24:20Z DEBUG stdout=httpd dead but subsys locked 2014-05-27T16:24:20Z DEBUG stderr= 2014-05-27T16:24:20Z DEBUG duration: 0 seconds The stop failed because it was already dead. This is the first time we poke at the service, so this may be normal, but the subsys lock is confusing. The start is successful. In the same second according to the logs there is another restart to pick up a new certificate we load: 2014-05-27T16:24:20Z DEBUG stderr= 2014-05-27T16:24:23Z DEBUG args=/sbin/service httpd restart 2014-05-27T16:24:23Z DEBUG stdout=Stopping httpd: [ OK ]^M Starting httpd: [ OK ]^M 2014-05-27T16:24:23Z DEBUG stderr= 2014-05-27T16:24:23Z DEBUG args=/sbin/service httpd status 2014-05-27T16:24:23Z DEBUG stdout=httpd dead but subsys locked I can only assume it is blowing up during the second start, in the same second. Since this is a WSGI app it gets loaded after the core httpd modules which is why startup appears successful to /sbin/service. So in IPA we can address this by re-evaluating our restarts. I imagine we can get rid of at least one of them, especially considering that we blow Apache up and the installer doesn't even notice. But I'm concerned about the underlying cause. Is this a bug in mod_wsgi not handling the signal properly while in the middle of imports, or an Apache bug shutting down the fd's too quickly, or something else? What version of mod_wsgi do you use? From sosreport in original Bug 1099811, it looks like it's RHEL6 machine (not RHEL7 as you stated in this bugzilla) and mod_wsgi-3.2 is installed. In RHEL7 (mod_wsgi-3.4), this should be fixed. If it's RHEL6 machine (and mod_wsgi-3.2), this bug is duplicate of Bug 1008018. Yes, this looks like the same issue. Sorry for the confusion over releases, this was RHEL 6. Closing as duplicate. *** This bug has been marked as a duplicate of bug 1008018 *** |