Re: [ansible-project] One server is slow to respond to ansible (but does) gather_facts

2018-09-27 Thread Brian Coca
You can use ANSIBLE_DEBUG=1 and check the target's syslog to see which
commands are run  and how long till 'next command', other than that is
is just debugging the setup module while executing it




-- 
--
Brian Coca

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7f0iRq6eKvQ_a9wCoqr7yGBFFRgaW5aBKguez5%3DfS4%3DtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] One server is slow to respond to ansible (but does) gather_facts

2018-09-27 Thread John Harmon
ansible myserver -m setup -a 'gather_subset=hardware' is definitely the 
culprit.  Do you know of any way to break down the hardware subset to 
further narrow this down?

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/067e615b-421a-4547-a3f8-42f9e9da85f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] One server is slow to respond to ansible (but does) gather_facts

2018-09-27 Thread Brian Coca
You can use the 'subset' option in fact gathering to narrow down what
is being soo slow on that machine (likely culprits are hardware or
network), this often is a symptom of some problem with the server
being slow or unresponsive to some device query.


-- 
--
Brian Coca

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7eyadm8VQWMfcg6Y-MP-Pr5f7UhtSRkkrOST0PtHD9aLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] One server is slow to respond to ansible (but does) gather_facts

2018-09-27 Thread John Harmon
On Wednesday, September 26, 2018 at 5:14:40 PM UTC-6, Steve R wrote:
>
> Is normal ssh to the server slow or only with Ansible?
>
>
Normal SSH to the server is quick and responsive.   If I ssh from the 
ansible server it is even quicker than from my current location directly to 
the server (The ansible server is on the same network as the other server, 
so this makes sense).  Once the facts are gathered, everything else in an 
ansible playbook is speedy as any other server, it is just slow to gather 
facts.  If I exclude gathering facts it is as responsive as any other 
server.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fc578ec7-325e-4525-b16f-0a5974a7a261%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] One server is slow to respond to ansible (but does) gather_facts

2018-09-26 Thread S C Rigler
Is normal ssh to the server slow or only with Ansible?

On Wed, Sep 26, 2018, 5:36 PM John Harmon  wrote:

> Marcos,
>
> I can execute an ad-hoc, but I don't know what you mean by "all the
> debug"--or how to do that.
> If I run the following, it returns promptly:
> root@ansible:/etc/ansible # ansible myserver -m debug
> myserver | SUCCESS => {
> "msg": "Hello world!"
> }
>
> Kai,
>
> I cannot find any IO issues on the server in regards to the things you
> specified.  LVM isn't involved, but NFS is.  It is connected to the same
> NFS server as all of my other servers.  In addition, I don't see any stale
> files, or mounts.  Things look normal on the server other than it taking
> longer to respond than my other servers.I am still digging into
> this to see if I can find the cause for the slow response.
>
> --
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ec3e4242-9556-4b53-817f-0b5e586aba83%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFbiokeB4UsNPpYARt%3DDiT9YX9B73Boo9Mxat2ryufwmbPak-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] One server is slow to respond to ansible (but does) gather_facts

2018-09-26 Thread John Harmon
Marcos,

I can execute an ad-hoc, but I don't know what you mean by "all the 
debug"--or how to do that. 
If I run the following, it returns promptly:
root@ansible:/etc/ansible # ansible myserver -m debug
myserver | SUCCESS => {
"msg": "Hello world!"
}

Kai,

I cannot find any IO issues on the server in regards to the things you 
specified.  LVM isn't involved, but NFS is.  It is connected to the same 
NFS server as all of my other servers.  In addition, I don't see any stale 
files, or mounts.  Things look normal on the server other than it taking 
longer to respond than my other servers.I am still digging into 
this to see if I can find the cause for the slow response.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ec3e4242-9556-4b53-817f-0b5e586aba83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.