Re: [ansible-project] Gathering Facts hangs when using become
Thank you for the print idea. I was able to trace it to the following commands: /usr/bin/facter --puppet –json Looks like the version of facter doesn't like the --puppet option. WIll probably have to look into uprading it. Thanks again. -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/db98376e-9a93-48c6-8c9c-e5f9de7b1e9d%40googlegroups.com.
Re: [ansible-project] Gathering Facts hangs when using become
On 15.01.2020 00:53, Chris Thro wrote: Thank you. I did the strace and it shows that it is just repeating the same two lines over and over again. select(7, [4 6], [], [4 6], {1, 0}) = 0 (Timeout) wait4(29548, 0x7fff6a145c84, WNOHANG, NULL) = 0 When I checked the details of the select I get the following: lsof -p 10984 -ad 4,6 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME python2.7 10984 root4r FIFO0,7 0t0 819132068 pipe python2.7 10984 root6r FIFO0,7 0t0 819132069 pipe What happens right before it goes into this loop is probably the interesting part and can identifies what it trying to access. If not you probably need to add print statements in the python code to identifies where it hangs. -- Kai Stian Olstad -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9a405b8f-f362-1abc-ee27-b817b5905757%40olstad.com.
Re: [ansible-project] Gathering Facts hangs when using become
Thank you. I did the strace and it shows that it is just repeating the same two lines over and over again. select(7, [4 6], [], [4 6], {1, 0}) = 0 (Timeout) wait4(29548, 0x7fff6a145c84, WNOHANG, NULL) = 0 When I checked the details of the select I get the following: lsof -p 10984 -ad 4,6 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME python2.7 10984 root4r FIFO0,7 0t0 819132068 pipe python2.7 10984 root6r FIFO0,7 0t0 819132069 pipe -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5c68bcd9-1bec-4a46-a988-73b9542a15ee%40googlegroups.com.
Re: [ansible-project] Gathering Facts hangs when using become
On 14.01.2020 00:46, Chris Thro wrote: Out of hundreds of hosts we have one host always hangs when gathering facts when using become. Create a playbook with the following: - hosts: all call the playbook with the -b flag The last thing reported in the log is "Escalation succeeded". No matter how long I wait it never returns the prompt and there are two processes running on the remote host. One as my username and one as root. There is no nfs (I have seen other issues where facts hang on nfs). I almost always IO related, mounts, LVM, filsystem... Anyone see this before? Any ideas how to troubleshoot it further? I have tried the highest verbosity but there doesn't appear to be any helpful information; compared it to successful runs and nothing is different. It happens sometimes and the easiest way(IMHO) to find where it hangs is to debug the setup module https://docs.ansible.com/ansible/latest/dev_guide/debugging.html#debugging-remote Then I run the module manually as described in the link with strace to identify where it hangs. -- Kai Stian Olstad -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f6da37fa2fd69051c9b0aa4f29ac5477%40olstad.com.
Re: [ansible-project] Gathering Facts hangs when using become
Hi, Problems I already encounter : - NFS Stale - rpm database corruption - lock on lvm Regards, Jy Le 14 janvier 2020 00:46:56 GMT+01:00, Chris Thro a écrit : >Out of hundreds of hosts we have one host always hangs when gathering >facts >when using become. > >Create a playbook with the following: >- hosts: all > >call the playbook with the -b flag > >The last thing reported in the log is "Escalation succeeded". >No matter how long I wait it never returns the prompt and there are two > >processes running on the remote host. One as my username and one as >root. > >There is no nfs (I have seen other issues where facts hang on nfs). > >This is a RHEL5 host with python 2.7 installed. 1/4 of our hosts are >RHEL5 >with python 2.7 installed and they don't have this issue > >Anyone see this before? Any ideas how to troubleshoot it further? >I have tried the highest verbosity but there doesn't appear to be any >helpful information; compared it to successful runs and nothing is >different. > >-- >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 ansible-project+unsubscr...@googlegroups.com. >To view this discussion on the web visit >https://groups.google.com/d/msgid/ansible-project/8a8e3f63-3d6f-4d5b-b2df-3de89a780021%40googlegroups.com. -- Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté. -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/70D944C5-478F-4D5E-B04E-27CC1948E40D%40lenhof.eu.org.