{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5520","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5520/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5520/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5520/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/5520","id":187812118,"number":5520,"title":"timeout: ios_config: save times out","user":{"login":"Akvarium","id":5605019,"avatar_url":"https://avatars.githubusercontent.com/u/5605019?v=3","gravatar_id":"","url":"https://api.github.com/users/Akvarium","html_url":"https://github.com/Akvarium","followers_url":"https://api.github.com/users/Akvarium/followers","following_url":"https://api.github.com/users/Akvarium/following{/other_user}","gists_url":"https://api.github.com/users/Akvarium/gists{/gist_id}","starred_url":"https://api.github.com/users/Akvarium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akvarium/subscriptions","organizations_url":"https://api.github.com/users/Akvarium/orgs","repos_url":"https://api.github.com/users/Akvarium/repos","events_url":"https://api.github.com/users/Akvarium/events{/privacy}","received_events_url":"https://api.github.com/users/Akvarium/received_events","type":"User","site_admin":false},"labels":[{"id":437720380,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.2","name":"affects_2.2","color":"5319e7","default":false},{"id":132571937,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":275173408,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/networking","name":"networking","color":"c7def8","default":false},{"id":414073372,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-07T20:00:14Z","updated_at":"2016-12-04T18:02:47Z","closed_at":null,"body":"<!--- 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\nios_config\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/mcdowell/git/stamnet-automasjon-ansible/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\nPretty much default, nothing that applies to this.\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\nUbuntu 16.04\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nWhen using:\r\nsave: yes\r\nin ios_config while trying to push configuration and saving it, ansible times out with the message:\r\ntimeout trying to send command: copy running-config startup-config\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\nTry pushing any working configuration to an ios router with ios_config while the option \"save: yes\" is enabled.\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n    - name: Push full BGP border configuration to host\r\n      ios_config:\r\n        match: none\r\n        authorize: yes\r\n        save: yes\r\n        auth_pass: \"{{ root_pw }}\"\r\n        src: \"{{ build_dir }}/{{ ansible_host}}/bgp_confg\"\r\n        host: \"{{ host }}\"\r\n        username: \"{{ default_user }}\"\r\n        password: \"{{ ansible_ssh_pass|default(default_pw) }}\"\r\n        timeout: 120\r\n      when: \"'{{ os }}' == 'ios'\"\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\nI expected the running-config to be saved as the starting-config\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\nThe command timed out with the message:\r\ntimeout trying to send command: copy running-config startup-config\r\n```\r\n##### Possible solution\r\nChange the module to use the command \"write mem\" instead of \"copy running-config startup-config\".\r\nThis is because the latter command asks you to specify a destination filename when run, and I assume it is stuck there, and therefore times out.\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/264719512","html_url":"https://github.com/ansible/ansible-modules-core/issues/5520#issuecomment-264719512","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5520","id":264719512,"user":{"login":"dancwilliams","id":7129838,"avatar_url":"https://avatars.githubusercontent.com/u/7129838?v=3","gravatar_id":"","url":"https://api.github.com/users/dancwilliams","html_url":"https://github.com/dancwilliams","followers_url":"https://api.github.com/users/dancwilliams/followers","following_url":"https://api.github.com/users/dancwilliams/following{/other_user}","gists_url":"https://api.github.com/users/dancwilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/dancwilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancwilliams/subscriptions","organizations_url":"https://api.github.com/users/dancwilliams/orgs","repos_url":"https://api.github.com/users/dancwilliams/repos","events_url":"https://api.github.com/users/dancwilliams/events{/privacy}","received_events_url":"https://api.github.com/users/dancwilliams/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T18:02:47Z","updated_at":"2016-12-04T18:02:47Z","body":"I know that the `write memory` command was once looked at to be deprecated, but now no longer has that designation in the latest Cisco command references.\r\n\r\nI adjusted my local Ansible install to use the `write memory` command instead of the `copy running-config startup-config` command and the save option now works correctly within `ios_config` on both IOS and IOS-XE devices.\r\n\r\nDoes anyone know of a reason to choose `copy running-config startup-config` over `write memory` on these devices?  Just curious."}}
{"actor":{"display_login":"dancwilliams"}}