{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/46562","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/46562/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/46562/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/46562/events","html_url":"https://github.com/ansible/ansible/issues/46562","id":367424980,"node_id":"MDU6SXNzdWUzNjc0MjQ5ODA=","number":46562,"title":"Reboot stuck on Raspbian Stretch","user":{"login":"knumskull","id":2650167,"node_id":"MDQ6VXNlcjI2NTAxNjc=","avatar_url":"https://avatars3.githubusercontent.com/u/2650167?v=4","gravatar_id":"","url":"https://api.github.com/users/knumskull","html_url":"https://github.com/knumskull","followers_url":"https://api.github.com/users/knumskull/followers","following_url":"https://api.github.com/users/knumskull/following{/other_user}","gists_url":"https://api.github.com/users/knumskull/gists{/gist_id}","starred_url":"https://api.github.com/users/knumskull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knumskull/subscriptions","organizations_url":"https://api.github.com/users/knumskull/orgs","repos_url":"https://api.github.com/users/knumskull/repos","events_url":"https://api.github.com/users/knumskull/events{/privacy}","received_events_url":"https://api.github.com/users/knumskull/received_events","type":"User","site_admin":false},"labels":[{"id":947190508,"node_id":"MDU6TGFiZWw5NDcxOTA1MDg=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.7","name":"affects_2.7","color":"ededed","default":false},{"id":785271699,"node_id":"MDU6TGFiZWw3ODUyNzE2OTk=","url":"https://api.github.com/repos/ansible/ansible/labels/bug","name":"bug","color":"fbca04","default":true},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":636352796,"node_id":"MDU6TGFiZWw2MzYzNTI3OTY=","url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"samdoran","id":4047861,"node_id":"MDQ6VXNlcjQwNDc4NjE=","avatar_url":"https://avatars2.githubusercontent.com/u/4047861?v=4","gravatar_id":"","url":"https://api.github.com/users/samdoran","html_url":"https://github.com/samdoran","followers_url":"https://api.github.com/users/samdoran/followers","following_url":"https://api.github.com/users/samdoran/following{/other_user}","gists_url":"https://api.github.com/users/samdoran/gists{/gist_id}","starred_url":"https://api.github.com/users/samdoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdoran/subscriptions","organizations_url":"https://api.github.com/users/samdoran/orgs","repos_url":"https://api.github.com/users/samdoran/repos","events_url":"https://api.github.com/users/samdoran/events{/privacy}","received_events_url":"https://api.github.com/users/samdoran/received_events","type":"User","site_admin":false},"assignees":[{"login":"samdoran","id":4047861,"node_id":"MDQ6VXNlcjQwNDc4NjE=","avatar_url":"https://avatars2.githubusercontent.com/u/4047861?v=4","gravatar_id":"","url":"https://api.github.com/users/samdoran","html_url":"https://github.com/samdoran","followers_url":"https://api.github.com/users/samdoran/followers","following_url":"https://api.github.com/users/samdoran/following{/other_user}","gists_url":"https://api.github.com/users/samdoran/gists{/gist_id}","starred_url":"https://api.github.com/users/samdoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdoran/subscriptions","organizations_url":"https://api.github.com/users/samdoran/orgs","repos_url":"https://api.github.com/users/samdoran/repos","events_url":"https://api.github.com/users/samdoran/events{/privacy}","received_events_url":"https://api.github.com/users/samdoran/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-10-06T05:15:49Z","updated_at":"2018-11-08T14:54:59Z","closed_at":"2018-11-08T14:54:59Z","author_association":"NONE","body":"<!--- Verify first that your issue is not already reported on GitHub -->\r\n<!--- Also test if the latest release and devel branch are affected too -->\r\n<!--- Complete *all* sections as described, this form is processed automatically -->\r\n\r\n##### SUMMARY\r\nTried the new reboot feature in ansible 2.7. But ansible prompt sticks, while system is already rebooted.\r\n<!--- Explain the problem briefly below -->\r\n\r\n##### ISSUE TYPE\r\n- Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Write the short name of the module, plugin, task or feature below -->\r\nreboot\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from \"ansible --version\" between quotes -->\r\n```paste below\r\nansible 2.7.0\r\n  config file = None\r\n  configured module search path = [u'/Users/steffen/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /Library/Python/2.7/site-packages/ansible\r\n  executable location = /usr/local/bin/ansible\r\n  python version = 2.7.10 (default, Feb  7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]\r\n```\r\n\r\n##### CONFIGURATION\r\nfreshly installed ansible 2.7 without any modification\r\n\r\n##### OS / ENVIRONMENT\r\n<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->\r\nraspbian stretch\r\n\r\n```\r\n$ uname -a\r\nLinux pihab.home.wlan 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux\r\n\r\n$ timedatectl status\r\n      Local time: Sat 2018-10-06 07:09:33 CEST\r\n  Universal time: Sat 2018-10-06 05:09:33 UTC\r\n        RTC time: n/a\r\n       Time zone: Europe/Berlin (CEST, +0200)\r\n Network time on: yes\r\nNTP synchronized: yes\r\n RTC in local TZ: no\r\n```\r\n\r\n##### STEPS TO REPRODUCE\r\n<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->\r\nSimply run adhoc `reboot`command \r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```bash\r\n$ ansible -b -i hosts pihab -m reboot\r\n```\r\n\r\n<!--- HINT: You can paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- Describe what you expected to happen when running the steps above -->\r\nPrompt should return after system successfully rebooted\r\n\r\n##### ACTUAL RESULTS\r\n<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->\r\nOn executing the reboot command, the prompt will not return without manual interrupt.\r\n\r\nIt seems the reboot-check failing.\r\n\r\nCode will check for `1970-01-01 00:00`, but system return `1970-01-01 01:00`(different time)\r\n\r\n```\r\n$ who -b\r\n         system boot  1970-01-01 01:00\r\n```\r\n\r\n<!--- Paste verbatim command output between quotes -->\r\n```paste below\r\nreboot: attempting to get system boot time\r\n<pihab.home.wlan> ESTABLISH SSH CONNECTION FOR USER: pi\r\n<pihab.home.wlan> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=pi -o ConnectTimeout=10 -o ControlPath=/Users/steffen/.ansible/cp/63197cf86e -tt pihab.home.wlan '/bin/sh -c '\"'\"'sudo -H -S -n -u root /bin/sh -c '\"'\"'\"'\"'\"'\"'\"'\"'echo BECOME-SUCCESS-amrletdwexioafvfibsiorkmauqmkyzi; who -b'\"'\"'\"'\"'\"'\"'\"'\"' && sleep 0'\"'\"''\r\nEscalation succeeded\r\n<pihab.home.wlan> (0, '         system boot  1970-01-01 01:00\\r\\n', 'OpenSSH_7.4p1, LibreSSL 2.5.0\\r\\ndebug1: Reading configuration data /Users/steffen/.ssh/config\\r\\ndebug1: Reading configuration data /etc/ssh/ssh_config\\r\\ndebug1: auto-mux: Trying existing master\\r\\ndebug2: fd 3 setting O_NONBLOCK\\r\\ndebug2: mux_client_hello_exchange: master version 4\\r\\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\\r\\ndebug3: mux_client_request_session: entering\\r\\ndebug3: mux_client_request_alive: entering\\r\\ndebug3: mux_client_request_alive: done pid = 3926\\r\\ndebug3: mux_client_request_session: session request sent\\r\\ndebug1: mux_client_request_session: master session id: 2\\r\\ndebug3: mux_client_read_packet: read header failed: Broken pipe\\r\\ndebug2: Received exit status from master 0\\r\\nShared connection to pihab.home.wlan closed.\\r\\n')\r\n```\r\n"}}
{"actor":{"display_login":"samdoran"}}