Bug 1459924

Summary: Timeout waiting for privilege escalation prompt when become_method=su
Product: [Fedora] Fedora EPEL Reporter: Juan Orti <jorti>
Component: ansibleAssignee: Kevin Fenzi <kevin>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: a.badger, athmanem, kevin, mark, maxim, toromoti
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-12 15:04:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.