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

Fixes #33771 - win_iis_webapppool bugfix #33777

Merged
merged 3 commits into from
Dec 13, 2017
Merged

Fixes #33771 - win_iis_webapppool bugfix #33777

merged 3 commits into from
Dec 13, 2017

Conversation

Gianlu
Copy link
Contributor

@Gianlu Gianlu commented Dec 11, 2017

SUMMARY

Bugfix in win_iis_webapppool module (#33771). The module throws an exception in stopping IIS Web Application Pool. I added a variable that tracks if a change in application pool happened.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

win_iis_webapppool

ANSIBLE VERSION
ansible 2.4.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/usr/share/ansible/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]

ADDITIONAL INFORMATION

before

fatal: [webserver01]: FAILED! => {"attributes": {}, "changed": true, "info": {"attributes": {}, "cpu": {}, "failure": {}, "name": "apppool", "processModel": {}, "recycling": {"periodicRestart": {}}, "state": "stopped"}, "msg": "Failed to stop Web App Pool apppool: The service cannot accept control messages at this time. (Exception from HRESULT: 0x80070425)"}

after

changed: [webserver01]

@ansibot
Copy link
Contributor

ansibot commented Dec 11, 2017

@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 bugfix_pull_request community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. windows Windows community labels Dec 11, 2017
@jborean93
Copy link
Contributor

Looking at the code again, I'm not sure why I kept https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/windows/win_iis_webapppool.ps1#L258-L268 in the code after the rewrite as the block below it is what should be starting and stopping the web pool. Are you able to update your PR with those lines removed and see if that fixes your issue?

@jborean93 jborean93 removed the needs_triage Needs a first human triage before being processed. label Dec 11, 2017
@Gianlu
Copy link
Contributor Author

Gianlu commented Dec 12, 2017

Hi,
I checked your suggestion and after removing that lines the module works as expected.
I updated the PR.
Thank you

Copy link
Contributor

@jborean93 jborean93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Gianlu for the fix

@jborean93 jborean93 merged commit 1d10a28 into ansible:devel Dec 13, 2017
jborean93 pushed a commit that referenced this pull request Dec 13, 2017
* Fixes #33771

* Fixes #33771 - mod 1

* removed some unneeded whitespace

(cherry picked from commit 1d10a28)
@jborean93
Copy link
Contributor

Cherry picked to stable-2.4 07a1217, will be available in the 2.4.3 release.

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bugfix_pull_request labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.5 This issue/PR affects Ansible v2.5 bug This issue/PR relates to a bug. community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. support:community This issue/PR relates to code supported by the Ansible community. windows Windows community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants