{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/29522","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/29522/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/29522/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/29522/events","html_url":"https://github.com/ansible/ansible/issues/29522","id":256693162,"number":29522,"title":"Nxos_reboot ends in timeout error when it's successfull ","user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-11T12:58:50Z","updated_at":"2017-09-11T12:58:51Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"From @ebmarquez on 2016-11-03T21:32:57Z\r\n<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the plugin/module/task -->\r\nnxos_reboot\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.2.0.0\r\n  config file = /home/emarq/Solutions.Network.Automation/MAS/Ansible/cisco/nexus/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n[defaults]\r\nhostfile=localstage\r\n#hostfile=mas-b43\r\nansible_ssh_user=admin\r\nansible_ssh_private_key_file=/home/emarq/.ssh/masd-rsa\r\nhost_key_checking=False\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nLinux rr1masdansible 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nSwitch is rebooted but Ansible errors out.\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n\n---\r\n- name: copy configs\r\n  hosts:\r\n    - n35-bmc\r\n    - basebmctemplate\r\n    - n35-tor\r\n    - basetortemplate\r\n    - basetor40gtemplate\r\n    - n35-agg\r\n    - baseaggtemplate\r\n  remote_user: admin\r\n  gather_facts: no\r\n  connection: local\r\n  vars:\r\n    cli:\r\n      host: \"{{ ansible_host }}\"\r\n      transport: cli\r\n      username: admin\r\n      ssh_keyfile: /srv/tftpboot/my-rsa.pub\r\n  roles:\r\n    - copyfirmware\r\n\r\nroles/copyfirmware/tasks/main.yml\r\n\n---\r\n- nxos_reboot:\r\n    provider: \"{{ cli }}\"\r\n    confirm: true\r\n    host: \"{{ ansible_host }}\"\r\n    username: admin\r\n    ssh_keyfile: /srv/tftpboot/my-rsa.pub\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\nreload switch end with a success value.\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nTASK [copyfirmware : nxos_reboot] **********************************************\r\ntask path: /home/emarq/Solutions.Network.Automation/MAS/Ansible/cisco/nexus/roles/copyfirmware/tasks/main.yml:23\r\nUsing module file /usr/lib/python2.7/dist-packages/ansible/modules/core/network/nxos/nxos_reboot.py\r\n<10.10.228.60> ESTABLISH LOCAL CONNECTION FOR USER: emarq\r\n<10.10.228.60> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1478208427.24-135809306234074 `\" && echo ansible-tmp-1478208427.24-135809306234074=\"` echo $HOME/.ansible/tmp/ansible-tmp-1478208427.24-135809306234074 `\" ) && sleep 0'\r\n<10.10.228.60> PUT /tmp/tmp31WWF5 TO /home/emarq/.ansible/tmp/ansible-tmp-1478208427.24-135809306234074/nxos_reboot.py\r\n<10.10.228.60> EXEC /bin/sh -c 'chmod u+x /home/emarq/.ansible/tmp/ansible-tmp-1478208427.24-135809306234074/ /home/emarq/.ansible/tmp/ansible-tmp-1478208427.24-135809306234074/nxos_reboot.py && sleep 0'\r\n<10.10.228.60> EXEC /bin/sh -c '/usr/bin/python /home/emarq/.ansible/tmp/ansible-tmp-1478208427.24-135809306234074/nxos_reboot.py; rm -rf \"/home/emarq/.ansible/tmp/ansible-tmp-1478208427.24-135809306234074/\" > /dev/null 2>&1 && sleep 0'\r\nfatal: [rr1-n22-r09-3132hl-3-1d]: FAILED! => {\r\n    \"changed\": false,\r\n    \"error\": \"timeout trying to send command: reload\\r\",\r\n    \"failed\": true,\r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"auth_pass\": null,\r\n            \"authorize\": false,\r\n            \"config\": null,\r\n            \"confirm\": true,\r\n            \"host\": \"10.10.228.60\",\r\n            \"include_defaults\": \"False\",\r\n            \"password\": null,\r\n            \"port\": null,\r\n            \"provider\": {\r\n                \"host\": \"10.10.228.60\",\r\n                \"ssh_keyfile\": \"/srv/tftpboot/my-rsa.pub\",\r\n                \"transport\": \"cli\",\r\n                \"username\": \"admin\"\r\n            },\r\n            \"save\": false,\r\n            \"ssh_keyfile\": \"/srv/tftpboot/my-rsa.pub\",\r\n            \"timeout\": 10,\r\n            \"transport\": \"cli\",\r\n            \"use_ssl\": false,\r\n            \"username\": \"admin\",\r\n            \"validate_certs\": true\r\n        },\r\n        \"module_name\": \"nxos_reboot\"\r\n    },\r\n    \"msg\": \"Error sending ['reload']\"\r\n}\r\n        to retry, use: --limit @/home/emarq/Solutions.Network.Automation/MAS/Ansible/cisco/nexus/nexusbaseconfig.retry\r\n```\r\n\r\nCopied from original issue: ansible/ansible-modules-core#5486\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/328521164","html_url":"https://github.com/ansible/ansible/issues/29522#issuecomment-328521164","issue_url":"https://api.github.com/repos/ansible/ansible/issues/29522","id":328521164,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars0.githubusercontent.com/u/6585283?v=4","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2017-09-11T12:58:51Z","updated_at":"2017-09-11T12:58:51Z","author_association":"CONTRIBUTOR","body":"From @GGabriele on 2016-11-03T21:32:57Z\r\n\r\nI believe we can close this.\n"}}
{"actor":{"display_login":"ansibot"}}