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-playbook hangs on lxc containers #54659

Closed
pgauret opened this issue Mar 31, 2019 · 3 comments
Closed

ansible-playbook hangs on lxc containers #54659

pgauret opened this issue Mar 31, 2019 · 3 comments
Labels
affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@pgauret
Copy link

pgauret commented Mar 31, 2019

SUMMARY

ansible-playbook hangs at the "PLAY RECAP" stage when applying changes to lxc containers (through ansible_connection: lxc).

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ansible_connection: lxc

ANSIBLE VERSION
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.6/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.6.8 (default, Mar 13 2019, 17:23:12) [GCC 8.3.0]


CONFIGURATION

"ansible-config dump --only-changed" didn't return anything.

/etc/ansible/hosts

all:
  vars:
      ansible_python_interpreter: /usr/bin/python3  
  hosts:
      localhost:
          ansible_connection: local
      gw:
          ansible_connection: lxc 

OS / ENVIRONMENT

Alpine Linux 3.9.2 (on ansible host and target containers)
Kernel 4.19
lxc-3.1.0
py3-lxc-3.0.3

STEPS TO REPRODUCE

Running any simple playbook against a lxc container with ansible_connection: lxc

EXPECTED RESULTS

Expecting ansible-playbook to terminate successfully and return to shell

ACTUAL RESULTS

ansible-playbook actually performs the changes fine but hangs at the PLAY RECAP stage, requires ^C to return to shell.

Extract of the relevant log

PLAY [web] *************************************************************************************************************************************************************************************************
skipping: no hosts matched

PLAY RECAP *************************************************************************************************************************************************************************************************
gw                         : ok=2    changed=0    unreachable=0    failed=0   

^C [ERROR]: User interrupted execution

Full session log

https://gist.github.com/pgauret/bd3676ae64eeed015175aa96987c054d

@ansibot
Copy link
Contributor

ansibot commented Mar 31, 2019

Files identified in the description:
None

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Mar 31, 2019
@bcoca bcoca added needs_verified This issue needs to be verified/reproduced by maintainer and removed needs_triage Needs a first human triage before being processed. labels Apr 9, 2019
@pgauret
Copy link
Author

pgauret commented Apr 16, 2019

Still stuck on this. Attaching the end of a debug trace showing where I think ansible-playbook gets stuck. Not sure of what it is trying to do and why it somehow fails though.

https://gist.github.com/pgauret/9acb8574a9e4ac2751df33dfbf35d212

@s-hertel
Copy link
Contributor

Hi!

Thank you very much for your submission to Ansible. It means a lot to us that you've taken the time to contribute.

If this is still an issue for you, please open an issue in https://github.com/ansible-collections/community.general where the connection plugin is maintained.

Because this project is very active, we're unlikely to see comments made on closed tickets and we lock them after some time.
The mailing list and irc are great ways to ask questions, or post if you don't think this particular issue is resolved.

See this page for a complete and up to date list of communication channels and their purposes:

Thank you once again for this and your interest in Ansible!

@sivel sivel removed the needs_verified This issue needs to be verified/reproduced by maintainer label Aug 24, 2023
@ansible ansible locked and limited conversation to collaborators Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

No branches or pull requests

5 participants