Comments (7)
I need some information
from ansible-gentoo_install.
TASK [agaffney.gentoo_install : portage make.conf settings] ********************
2032 1484970422.41526: sending task start callback
2032 1484970422.41528: entering _queue_task() for livecd_host/lineinfile
2032 1484970422.41529: Creating lock for lineinfile
2032 1484970422.41601: worker is 1 (out of 1 available)
2032 1484970422.41616: exiting _queue_task() for livecd_host/lineinfile
2032 1484970422.41646: done queuing things up, now waiting for results queue to drain
2032 1484970422.41648: waiting for pending results...
2339 1484970422.41893: running TaskExecutor() for livecd_host/TASK: agaffney.gentoo_install : portage make.conf settings
2339 1484970422.41972: in run()
2339 1484970422.42169: Loading FilterModule 'core' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/core.py
2339 1484970422.42219: Loading FilterModule 'ipaddr' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/ipaddr.py
2339 1484970422.42238: Loading FilterModule 'json_query' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/json_query.py
2339 1484970422.42268: Loading FilterModule 'mathstuff' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/mathstuff.py
2339 1484970422.42314: Loading TestModule 'core' from /usr/lib64/python2.7/site-packages/ansible/plugins/test/core.py
2339 1484970422.42324: Loading TestModule 'files' from /usr/lib64/python2.7/site-packages/ansible/plugins/test/files.py
2339 1484970422.42335: Loading TestModule 'mathstuff' from /usr/lib64/python2.7/site-packages/ansible/plugins/test/mathstuff.py
2339 1484970422.42710: Loading FilterModule 'core' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/core.py (found_in_cache=True, class_only=False)
2339 1484970422.42716: Loading FilterModule 'ipaddr' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/ipaddr.py (found_in_cache=True, class_only=False)
2339 1484970422.42722: Loading FilterModule 'json_query' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/json_query.py (found_in_cache=True, class_only=False)
2339 1484970422.42726: Loading FilterModule 'mathstuff' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/mathstuff.py (found_in_cache=True, class_only=False)
2339 1484970422.42741: Loading TestModule 'core' from /usr/lib64/python2.7/site-packages/ansible/plugins/test/core.py (found_in_cache=True, class_only=False)
2339 1484970422.42746: Loading TestModule 'files' from /usr/lib64/python2.7/site-packages/ansible/plugins/test/files.py (found_in_cache=True, class_only=False)
2339 1484970422.42748: Loading TestModule 'mathstuff' from /usr/lib64/python2.7/site-packages/ansible/plugins/test/mathstuff.py (found_in_cache=True, class_only=False)
2339 1484970422.42783: Loading LookupModule 'dict' from /usr/lib64/python2.7/site-packages/ansible/plugins/lookup/dict.py
2339 1484970422.43075: Loading FilterModule 'core' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/core.py (found_in_cache=True, class_only=False)
2339 1484970422.43079: Loading FilterModule 'ipaddr' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/ipaddr.py (found_in_cache=True, class_only=False)
2339 1484970422.43084: Loading FilterModule 'json_query' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/json_query.py (found_in_cache=True, class_only=False)
2339 1484970422.43088: Loading FilterModule 'mathstuff' from /usr/lib64/python2.7/site-packages/ansible/plugins/filter/mathstuff.py (found_in_cache=True, class_only=False)
2339 1484970422.43113: Loading TestModule 'core' from /usr/lib64/python2.7/site-packages/ansible/plugins/test/core.py (found_in_cache=True, class_only=False)
2339 1484970422.43116: Loading TestModule 'files' from /usr/lib64/python2.7/site-packages/ansible/plugins/test/files.py (found_in_cache=True, class_only=False)
2339 1484970422.43120: Loading TestModule 'mathstuff' from /usr/lib64/python2.7/site-packages/ansible/plugins/test/mathstuff.py (found_in_cache=True, class_only=False)
2339 1484970422.43418: Loading Connection 'ssh' from /usr/lib64/python2.7/site-packages/ansible/plugins/connection/ssh.py
2339 1484970422.43483: Loading ShellModule 'csh' from /usr/lib64/python2.7/site-packages/ansible/plugins/shell/csh.py
2339 1484970422.43504: Loading ShellModule 'fish' from /usr/lib64/python2.7/site-packages/ansible/plugins/shell/fish.py
2339 1484970422.43566: Loading ShellModule 'powershell' from /usr/lib64/python2.7/site-packages/ansible/plugins/shell/powershell.py
2339 1484970422.43578: Loading ShellModule 'sh' from /usr/lib64/python2.7/site-packages/ansible/plugins/shell/sh.py
2339 1484970422.43599: Loading ShellModule 'sh' from /usr/lib64/python2.7/site-packages/ansible/plugins/shell/sh.py (found_in_cache=True, class_only=False)
2339 1484970422.43606: in VariableManager get_vars()
2339 1484970422.43692: done with get_vars()
2339 1484970422.43711: Loading ActionModule 'normal' from /usr/lib64/python2.7/site-packages/ansible/plugins/action/normal.py
2339 1484970422.43718: starting attempt loop
2339 1484970422.43720: running the handler
2339 1484970422.43743: ANSIBALLZ: Using lock for lineinfile
2339 1484970422.43745: ANSIBALLZ: Acquiring lock
2339 1484970422.43751: ANSIBALLZ: Lock acquired: 139677445276752
2339 1484970422.43755: ANSIBALLZ: Creating module
2339 1484970422.52788: ANSIBALLZ: Writing module
2339 1484970422.52803: ANSIBALLZ: Renaming module
2339 1484970422.52811: ANSIBALLZ: Done creating module
2339 1484970422.52850: _low_level_execute_command(): starting
2339 1484970422.52856: _low_level_execute_command(): executing: /root/chroot_wrapper.sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784 `" && echo ansible-tmp-1484970422.53-121135293199784="` echo ~/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784 `" ) && sleep 0'
2339 1484970422.54515: stdout chunk (state=2):
>>>ansible-tmp-1484970422.53-121135293199784=/root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784
<<<
2339 1484970422.55131: stdout chunk (state=3):
>>><<<
2339 1484970422.55139: stderr chunk (state=3):
>>><<<
2339 1484970422.55153: _low_level_execute_command() done: rc=0, stdout=ansible-tmp-1484970422.53-121135293199784=/root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784
, stderr=
2339 1484970422.55163: transferring module to remote /root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784/lineinfile.py
2339 1484970422.55561: Sending initial data
2339 1484970422.55570: Sent initial data (94 bytes)
2339 1484970422.56194: stdout chunk (state=3):
>>>sftp> put /tmp/tmpZufNZ5 /root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784/lineinfile.py
<<<
2339 1484970422.56247: stderr chunk (state=3):
>>>remote open("/root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784/lineinfile.py"): No such file or directory
<<<
2339 1484970422.56320: stdout chunk (state=3):
>>><<<
2339 1484970422.56325: stderr chunk (state=3):
>>><<<
[WARNING]: sftp transfer mechanism failed on [192.168.56.102]. Use ANSIBLE_DEBUG=1 to see detailed information
2339 1484970422.56418: sftp> put /tmp/tmpZufNZ5 /root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784/lineinfile.py
2339 1484970422.56422: remote open("/root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784/lineinfile.py"): No such file or directory
2339 1484970422.57671: stderr chunk (state=2):
>>>scp: /root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784/lineinfile.py: No such file or directory
<<<
2339 1484970422.57694: stdout chunk (state=3):
>>><<<
[WARNING]: scp transfer mechanism failed on [192.168.56.102]. Use ANSIBLE_DEBUG=1 to see detailed information
2339 1484970422.57716:
2339 1484970422.57718: scp: /root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784/lineinfile.py: No such file or directory
2339 1484970422.57753: done running TaskExecutor() for livecd_host/TASK: agaffney.gentoo_install : portage make.conf settings
2339 1484970422.57757: sending task result
2339 1484970422.57781: done sending task result
2339 1484970422.57785: WORKER PROCESS EXITING
2032 1484970422.57818: in VariableManager get_vars()
2032 1484970422.57938: done with get_vars()
2032 1484970422.57953: marking livecd_host as failed
2032 1484970422.57961: marking host livecd_host failed, current state: HOST STATE: block=2, task=4, rescue=0, always=0, role=agaffney.gentoo_install, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (HOST STATE: block=0, task=1, rescue=0, always=0, role=agaffney.gentoo_install, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
2032 1484970422.57967: ^ failed state is now: HOST STATE: block=2, task=4, rescue=0, always=0, role=agaffney.gentoo_install, run_state=ITERATING_TASKS, fail_state=FAILED_NONE, pending_setup=False, tasks child state? (HOST STATE: block=0, task=1, rescue=0, always=0, role=agaffney.gentoo_install, run_state=ITERATING_COMPLETE, fail_state=FAILED_TASKS, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
2032 1484970422.57971: getting the next task for host livecd_host
2032 1484970422.57975: done getting next task for host livecd_host
2032 1484970422.57976: ^ task is: None
2032 1484970422.57980: ^ state is: HOST STATE: block=2, task=4, rescue=0, always=0, role=agaffney.gentoo_install, run_state=ITERATING_COMPLETE, fail_state=FAILED_TASKS, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
fatal: [livecd_host]: FAILED! => {"failed": true, "msg": "failed to transfer file to /root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784/lineinfile.py:\n\nscp: /root/.ansible/tmp/ansible-tmp-1484970422.53-121135293199784/lineinfile.py: No such file or directory\n"}
2032 1484970422.57997: no more pending results, returning what we have
2032 1484970422.58000: results queue empty
2032 1484970422.58002: checking for any_errors_fatal
2032 1484970422.58004: done checking for any_errors_fatal
2032 1484970422.58005: checking for max_fail_percentage
2032 1484970422.58007: done checking for max_fail_percentage
2032 1484970422.58008: checking to see if all hosts have failed and the running result is not ok
2032 1484970422.58010: done checking to see if all hosts have failed
2032 1484970422.58011: getting the remaining hosts for this loop
2032 1484970422.58014: done getting the remaining hosts for this loop
2032 1484970422.58020: building list of next tasks for hosts
2032 1484970422.58022: getting the next task for host livecd_host
2032 1484970422.58026: done getting next task for host livecd_host
2032 1484970422.58027: ^ task is: None
2032 1484970422.58031: ^ state is: HOST STATE: block=2, task=4, rescue=0, always=0, role=agaffney.gentoo_install, run_state=ITERATING_COMPLETE, fail_state=FAILED_TASKS, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
2032 1484970422.58032: done building task lists
2032 1484970422.58035: counting tasks in each state of execution
2032 1484970422.58036: done counting tasks in each state of execution:
num_setups: 0
num_tasks: 0
num_rescue: 0
num_always: 0
2032 1484970422.58038: all hosts are done, so returning None's for all hosts
2032 1484970422.58040: done queuing things up, now waiting for results queue to drain
2032 1484970422.58042: results queue empty
2032 1484970422.58043: checking for any_errors_fatal
2032 1484970422.58044: done checking for any_errors_fatal
2032 1484970422.58046: checking for max_fail_percentage
2032 1484970422.58047: done checking for max_fail_percentage
2032 1484970422.58048: checking to see if all hosts have failed and the running result is not ok
2032 1484970422.58049: done checking to see if all hosts have failed
2032 1484970422.58052: getting the next task for host livecd_host
2032 1484970422.58055: done getting next task for host livecd_host
2032 1484970422.58057: ^ task is: None
2032 1484970422.58060: ^ state is: HOST STATE: block=2, task=4, rescue=0, always=0, role=agaffney.gentoo_install, run_state=ITERATING_COMPLETE, fail_state=FAILED_TASKS, pending_setup=False, tasks child state? (None), rescue child state? (None), always child state? (None), did rescue? False, did start at task? False
2032 1484970422.58063: running handlers
to retry, use: --limit @/run/media/kamikaze/e7b9379e-9c7a-497d-8c39-ece0683cdb30/projects/laav/ansible/playbook.retry
PLAY RECAP *********************************************************************
livecd_host : ok=20 changed=15 unreachable=0 failed=1
from ansible-gentoo_install.
I'm just trying to run it against my virtualbox machine where is only one 25GB drive and it is booted from livecd.
from ansible-gentoo_install.
$ ansible --version
ansible 2.2.1.0
config file =
configured module search path = Default w/o overrides
from ansible-gentoo_install.
I think the problem here is that SSH pipelining must be enabled, which I have as a default in my personal setup. The scp/sftp transfer methods do not work with the chroot wrapper hack.
I've added a new SSH transfer method upstream (ansible/ansible#18643) that will work with the chroot wrapper without using SSH pipelining, but it won't be available until Ansible 2.3 is released.
from ansible-gentoo_install.
adding following code into playbook solved the problem:
vars:
ansible_ssh_pipelining: yes
from ansible-gentoo_install.
I have set that same var (as well as another one that will be useful in the future) in the role vars in 2bd5335
from ansible-gentoo_install.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-gentoo_install.