Bug 1459924 - Timeout waiting for privilege escalation prompt when become_method=su
Summary: Timeout waiting for privilege escalation prompt when become_method=su
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: ansible
Version: el6
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-08 15:04 UTC by Juan Orti
Modified: 2017-06-12 15:05 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-06-12 15:04:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Juan Orti 2017-06-08 15:04:44 UTC
Description of problem:
When become_method=su I always get connection timeout:

fatal: [192.168.150.77]: FAILED! => {"failed": true, "msg": "Timeout (12s) waiting for privilege escalation prompt: "}


Version-Release number of selected component (if applicable):
ansible-2.3.0.0-3.el6.noarch

How reproducible:
Always

Additional info:
https://github.com/ansible/ansible/issues/23689

Comment 1 Juan Orti 2017-06-08 15:06:56 UTC
ansible-2.3.1.0-1.el6.noarch in epel-testing does not fix this issue

Comment 2 Kevin Fenzi 2017-06-11 18:41:40 UTC
It looks like 2.3.1 fixed some cases of this, but not all.

Comment 3 Juan Orti 2017-06-12 10:26:15 UTC
Ok, today I have discovered that ansible-2.3.1.0-1.el6.noarch only fails in our dev machine. It must be broken somehow, maybe some "sudo pip install" has messed the libraries.

I've installed a new centos6 box and I get no timeouts launching the playbooks from there.

You can close this bug.
Thank you.

Comment 4 Kevin Fenzi 2017-06-12 15:04:27 UTC
ok, Thanks for looking into it further and testing!

Comment 5 Juan Orti 2017-06-12 15:05:56 UTC
I've discovered what was causing the problems in my machine. I call a custom script to set the tmux window titles to the hostname I'm connecting to, this must be interfering with the authentication.

~/.ssh/config:
Host *
    LocalCommand /home/juan/bin/screen_ssh.sh $PPID %h %r
    PermitLocalCommand yes
    ServerAliveInterval 2
    ServerAliveCountMax 5
  

Kind regards.


Note You need to log in before you can comment on or make changes to this bug.