[PVE-User] lxc-pve 3.1.0-3 causes weird behavior with ansible
Christian Almkvist
christian.almkvist at gmail.com
Sun Feb 17 19:09:49 CET 2019
I´ve been running anisble on the pve host with the lxc connection plugin
against local lxc-containers.
After the latest lxc-pve upgrade to 3.1.0-3 I´ve noticed 2 issues:
1. Ansible playbook runs never finishes (commad/output freezes at the end
of the play).
2. Every "vars_prompt" seems to trigger twice for some reason.
Apart from this everything seems to work as intended,
This issue presists across diffrent Ansible versions, but completly goes
away if downgrading to lxc-pve 3.1.0-2.
Not sure if this is a pure Ansible issue or maby a problem in the lxc upstream?
can´t seem to find any reports of this anywhere.
Has anyone else encountered this behavior lately?
Doing a strace on the ansible playbook-command shows an endless spam of the
following line:
select(0, NULL, NULL, NULL, {tv_sec=0, tv_usec=1000}) = 0 (Timeout)
# ansible --version
ansible 2.7.7
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules',
u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516]
# pveversion
pve-manager/5.3-9/ba817b29 (running kernel: 4.15.18-11-pve)
# cat ansible-playbook.xml
---
- hosts: test
gather_facts: no
vars_prompt:
- name: "input"
prompt: "input"
private: no
tasks:
- name: shell
shell: 'hostname'
# cat ansible-inventory.ini
test ansible_host=100 ansible_connection=lxc
# ansible-playbook ansible-playbook.yml -i ansible-inventory.ini -v
Using /etc/ansible/ansible.cfg as config file
/root/ansible-inventory.ini did not meet host_list requirements, check
plugin documentation if this is unexpected
/root/ansible-inventory.ini did not meet yaml requirements, check plugin
documentation if this is unexpected
input: test1
PLAY [test]
******************************************************************************************************************************************************************************************
TASK [shell]
*****************************************************************************************************************************************************************************************
Using /etc/ansible/ansible.cfg as config file
/root/ansible-inventory.ini did not meet host_list requirements, check
plugin documentation if this is unexpected
/root/ansible-inventory.ini did not meet yaml requirements, check plugin
documentation if this is unexpected
input: test2
PLAY [test]
******************************************************************************************************************************************************************************************
TASK [shell]
*****************************************************************************************************************************************************************************************
changed: [test] => {"changed": true, "cmd": "hostname", "delta":
"0:00:00.003092", "end": "2019-02-17 01:20:38.135478", "rc": 0, "start":
"2019-02-17 01:20:38.132386", "stderr": "", "stderr_lines": [], "stdout":
"test", "stdout_lines": ["test"]}
PLAY RECAP
*******************************************************************************************************************************************************************************************
test : ok=1 changed=1 unreachable=0 failed=0
^C [ERROR]: User interrupted execution
More information about the pve-user
mailing list