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

ansible play hangs on MacOSX #11988

Closed
shirou opened this issue Aug 18, 2015 · 3 comments · Fixed by #11989
Closed

ansible play hangs on MacOSX #11988

shirou opened this issue Aug 18, 2015 · 3 comments · Fixed by #11989
Labels
bug This issue/PR relates to a bug. macos macOS community P1 Priority 1 - Immediate Attention Required; Release Immediately After Fixed
Milestone

Comments

@shirou
Copy link
Contributor

shirou commented Aug 18, 2015

Ansible Version:

ansible-playbook 2.0.0
  config file = /Users/shirou/tmp/ansible/ansible.cfg
  configured module search path = None

installed from 7eaacaf

Ansible Configuration:

nothing special.

Environment:

  • Mac OS X (yosemite)
  • Python 2.7.9

Summary:

ansible-playbook command hangs up after this error.

Traceback (most recent call last):
  File "/Users/shirou/Works/VEnvs/ansiblev2/lib/python2.7/site-packages/ansible-2.0.0-py2.7.egg/ansible/executor/process/result.py", line 103, in run
    result = self._read_worker_result()
  File "/Users/shirou/Works/VEnvs/ansiblev2/lib/python2.7/site-packages/ansible-2.0.0-py2.7.egg/ansible/executor/process/result.py", line 75, in _read_worker_result
    if rslt_q.qsize() > 0:
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/queues.py", line 143, in qsize
    return self._maxsize - self._sem._semlock._get_value()
NotImplementedError

PLAY ***************************************************************************

TASK [debug msg=hangs] *********************************************************

I thinks because Queue.qsize() is not implemented at Mac OS X.
see https://github.com/python/cpython/blob/829b49cbd2e4b1d573470da79ca844b730120f3d/Lib/multiprocessing/queues.py#L116

Steps To Reproduce:

run any playbook like

- hosts: all
  gather_facts: no
  connection: local
  tasks:
    - debug: msg="hangs"

Expected Results:

play runs.

Actual Results:

It seems play hang up.

@bcoca bcoca added this to the v2 milestone Aug 18, 2015
@bcoca bcoca added the P1 Priority 1 - Immediate Attention Required; Release Immediately After Fixed label Aug 18, 2015
bcoca added a commit to bcoca/ansible that referenced this issue Aug 18, 2015
@bcoca
Copy link
Member

bcoca commented Aug 18, 2015

@shirou please confirm that PR fixes the issue, I don't have OS X to test on

@shirou
Copy link
Contributor Author

shirou commented Aug 18, 2015

Thank you for quick fix! It works on my environment.

@benjixx
Copy link
Contributor

benjixx commented Aug 18, 2015

I just ran into the same issue on Mac OS X. I can verify that the PR fixes this.

@shirou shirou closed this as completed Aug 18, 2015
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@dagwieers dagwieers added the macos macOS community label Jan 23, 2019
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug. macos macOS community P1 Priority 1 - Immediate Attention Required; Release Immediately After Fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants