{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/33699","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/33699/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/33699/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/33699/events","html_url":"https://github.com/ansible/ansible/issues/33699","id":280359888,"number":33699,"title":"FAILED! => {\"msg\": \"Timeout (12s) waiting for privilege escalation prompt: \"}","user":{"login":"rafecolton","id":1058475,"avatar_url":"https://avatars2.githubusercontent.com/u/1058475?v=4","gravatar_id":"","url":"https://api.github.com/users/rafecolton","html_url":"https://github.com/rafecolton","followers_url":"https://api.github.com/users/rafecolton/followers","following_url":"https://api.github.com/users/rafecolton/following{/other_user}","gists_url":"https://api.github.com/users/rafecolton/gists{/gist_id}","starred_url":"https://api.github.com/users/rafecolton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafecolton/subscriptions","organizations_url":"https://api.github.com/users/rafecolton/orgs","repos_url":"https://api.github.com/users/rafecolton/repos","events_url":"https://api.github.com/users/rafecolton/events{/privacy}","received_events_url":"https://api.github.com/users/rafecolton/received_events","type":"User","site_admin":false},"labels":[{"id":562292166,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.4","name":"affects_2.4","color":"ededed","default":false},{"id":48276055,"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":503572087,"url":"https://api.github.com/repos/ansible/ansible/labels/needs_triage","name":"needs_triage","color":"0e8a16","default":false},{"id":383076471,"url":"https://api.github.com/repos/ansible/ansible/labels/python3","name":"python3","color":"fbca04","default":false},{"id":636352796,"url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-08T03:36:50Z","updated_at":"2017-12-08T04:49:42Z","closed_at":null,"author_association":"NONE","body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n\r\nAnsible SSH connections\r\n\r\n##### ANSIBLE VERSION\r\n\r\n```\r\nansible 2.4.2.0\r\n  config file = /Users/rafe/workspace/platform/ansible/ansible.cfg\r\n  configured module search path = ['/Users/rafe/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /Users/rafe/workspace/platform/ansible/.venv/lib/python3.6/site-packages/ansible\r\n  executable location = /Users/rafe/workspace/platform/ansible/.venv/bin/ansible\r\n  python version = 3.6.3 (default, Nov  2 2017, 09:26:55) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.38)]\r\n```\r\n\r\n##### CONFIGURATION\r\n```\r\nANSIBLE_PIPELINING(/Users/rafe/workspace/platform/ansible/ansible.cfg) = False\r\nANSIBLE_SSH_ARGS(/Users/rafe/workspace/platform/ansible/ansible.cfg) = -F .ssh/config -o ControlMaster=auto -o ControlPersist=30m -o ControlPath=.ssh/ansible-control-path-%r@%h:%p\r\nDEFAULT_HOST_LIST(/Users/rafe/workspace/platform/ansible/ansible.cfg) = ['/Users/rafe/workspace/platform/ansible/hosts/ec2.py']\r\nDEFAULT_VAULT_PASSWORD_FILE(/Users/rafe/workspace/platform/ansible/ansible.cfg) = /Users/rafe/workspace/platform/ansible/.vault-pass\r\nHOST_KEY_CHECKING(/Users/rafe/workspace/platform/ansible/ansible.cfg) = False\r\nRETRY_FILES_SAVE_PATH(/Users/rafe/workspace/platform/ansible/ansible.cfg) = /Users/rafe/.ansible/retry-files\r\n```\r\n\r\n##### OS / ENVIRONMENT\r\n\r\nmacOS 10.12.6 managing Canonical Ubuntu 16.04.03 LTS\r\n\r\n##### SUMMARY\r\n\r\nTasks will sporadically fail due to the error message `FAILED! => {\"msg\": \"Timeout (12s) waiting for privilege escalation prompt: \"}`. It's hard to reproduce consistently, and retries of playbooks that fail usually succeed.\r\n\r\nI've seen various reports of this error and various fixes, but I'm still encountering it fairly regularly.\r\n\r\n##### STEPS TO REPRODUCE\r\nAs mentioned above, this is not consistently reproducible. Following is an excerpt from a role that installs docker. It often fails on the `install docker` task.\r\n\r\n```yaml\r\n- name: install prereq packages\r\n  apt:\r\n    name: \"{{ item }}\"\r\n    state: present\r\n    update_cache: yes\r\n  with_items:\r\n    - apt-transport-https\r\n    - ca-certificates\r\n    - curl\r\n    - software-properties-common\r\n\r\n- name: add docker GPG key\r\n  apt_key:\r\n    url: \"https://download.docker.com/linux/ubuntu/gpg\"\r\n    id: \"9DC858229FC7DD38854AE2D88D81803C0EBFCD88\"\r\n    state: present\r\n\r\n- name: get lsb_release -cs\r\n  command: lsb_release -cs\r\n  register: lsb_release\r\n  changed_when: lsb_release.rc > 0\r\n\r\n- name: add docker apt repository\r\n  apt_repository:\r\n    repo: \"deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ lsb_release.stdout }} stable\"\r\n\r\n- name: install docker\r\n  apt:\r\n    name: docker-ce\r\n    state: present\r\n    update_cache: yes\r\n```\r\n\r\n##### EXPECTED RESULTS\r\n\r\nInstall docker\r\n\r\n##### ACTUAL RESULTS\r\n\r\nFailed with `FAILED! => {\"msg\": \"Timeout (12s) waiting for privilege escalation prompt: \"}`\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/350171619","html_url":"https://github.com/ansible/ansible/issues/33699#issuecomment-350171619","issue_url":"https://api.github.com/repos/ansible/ansible/issues/33699","id":350171619,"user":{"login":"rafecolton","id":1058475,"avatar_url":"https://avatars2.githubusercontent.com/u/1058475?v=4","gravatar_id":"","url":"https://api.github.com/users/rafecolton","html_url":"https://github.com/rafecolton","followers_url":"https://api.github.com/users/rafecolton/followers","following_url":"https://api.github.com/users/rafecolton/following{/other_user}","gists_url":"https://api.github.com/users/rafecolton/gists{/gist_id}","starred_url":"https://api.github.com/users/rafecolton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafecolton/subscriptions","organizations_url":"https://api.github.com/users/rafecolton/orgs","repos_url":"https://api.github.com/users/rafecolton/repos","events_url":"https://api.github.com/users/rafecolton/events{/privacy}","received_events_url":"https://api.github.com/users/rafecolton/received_events","type":"User","site_admin":false},"created_at":"2017-12-08T04:49:42Z","updated_at":"2017-12-08T04:49:42Z","author_association":"NONE","body":"Setting the `hostname` in `/etc/hosts` early in the bootstrap process seems to fix the issue, per https://github.com/ansible/ansible/issues/25961#issuecomment-310214753 😕 \r\n\r\nThis was a really difficult solution to track down, especially with so many unresolved duplicate issues. Wondering if there any way to fix this in Ansible itself or at least call it out loudly in the documentation."}}
{"actor":{"display_login":"rafecolton"}}