{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/42296","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/42296/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/42296/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/42296/events","html_url":"https://github.com/ansible/ansible/issues/42296","id":338173393,"node_id":"MDU6SXNzdWUzMzgxNzMzOTM=","number":42296,"title":"return message for device 2000+ letters, ansible network module only return the last 256 letters","user":{"login":"liqingkai2017","id":33243534,"node_id":"MDQ6VXNlcjMzMjQzNTM0","avatar_url":"https://avatars2.githubusercontent.com/u/33243534?v=4","gravatar_id":"","url":"https://api.github.com/users/liqingkai2017","html_url":"https://github.com/liqingkai2017","followers_url":"https://api.github.com/users/liqingkai2017/followers","following_url":"https://api.github.com/users/liqingkai2017/following{/other_user}","gists_url":"https://api.github.com/users/liqingkai2017/gists{/gist_id}","starred_url":"https://api.github.com/users/liqingkai2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liqingkai2017/subscriptions","organizations_url":"https://api.github.com/users/liqingkai2017/orgs","repos_url":"https://api.github.com/users/liqingkai2017/repos","events_url":"https://api.github.com/users/liqingkai2017/events{/privacy}","received_events_url":"https://api.github.com/users/liqingkai2017/received_events","type":"User","site_admin":false},"labels":[{"id":562292166,"node_id":"MDU6TGFiZWw1NjIyOTIxNjY=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.4","name":"affects_2.4","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":669761792,"node_id":"MDU6TGFiZWw2Njk3NjE3OTI=","url":"https://api.github.com/repos/ansible/ansible/labels/support:network","name":"support:network","color":"ededed","default":false}],"state":"open","locked":false,"assignee":{"login":"ganeshrn","id":5292461,"node_id":"MDQ6VXNlcjUyOTI0NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/5292461?v=4","gravatar_id":"","url":"https://api.github.com/users/ganeshrn","html_url":"https://github.com/ganeshrn","followers_url":"https://api.github.com/users/ganeshrn/followers","following_url":"https://api.github.com/users/ganeshrn/following{/other_user}","gists_url":"https://api.github.com/users/ganeshrn/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshrn/subscriptions","organizations_url":"https://api.github.com/users/ganeshrn/orgs","repos_url":"https://api.github.com/users/ganeshrn/repos","events_url":"https://api.github.com/users/ganeshrn/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshrn/received_events","type":"User","site_admin":false},"assignees":[{"login":"ganeshrn","id":5292461,"node_id":"MDQ6VXNlcjUyOTI0NjE=","avatar_url":"https://avatars0.githubusercontent.com/u/5292461?v=4","gravatar_id":"","url":"https://api.github.com/users/ganeshrn","html_url":"https://github.com/ganeshrn","followers_url":"https://api.github.com/users/ganeshrn/followers","following_url":"https://api.github.com/users/ganeshrn/following{/other_user}","gists_url":"https://api.github.com/users/ganeshrn/gists{/gist_id}","starred_url":"https://api.github.com/users/ganeshrn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ganeshrn/subscriptions","organizations_url":"https://api.github.com/users/ganeshrn/orgs","repos_url":"https://api.github.com/users/ganeshrn/repos","events_url":"https://api.github.com/users/ganeshrn/events{/privacy}","received_events_url":"https://api.github.com/users/ganeshrn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-07-04T08:13:01Z","updated_at":"2018-07-12T11:50:43Z","closed_at":null,"author_association":"NONE","body":"##### SUMMARY\r\n\r\nwhen using the network module, we send command with a long response,then the problem happened,it seems that it only return last 256 letters.I tried to debug,and it seems in connection.py  \r\n      data_len = struct.unpack('!Q', data[:header_len])[0]   \r\nthis code it actually get the message length 256\r\n      and then the code writes like below \r\n       d = s.recv(data_len - len(data))\r\n our return for the same command in device can be 2000+ letters,and the last 256 letters is the same as  ACTUAL RESULTS,please help me find the problem,thanks a lot!\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\n2.4.4.0\r\n\r\n##### CONFIGURATION\r\nDEFAULT_FORKS(/etc/ansible/ansible.cfg) = 5\r\nDEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = [u'/etc/ansible/hosts']\r\nDEFAULT_LOG_PATH(/etc/ansible/ansible.cfg) = /var/log/ansible.log\r\nDEFAULT_MODULE_LANG(/etc/ansible/ansible.cfg) = C\r\nDEFAULT_POLL_INTERVAL(/etc/ansible/ansible.cfg) = 15\r\nDEFAULT_REMOTE_PORT(/etc/ansible/ansible.cfg) = 10022\r\nDEFAULT_REMOTE_TMP(/etc/ansible/ansible.cfg) = ~/.ansible/tmp\r\nDEFAULT_SCP_IF_SSH(/etc/ansible/ansible.cfg) = smart\r\nDEFAULT_SSH_TRANSFER_METHOD(/etc/ansible/ansible.cfg) = smart\r\nDEFAULT_TIMEOUT(/etc/ansible/ansible.cfg) = 10000000000000000\r\nDEFAULT_TRANSPORT(/etc/ansible/ansible.cfg) = smart\r\nHOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False\r\nPERSISTENT_COMMAND_TIMEOUT(/etc/ansible/ansible.cfg) = 100\r\nPERSISTENT_CONNECT_TIMEOUT(/etc/ansible/ansible.cfg) = 60\r\n\r\n##### OS / ENVIRONMENT\r\nLinux suse 12\r\n\r\n##### STEPS TO REPRODUCE\r\nrun command using ios_command\r\n\r\n\r\n\r\n##### EXPECTED RESULTS\r\n...       (more than two thousand lines)\r\nInfo: Load complete(278 errors).\r\n\r\n\r\n##### ACTUAL RESULTS\r\n, please commit uncommitted configuration first.\r\n\r\nLine 671: \r\n tunnel name 123\r\n        ^\r\nError: Unrecognized command found at '^' position.\r\n\r\nLine 673: \r\nreturn\r\nError: Failed to run the command.\r\n\r\nInfo: Load complete(278 errors).\r\n[*viettel_AGG2]\r\n, please commit uncommitted configuration first.\r\n\r\nLine 671: \r\n tunnel name 123\r\n        ^\r\nError: Unrecognized command found at '^' position.\r\n\r\nLine 673: \r\nreturn\r\nError: Failed to run the command.\r\n\r\nInfo: Load complete(278 errors).\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/404485839","html_url":"https://github.com/ansible/ansible/issues/42296#issuecomment-404485839","issue_url":"https://api.github.com/repos/ansible/ansible/issues/42296","id":404485839,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDQ4NTgzOQ==","user":{"login":"liqingkai2017","id":33243534,"node_id":"MDQ6VXNlcjMzMjQzNTM0","avatar_url":"https://avatars2.githubusercontent.com/u/33243534?v=4","gravatar_id":"","url":"https://api.github.com/users/liqingkai2017","html_url":"https://github.com/liqingkai2017","followers_url":"https://api.github.com/users/liqingkai2017/followers","following_url":"https://api.github.com/users/liqingkai2017/following{/other_user}","gists_url":"https://api.github.com/users/liqingkai2017/gists{/gist_id}","starred_url":"https://api.github.com/users/liqingkai2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liqingkai2017/subscriptions","organizations_url":"https://api.github.com/users/liqingkai2017/orgs","repos_url":"https://api.github.com/users/liqingkai2017/repos","events_url":"https://api.github.com/users/liqingkai2017/events{/privacy}","received_events_url":"https://api.github.com/users/liqingkai2017/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T11:50:42Z","updated_at":"2018-07-12T11:50:42Z","author_association":"NONE","body":"@ganeshrn @gundalow can you help me to solve the problem and give us some ideas what can we do to find the problem  and solve it"}}
{"actor":{"display_login":"liqingkai2017"}}