This is were the trace stops python -m trace --trace /root/.ansible/tmp/ansible-1390720907.78-64524173882964/command <snip> --- modulename: subprocess, funcname: close_unregister_and_remove subprocess.py(1357): poller.unregister(fd) subprocess.py(1358): self._fd2file[fd].close() subprocess.py(1359): self._fd2file.pop(fd) subprocess.py(1395): for fd, mode in ready: subprocess.py(1386): while self._fd2file: subprocess.py(1387): try: subprocess.py(1388): ready = poller.poll(self._remaining_time(endtime)) --- modulename: subprocess, funcname: _remaining_time subprocess.py(766): if endtime is None: subprocess.py(767): return None
</snip> FYI, called python script 'rbupgrade.py' will run locally in the ansible server itself. On Wednesday, January 29, 2014 9:43:30 PM UTC+5:30, James Tanner wrote: > > On 01/28/2014 10:55 PM, Arulraj J wrote: > > Along with ansible tasks i was calling a python script named > > 'rbupgrade.py'. During this python script execution anisble hangs and > > couldn't move further. > > > > [root@cu028 ~]# ps -ef|grep py > > root 19725 19588 0 09:22 pts/0 00:00:00 grep py > > root 27594 1 0 Jan26 ? 00:00:00 > > /opt/collabnet/teamforge/runtime/bin/wrapper/python > > /opt/collabnet/teamforge/runtime/scripts/timestamp > > sf-admin 27806 1 0 Jan26 ? 00:00:00 > > /opt/collabnet/teamforge/runtime/bin/wrapper/python > > /opt/collabnet/teamforge/runtime/scripts/timestamp > > root 29513 1 0 Jan26 ? 00:00:00 > > /opt/collabnet/teamforge/runtime/bin/wrapper/python > > /opt/collabnet/teamforge/runtime/scripts/timestamp > > root 29623 29620 0 Jan26 ? 00:00:00 > > /opt/collabnet/teamforge/runtime/bin/wrapper/python > > /opt/collabnet/teamforge/runtime/scripts/timestamp > > root 30469 1 0 Jan26 ? 00:00:00 /bin/sh -c > > /usr/bin/python > > /root/.ansible/tmp/ansible-1390720907.78-64524173882964/command; rm > > -rf /root/.ansible/tmp/ansible-1390720907.78-64524173882964/ > > >/dev/null 2>&1 > > root 30488 30469 0 Jan26 ? 00:00:00 /usr/bin/python > > /root/.ansible/tmp/ansible-1390720907.78-64524173882964/command > > root 30489 30488 0 Jan26 ? 00:00:00 [rbupgrade.py] <defunct> > > [root@cu028 ~]# > > > > Please help me in this problem.. > > -- > > You received this message because you are subscribed to the Google > > Groups "Ansible Project" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to [email protected] <javascript:>. > > To post to this group, send email to > > [email protected]<javascript:>. > > > For more options, visit https://groups.google.com/groups/opt_out. > > Follow the instructions in this thread: > > https://groups.google.com/forum/#!msg/ansible-project/JdZWzLeZMmk/93W-42MP9U0J > > > Once you have the trace data, we may be able to offer more advice. > > I have a hunch that the "rbupgrade.py" script may not like not being run > without a shell or may be asking for input. Perhaps try using the > "shell:" module instead of "command:". > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
