{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/42843","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/42843/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/42843/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/42843/events","html_url":"https://github.com/ansible/ansible/issues/42843","id":341419863,"node_id":"MDU6SXNzdWUzNDE0MTk4NjM=","number":42843,"title":"ios_config - backup is not complete","user":{"login":"jifox","id":8406301,"node_id":"MDQ6VXNlcjg0MDYzMDE=","avatar_url":"https://avatars2.githubusercontent.com/u/8406301?v=4","gravatar_id":"","url":"https://api.github.com/users/jifox","html_url":"https://github.com/jifox","followers_url":"https://api.github.com/users/jifox/followers","following_url":"https://api.github.com/users/jifox/following{/other_user}","gists_url":"https://api.github.com/users/jifox/gists{/gist_id}","starred_url":"https://api.github.com/users/jifox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jifox/subscriptions","organizations_url":"https://api.github.com/users/jifox/orgs","repos_url":"https://api.github.com/users/jifox/repos","events_url":"https://api.github.com/users/jifox/events{/privacy}","received_events_url":"https://api.github.com/users/jifox/received_events","type":"User","site_admin":false},"labels":[{"id":835286067,"node_id":"MDU6TGFiZWw4MzUyODYwNjc=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.6","name":"affects_2.6","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":339653091,"node_id":"MDU6TGFiZWwzMzk2NTMwOTE=","url":"https://api.github.com/repos/ansible/ansible/labels/networking","name":"networking","color":"c7def8","default":false},{"id":383076471,"node_id":"MDU6TGFiZWwzODMwNzY0NzE=","url":"https://api.github.com/repos/ansible/ansible/labels/python3","name":"python3","color":"fbca04","default":false},{"id":669761792,"node_id":"MDU6TGFiZWw2Njk3NjE3OTI=","url":"https://api.github.com/repos/ansible/ansible/labels/support:network","name":"support:network","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":{"login":"justjais","id":26872141,"node_id":"MDQ6VXNlcjI2ODcyMTQx","avatar_url":"https://avatars2.githubusercontent.com/u/26872141?v=4","gravatar_id":"","url":"https://api.github.com/users/justjais","html_url":"https://github.com/justjais","followers_url":"https://api.github.com/users/justjais/followers","following_url":"https://api.github.com/users/justjais/following{/other_user}","gists_url":"https://api.github.com/users/justjais/gists{/gist_id}","starred_url":"https://api.github.com/users/justjais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justjais/subscriptions","organizations_url":"https://api.github.com/users/justjais/orgs","repos_url":"https://api.github.com/users/justjais/repos","events_url":"https://api.github.com/users/justjais/events{/privacy}","received_events_url":"https://api.github.com/users/justjais/received_events","type":"User","site_admin":false},"assignees":[{"login":"justjais","id":26872141,"node_id":"MDQ6VXNlcjI2ODcyMTQx","avatar_url":"https://avatars2.githubusercontent.com/u/26872141?v=4","gravatar_id":"","url":"https://api.github.com/users/justjais","html_url":"https://github.com/justjais","followers_url":"https://api.github.com/users/justjais/followers","following_url":"https://api.github.com/users/justjais/following{/other_user}","gists_url":"https://api.github.com/users/justjais/gists{/gist_id}","starred_url":"https://api.github.com/users/justjais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justjais/subscriptions","organizations_url":"https://api.github.com/users/justjais/orgs","repos_url":"https://api.github.com/users/justjais/repos","events_url":"https://api.github.com/users/justjais/events{/privacy}","received_events_url":"https://api.github.com/users/justjais/received_events","type":"User","site_admin":false}],"milestone":null,"comments":15,"created_at":"2018-07-16T07:50:19Z","updated_at":"2018-08-21T07:59:59Z","closed_at":"2018-08-21T07:59:59Z","author_association":"NONE","body":"##### SUMMARY\r\nThe backup file generated by the playbook contains only a part of the output of 'show running-config'.\r\n\r\n##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\nios_command\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.6.1\r\n  config file = /home/xxxxxx/ansible/develop/ansible.cfg\r\n  configured module search path = ['/home/xxxxxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/lib/python3.6/site-packages/ansible\r\n  executable location = /usr/bin/ansible\r\n  python version = 3.6.5 (default, Apr 10 2018, 17:08:37) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\n```\r\n\r\n##### CONFIGURATION\r\nDEFAULT_ROLES_PATH(/home/xxxxxx/ansible/develop/ansible.cfg) = ['/home/xxxxxx/ansible/develop/roles', '/home/xxxxxx/ansible/common/roles']\r\nDEFAULT_VAULT_PASSWORD_FILE(/home/xxxxxx/ansible/develop/ansible.cfg) = /home/xxxxxx/.ssh/ansible-vault\r\n\r\n\r\n##### OS / ENVIRONMENT\r\nCisco IOS XE Software, Version 16.06.03\r\nCisco IOS Software [Everest], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.6.3, RELEASE SOFTWARE (fc8)\r\n\r\nSwitch Ports Model              SW Version        SW Image              Mode   \r\n------ ----- -----              ----------        ----------            ----   \r\n*    1 62    C9300-48P          16.6.3            CAT9K_IOSXE           INSTALL\r\n\r\n\r\n\r\n##### STEPS TO REPRODUCE\r\n<!--- For bugs, show exactly how to reproduce the problem, using a minimal test-case.\r\nFor new features, show how the feature would be used. -->\r\n\r\n1.) Execute Playbook\r\n2.) cat generateed backup file\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\n---\r\n\r\n- hosts: ios\r\n  gather_facts: no\r\n  become: no\r\n\r\n  tasks:\r\n\r\n    - name: Backup current switch config (ios)\r\n      ios_config:\r\n        backup: yes\r\n      register: backup_ios_location\r\n      when: ansible_network_os == 'ios'\r\n\r\n    - name: Display Result\r\n      debug:\r\n        var: backup_ios_location\r\n```\r\n\r\n...\r\n  police rate 2000 pps\r\n class system-cpp-police-forus\r\n  police rate 1000 pps\r\n class system-cpp-default\r\n  police rate 1000 pps\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\n!\r\ninterface Port-channel1[OUTPUT STOPPED HERE]\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\n\r\nOUTPUT should list the same items that show running-config do\r\n...\r\nwsma agent exec\r\n!\r\nwsma agent config\r\n!\r\nwsma agent filesys\r\n!\r\nwsma agent notify\r\n!\r\n!\r\nend\r\nLAST LINE FROM SHOW CONFIG IS 'end'\r\n\r\n\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\n[ansible@scvnetmgmt01 develop]$ ansible-playbook -i hosts.yml --limit ATKPACSE102  tasks/test_switch_backup.yml -vvvv\r\nansible-playbook 2.6.1\r\n  config file = /home/xxxxxx/ansible/develop/ansible.cfg\r\n  configured module search path = ['/home/xxxxxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /usr/lib/python3.6/site-packages/ansible\r\n  executable location = /usr/bin/ansible-playbook\r\n  python version = 3.6.5 (default, Apr 10 2018, 17:08:37) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\nUsing /home/xxxxxx/ansible/develop/ansible.cfg as config file\r\nsetting up inventory plugins\r\nParsed /home/xxxxxx/ansible/develop/hosts.yml inventory source with yaml plugin\r\nLoading callback plugin default of type stdout, v2.0 from /usr/lib/python3.6/site-packages/ansible/plugins/callback/default.py\r\n\r\nPLAYBOOK: test_switch_backup.yml ************************************************************************************************************************\r\n1 plays in tasks/test_switch_backup.yml\r\n\r\nPLAY [ios] **********************************************************************************************************************************************\r\nMETA: ran handlers\r\n\r\nTASK [Backup current switch config (ios)] ***************************************************************************************************************\r\ntask path: /home/xxxxxx/ansible/develop/tasks/test_switch_backup.yml:9\r\nTrying secret FileVaultSecret(filename='/home/xxxxxx/.ssh/ansible-vault') for vault_id=default\r\nTrying secret FileVaultSecret(filename='/home/xxxxxx/.ssh/ansible-vault') for vault_id=default\r\n<10.24.228.102> attempting to start connection\r\n<10.24.228.102> using connection plugin network_cli\r\n<10.24.228.102> local domain socket does not exist, starting it\r\n<10.24.228.102> control socket path is /home/xxxxxx/.ansible/pc/cf23a13bcd\r\n<10.24.228.102> <10.24.228.102> ESTABLISH CONNECTION FOR USER: yyyyy on PORT 22 TO 10.24.228.102\r\n<10.24.228.102> <10.24.228.102> ssh connection done, setting terminal\r\n<10.24.228.102> <10.24.228.102> loaded terminal plugin for network_os ios\r\n<10.24.228.102> <10.24.228.102> loaded cliconf plugin for network_os ios\r\n<10.24.228.102> <10.24.228.102> firing event: on_open_shell()\r\n<10.24.228.102> <10.24.228.102> firing event: on_become\r\n<10.24.228.102> <10.24.228.102> ssh connection has completed successfully\r\n<10.24.228.102> connection to remote device started successfully\r\n<10.24.228.102> local domain socket listeners started successfully\r\n<10.24.228.102>\r\n<10.24.228.102> local domain socket path is /home/xxxxxx/.ansible/pc/cf23a13bcd\r\n<10.24.228.102> ESTABLISH LOCAL CONNECTION FOR USER: xxxxxx\r\n<10.24.228.102> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo /home/xxxxxx/.ansible/tmp/ansible-local-174262xlcz5eh/ansible-tmp-1531727004.4380639-269164988726886 `\" && echo ansible-tmp-1531727004.4380639-269164988726886=\"` echo /home/xxxxxx/.ansible/tmp/ansible-local-174262xlcz5eh/ansible-tmp-1531727004.4380639-269164988726886 `\" ) && sleep 0'\r\nUsing module file /usr/lib/python3.6/site-packages/ansible/modules/network/ios/ios_config.py\r\n<10.24.228.102> PUT /home/xxxxxx/.ansible/tmp/ansible-local-174262xlcz5eh/tmp514q2y8s TO /home/xxxxxx/.ansible/tmp/ansible-local-174262xlcz5eh/ansible-tmp-1531727004.4380639-269164988726886/ios_config.py\r\n<10.24.228.102> EXEC /bin/sh -c 'chmod u+x /home/xxxxxx/.ansible/tmp/ansible-local-174262xlcz5eh/ansible-tmp-1531727004.4380639-269164988726886/ /home/xxxxxx/.ansible/tmp/ansible-local-174262xlcz5eh/ansible-tmp-1531727004.4380639-269164988726886/ios_config.py && sleep 0'\r\n<10.24.228.102> EXEC /bin/sh -c '/usr/bin/python /home/xxxxxx/.ansible/tmp/ansible-local-174262xlcz5eh/ansible-tmp-1531727004.4380639-269164988726886/ios_config.py && sleep 0'\r\n<10.24.228.102> EXEC /bin/sh -c 'rm -f -r /home/xxxxxx/.ansible/tmp/ansible-local-174262xlcz5eh/ansible-tmp-1531727004.4380639-269164988726886/ > /dev/null 2>&1 && sleep 0'\r\nok: [ATKPACSE102] => {\r\n    \"backup_path\": \"/home/xxxxxx/ansible/develop/tasks/backup/ATKPACSE102_config.2018-07-16@09:43:25\",\r\n    \"changed\": false,\r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"after\": null,\r\n            \"auth_pass\": null,\r\n            \"authorize\": null,\r\n            \"backup\": true,\r\n            \"before\": null,\r\n            \"defaults\": false,\r\n            \"diff_against\": null,\r\n            \"diff_ignore_lines\": null,\r\n            \"force\": false,\r\n            \"host\": null,\r\n            \"intended_config\": null,\r\n            \"lines\": null,\r\n            \"match\": \"line\",\r\n            \"multiline_delimiter\": \"@\",\r\n            \"parents\": null,\r\n            \"password\": null,\r\n            \"port\": null,\r\n            \"provider\": null,\r\n            \"replace\": \"line\",\r\n            \"running_config\": null,\r\n            \"save\": false,\r\n            \"save_when\": \"never\",\r\n            \"src\": null,\r\n            \"ssh_keyfile\": null,\r\n            \"timeout\": null,\r\n            \"username\": null\r\n        }\r\n    }\r\n}\r\n\r\nTASK [Display Result] ***********************************************************************************************************************************\r\ntask path: /home/xxxxxx/ansible/develop/tasks/test_switch_backup.yml:15\r\nTrying secret FileVaultSecret(filename='/home/xxxxxx/.ssh/ansible-vault') for vault_id=default\r\nTrying secret FileVaultSecret(filename='/home/xxxxxx/.ssh/ansible-vault') for vault_id=default\r\n<10.24.228.102> attempting to start connection\r\n<10.24.228.102> using connection plugin network_cli\r\n<10.24.228.102> found existing local domain socket, using it!\r\n<10.24.228.102> updating play_context for connection\r\n<10.24.228.102>\r\n<10.24.228.102> local domain socket path is /home/xxxxxx/.ansible/pc/cf23a13bcd\r\nok: [ATKPACSE102] => {\r\n    \"backup_ios_location\": {\r\n        \"backup_path\": \"/home/xxxxxx/ansible/develop/tasks/backup/ATKPACSE102_config.2018-07-16@09:43:25\",\r\n        \"changed\": false,\r\n        \"failed\": false\r\n    }\r\n}\r\nMETA: ran handlers\r\nMETA: ran handlers\r\n\r\nPLAY RECAP **********************************************************************************************************************************************\r\nATKPACSE102                : ok=2    changed=0    unreachable=0    failed=0\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/414586173","html_url":"https://github.com/ansible/ansible/issues/42843#issuecomment-414586173","issue_url":"https://api.github.com/repos/ansible/ansible/issues/42843","id":414586173,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDU4NjE3Mw==","user":{"login":"justjais","id":26872141,"node_id":"MDQ6VXNlcjI2ODcyMTQx","avatar_url":"https://avatars2.githubusercontent.com/u/26872141?v=4","gravatar_id":"","url":"https://api.github.com/users/justjais","html_url":"https://github.com/justjais","followers_url":"https://api.github.com/users/justjais/followers","following_url":"https://api.github.com/users/justjais/following{/other_user}","gists_url":"https://api.github.com/users/justjais/gists{/gist_id}","starred_url":"https://api.github.com/users/justjais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justjais/subscriptions","organizations_url":"https://api.github.com/users/justjais/orgs","repos_url":"https://api.github.com/users/justjais/repos","events_url":"https://api.github.com/users/justjais/events{/privacy}","received_events_url":"https://api.github.com/users/justjais/received_events","type":"User","site_admin":false},"created_at":"2018-08-21T07:59:59Z","updated_at":"2018-08-21T07:59:59Z","author_association":"CONTRIBUTOR","body":"@jifox Thanks for the confirmation and as you are able to resolve the bug, I'll close the bug."}}
{"actor":{"display_login":"justjais"}}