Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug #5328 apache module loading #19355

Merged

Conversation

michaelgugino
Copy link
Contributor

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

web_infrastructure/apache2_module.py

ANSIBLE VERSION
  lib/ansible/modules/core: (detached HEAD 55b1813ebd) last updated 2016/11/01 14:02:20 (GMT -400)
  lib/ansible/modules/extras: (detached HEAD cf524673e1) last updated 2016/11/01 12:39:51 (GMT -400)
  config file = 
  configured module search path = Default w/o overrides
SUMMARY

Currently, the apache2_module module parses apache configs
for correctness when enabling or disabling apache2 modules.

This behavior introduced a conflict condition when transitioning
between certain modules, such as mpm_worker and mpm_event.

This change only parses apache's configs during check mode,
otherwise it parses the stdout results of attempted to enabled
or disable modules to determine change state.

Michael Gugino and others added 4 commits December 14, 2016 19:19
Currently, the apache2_module module parses apache configs
for correctness when enabling or disabling apache2 modules.

This behavior introduced a conflict condition when transitioning
between mpm modules, such as mpm_worker and mpm_event.

This change accounts for the specific error condition raised
by ``apachectl -M``:
``AH00534: apache2: Configuration error: No MPM loaded.``
When loading or unloading a module with a name that contains 'mpm_',
apache2_module will ignore the error raised by apachectl if stderr
contains 'AH00534'.

Fixes ansible#5328
@michaelgugino
Copy link
Contributor Author

Migrated from ansible/ansible-modules-core#5454

@nitzmahone nitzmahone merged commit 250f862 into ansible:devel Dec 14, 2016
@robinro
Copy link
Contributor

robinro commented Dec 15, 2016

Thanks @nitzmahone for merging.
After discussing with @n0trax we plan to leave 2.2-stable as-is for now and refer people to the module in devel if they need the fix.

@robinro
Copy link
Contributor

robinro commented Dec 15, 2016

@michaelgugino Thanks for the work in triaging and fixing this issue and your contribution to ansible 🎆👍 !

@nitzmahone
Copy link
Member

@robinro WFM- thanks for the update!

@michaelgugino
Copy link
Contributor Author

Thanks everyone. Glad we got this in.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants