{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5495","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5495/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5495/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5495/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/5495","id":187243522,"number":5495,"title":"nxos_command fails with cisco nexus version 7.x","user":{"login":"ebmarquez","id":15785107,"avatar_url":"https://avatars.githubusercontent.com/u/15785107?v=3","gravatar_id":"","url":"https://api.github.com/users/ebmarquez","html_url":"https://github.com/ebmarquez","followers_url":"https://api.github.com/users/ebmarquez/followers","following_url":"https://api.github.com/users/ebmarquez/following{/other_user}","gists_url":"https://api.github.com/users/ebmarquez/gists{/gist_id}","starred_url":"https://api.github.com/users/ebmarquez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebmarquez/subscriptions","organizations_url":"https://api.github.com/users/ebmarquez/orgs","repos_url":"https://api.github.com/users/ebmarquez/repos","events_url":"https://api.github.com/users/ebmarquez/events{/privacy}","received_events_url":"https://api.github.com/users/ebmarquez/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-04T03:04:02Z","updated_at":"2016-12-07T19:58:46Z","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\n\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\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\nCisco Nexus\r\n\r\nSoftware\r\n  BIOS: version 3.9.0\r\n  NXOS: version 7.0(3)I4(1)\r\n  BIOS compile time:  01/25/2016\r\n  NXOS image file is: bootflash:///nxos.7.0.3.I4.1.bin\r\n  NXOS compile time:  5/15/2016 20:00:00 [05/15/2016 20:24:30]\r\n\r\n\r\nHardware\r\n  cisco Nexus3000 C3132Q Chassis\r\n  Intel(R) Core(TM) i3-3227U CPU @ 2.50GHz with 8153476 kB of memory.\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\nissue command to delete file from boothflash.  This same command with fine on Cisoc Nexus U6.6\r\n\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:  Delete remote config\r\n  nxos_command:\r\n    provider: \"{{ cli }}\"\r\n    host: \"{{ ansible_host }}\"\r\n    commands:\r\n      - \"delete bootflash:{{ inventory_hostname }}.conf \"\r\n\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\ndelete file from bootflash\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\ntask path: /home/emarq/Solutions.Network.Automation/MAS/Ansible/cisco/nexus/roles/copyfirmware/tasks/main.yml:2\r\nUsing module file /usr/lib/python2.7/dist-packages/ansible/modules/core/network/nxos/nxos_command.py\r\n<10.10.229.140> ESTABLISH LOCAL CONNECTION FOR USER: emarq\r\n<10.10.229.140> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1478227857.81-191488415490641 `\" && echo ansible-tmp-1478227857.81-191488415490641=\"` echo $HOME/.ansible/tmp/ansible-tmp-1478227857.81-191488415490641 `\" ) && sleep 0'\r\nUsing module file /usr/lib/python2.7/dist-packages/ansible/modules/core/network/nxos/nxos_command.py\r\n<10.10.230.12> ESTABLISH LOCAL CONNECTION FOR USER: emarq\r\n<10.10.230.12> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1478227857.81-248162808087391 `\" && echo ansible-tmp-1478227857.81-248162808087391=\"` echo $HOME/.ansible/tmp/ansible-tmp-1478227857.81-248162808087391 `\" ) && sleep 0'\r\n<10.10.230.12> PUT /tmp/tmpRHdIQN TO /home/emarq/.ansible/tmp/ansible-tmp-1478227857.81-248162808087391/nxos_command.py\r\n<10.10.229.140> PUT /tmp/tmpIoWDhn TO /home/emarq/.ansible/tmp/ansible-tmp-1478227857.81-191488415490641/nxos_command.py\r\n<10.10.229.140> EXEC /bin/sh -c 'chmod u+x /home/emarq/.ansible/tmp/ansible-tmp-1478227857.81-191488415490641/ /home/emarq/.ansible/tmp/ansible-tmp-1478227857.81-191488415490641/nxos_command.py && sleep 0'\r\n<10.10.230.12> EXEC /bin/sh -c 'chmod u+x /home/emarq/.ansible/tmp/ansible-tmp-1478227857.81-248162808087391/ /home/emarq/.ansible/tmp/ansible-tmp-1478227857.81-248162808087391/nxos_command.py && sleep 0'\r\n<10.10.229.140> EXEC /bin/sh -c '/usr/bin/python /home/emarq/.ansible/tmp/ansible-tmp-1478227857.81-191488415490641/nxos_command.py; rm -rf \"/home/emarq/.ansible/tmp/ansible-tmp-1478227857.81-191488415490641/\" > /dev/null 2>&1 && sleep 0'\r\n<10.10.230.12> EXEC /bin/sh -c '/usr/bin/python /home/emarq/.ansible/tmp/ansible-tmp-1478227857.81-248162808087391/nxos_command.py; rm -rf \"/home/emarq/.ansible/tmp/ansible-tmp-1478227857.81-248162808087391/\" > /dev/null 2>&1 && sleep 0'\r\nAn exception occurred during task execution. The full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_o26AcW/ansible_module_nxos_command.py\", line 257, in <module>\r\n    main()\r\n  File \"/tmp/ansible_o26AcW/ansible_module_nxos_command.py\", line 238, in main\r\n    module.fail_json(msg=str(exc), **exc.kwargs)\r\n  File \"/tmp/ansible_o26AcW/ansible_modlib.zip/ansible/module_utils/basic.py\", line 1811, in fail_json\r\n  File \"/tmp/ansible_o26AcW/ansible_modlib.zip/ansible/module_utils/basic.py\", line 388, in remove_values\r\n  File \"/tmp/ansible_o26AcW/ansible_modlib.zip/ansible/module_utils/basic.py\", line 388, in <genexpr>\r\n  File \"/tmp/ansible_o26AcW/ansible_modlib.zip/ansible/module_utils/basic.py\", line 386, in remove_values\r\n  File \"/tmp/ansible_o26AcW/ansible_modlib.zip/ansible/module_utils/basic.py\", line 399, in remove_values\r\nTypeError: Value of unknown type: <class 'ansible.module_utils.netcli.Command'>, delete bootflash:rr1-n35-r09-x32sp-1a.conf\r\n\r\nfatal: [rr1-n35-r09-x32sp-1a]: FAILED! => {\r\n    \"changed\": false,\r\n    \"failed\": true,\r\n    \"invocation\": {\r\n        \"module_name\": \"nxos_command\"\r\n    },\r\n    \"module_stderr\": \"Traceback (most recent call last):\\n  File \\\"/tmp/ansible_o26AcW/ansible_module_nxos_command.py\\\", line 257, in <module>\\n    main()\\n  File \\\"/tmp/ansible_o26AcW/ansible_module_nxos_command.py\\\", line 238, in main\\n    module.fail_json(msg=str(exc), **exc.kwargs)\\n  File \\\"/tmp/ansible_o26AcW/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 1811, in fail_json\\n  File \\\"/tmp/ansible_o26AcW/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 388, in remove_values\\n  File \\\"/tmp/ansible_o26AcW/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 388, in <genexpr>\\n  File \\\"/tmp/ansible_o26AcW/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 386, in remove_values\\n  File \\\"/tmp/ansible_o26AcW/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 399, in remove_values\\nTypeError: Value of unknown type: <class 'ansible.module_utils.netcli.Command'>, delete bootflash:rr1-n35-r09-x32sp-1a.conf \\n\",\r\n    \"module_stdout\": \"\",\r\n    \"msg\": \"MODULE FAILURE\"\r\n}\r\nAn exception occurred during task execution. The full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_t5uacC/ansible_module_nxos_command.py\", line 257, in <module>\r\n    main()\r\n  File \"/tmp/ansible_t5uacC/ansible_module_nxos_command.py\", line 238, in main\r\n    module.fail_json(msg=str(exc), **exc.kwargs)\r\n  File \"/tmp/ansible_t5uacC/ansible_modlib.zip/ansible/module_utils/basic.py\", line 1811, in fail_json\r\n  File \"/tmp/ansible_t5uacC/ansible_modlib.zip/ansible/module_utils/basic.py\", line 388, in remove_values\r\n  File \"/tmp/ansible_t5uacC/ansible_modlib.zip/ansible/module_utils/basic.py\", line 388, in <genexpr>\r\n  File \"/tmp/ansible_t5uacC/ansible_modlib.zip/ansible/module_utils/basic.py\", line 386, in remove_values\r\n  File \"/tmp/ansible_t5uacC/ansible_modlib.zip/ansible/module_utils/basic.py\", line 399, in remove_values\r\nTypeError: Value of unknown type: <class 'ansible.module_utils.netcli.Command'>, delete bootflash:rr1-n35-r10-x32sp-2a.conf\r\n\r\nfatal: [rr1-n35-r10-x32sp-2a]: FAILED! => {\r\n    \"changed\": false,\r\n    \"failed\": true,\r\n    \"invocation\": {\r\n        \"module_name\": \"nxos_command\"\r\n    },\r\n    \"module_stderr\": \"Traceback (most recent call last):\\n  File \\\"/tmp/ansible_t5uacC/ansible_module_nxos_command.py\\\", line 257, in <module>\\n    main()\\n  File \\\"/tmp/ansible_t5uacC/ansible_module_nxos_command.py\\\", line 238, in main\\n    module.fail_json(msg=str(exc), **exc.kwargs)\\n  File \\\"/tmp/ansible_t5uacC/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 1811, in fail_json\\n  File \\\"/tmp/ansible_t5uacC/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 388, in remove_values\\n  File \\\"/tmp/ansible_t5uacC/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 388, in <genexpr>\\n  File \\\"/tmp/ansible_t5uacC/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 386, in remove_values\\n  File \\\"/tmp/ansible_t5uacC/ansible_modlib.zip/ansible/module_utils/basic.py\\\", line 399, in remove_values\\nTypeError: Value of unknown type: <class 'ansible.module_utils.netcli.Command'>, delete bootflash:rr1-n35-r10-x32sp-2a.conf \\n\",\r\n    \"module_stdout\": \"\",\r\n    \"msg\": \"MODULE FAILURE\"\r\n}\r\n        to retry, use: --limit @/home/emarq/Solutions.Network.Automation/MAS/Ansible/cisco/nexus/nexusbaseconfig.retry\r\n\r\nPLAY RECAP *********************************************************************\r\nrr1-n35-r09-x32sp-1a       : ok=16   changed=15   unreachable=0    failed=1\r\nrr1-n35-r10-x32sp-2a       : ok=16   changed=15   unreachable=0    failed=1\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/265556158","html_url":"https://github.com/ansible/ansible-modules-core/issues/5495#issuecomment-265556158","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5495","id":265556158,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","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":"2016-12-07T19:58:46Z","updated_at":"2016-12-07T19:58:46Z","body":"This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible\n\nPlease read through the <a href=\"http://docs.ansible.com/ansible/dev_guide/repomerge.html#move-issues-and-prs-to-new-repo\">repomerge</a> page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.\n\n<!-- boilerplate: repomerge -->"}}
{"actor":{"display_login":"ansibot"}}