{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/28516","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/28516/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/28516/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/28516/events","html_url":"https://github.com/ansible/ansible/issues/28516","id":252018466,"number":28516,"title":"(P1) nxos_igmp_interface: module errors out for cli ","user":{"login":"rahushen","id":859259,"avatar_url":"https://avatars0.githubusercontent.com/u/859259?v=4","gravatar_id":"","url":"https://api.github.com/users/rahushen","html_url":"https://github.com/rahushen","followers_url":"https://api.github.com/users/rahushen/followers","following_url":"https://api.github.com/users/rahushen/following{/other_user}","gists_url":"https://api.github.com/users/rahushen/gists{/gist_id}","starred_url":"https://api.github.com/users/rahushen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahushen/subscriptions","organizations_url":"https://api.github.com/users/rahushen/orgs","repos_url":"https://api.github.com/users/rahushen/repos","events_url":"https://api.github.com/users/rahushen/events{/privacy}","received_events_url":"https://api.github.com/users/rahushen/received_events","type":"User","site_admin":false},"labels":[{"id":562292166,"url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.4","name":"affects_2.4","color":"ededed","default":false},{"id":48276055,"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":496359346,"url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":503572087,"url":"https://api.github.com/repos/ansible/ansible/labels/needs_triage","name":"needs_triage","color":"0e8a16","default":false},{"id":339653091,"url":"https://api.github.com/repos/ansible/ansible/labels/networking","name":"networking","color":"c7def8","default":false},{"id":669761792,"url":"https://api.github.com/repos/ansible/ansible/labels/support:network","name":"support:network","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-22T16:36:32Z","updated_at":"2017-08-22T16:37:07Z","closed_at":null,"body":"<!---\r\nVerify first that your issue/request is not already reported on GitHub.\r\nAlso test if the latest release, and master branch are affected too.\r\n-->\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 module/plugin/task/feature -->\r\n- nxos_igmp_interface\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.4.0 (devel b3a90253fc) last updated 2017/08/22 10:29:18 (GMT -400)\r\n  config file = None\r\n  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']\r\n  ansible python module location = /root/agents-ci/ansible/lib/ansible\r\n  executable location = /root/agents-ci/ansible/bin/ansible\r\n  python version = 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4]\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\nAlso mention the specific version of what you are trying to control,\r\ne.g. if this is a network bug the version of firmware on the network device.\r\n-->\r\nUbuntu 14.04\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nModule errors with traceback for `cli`\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor 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\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\n- name: \"Enable feature PIM\"\r\n  nxos_feature:\r\n    feature: pim\r\n    state: enabled\r\n    provider: \"{{ connection }}\"\r\n  ignore_errors: yes\r\n\r\n- block:\r\n\r\n  - name: put interface in L3 and enable PIM\r\n    nxos_config:\r\n      commands:\r\n        - no switchport\r\n        - ip pim sparse-mode\r\n      parents:\r\n        - \"interface {{ intname }}\"\r\n      match: none\r\n      provider: \"{{ connection }}\"\r\n\r\n  - name: Configure igmp interface with default value\r\n    nxos_igmp_interface: &default\r\n      interface: \"{{ intname }}\"\r\n      state: default\r\n      provider: \"{{ connection }}\"\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\nExpected module to not error out\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\nmodule errors out with tracebacks\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nTASK [nxos_igmp_interface : Configure igmp interface with default value] **********************************************************************************\r\ntask path: /root/agents-ci/ansible/test/integration/targets/nxos_igmp_interface/tests/common/sanity.yaml:26\r\n<n9k-110.cisco.com> connection transport is cli\r\n<n9k-110.cisco.com> using connection plugin network_cli\r\n<n9k-110.cisco.com> socket_path: /root/.ansible/pc/3747b7341f\r\nUsing module file /root/agents-ci/ansible/lib/ansible/modules/network/nxos/nxos_igmp_interface.py\r\n<n9k-110.cisco.com> ESTABLISH LOCAL CONNECTION FOR USER: root\r\n<n9k-110.cisco.com> EXEC /bin/sh -c 'echo ~ && sleep 0'\r\n<n9k-110.cisco.com> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo /root/.ansible/tmp/ansible-tmp-1503412190.68-270476304915912 `\" && echo ansible-tmp-1503412190.68-270476304915912=\"` echo /root/.ansible/tmp/ansible-tmp-1503412190.68-270476304915912 `\" ) && sleep 0'\r\n<n9k-110.cisco.com> PUT /tmp/tmpDBeP34 TO /root/.ansible/tmp/ansible-tmp-1503412190.68-270476304915912/nxos_igmp_interface.py\r\n<n9k-110.cisco.com> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1503412190.68-270476304915912/ /root/.ansible/tmp/ansible-tmp-1503412190.68-270476304915912/nxos_igmp_interface.py && sleep 0'\r\n<n9k-110.cisco.com> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1503412190.68-270476304915912/nxos_igmp_interface.py; rm -rf \"/root/.ansible/tmp/ansible-tmp-1503412190.68-270476304915912/\" > /dev/null 2>&1 && sleep 0'\r\nThe full traceback is:\r\nTraceback (most recent call last):\r\n  File \"/tmp/ansible_5eYN_h/ansible_module_nxos_igmp_interface.py\", line 697, in <module>\r\n    main()\r\n  File \"/tmp/ansible_5eYN_h/ansible_module_nxos_igmp_interface.py\", line 558, in main\r\n    if get_interface_mode(interface, intf_type, module) == 'layer2':\r\n  File \"/tmp/ansible_5eYN_h/ansible_module_nxos_igmp_interface.py\", line 263, in get_interface_mode\r\n    interface_table = body['TABLE_interface']['ROW_interface'] \r\nTypeError: string indices must be integers, not str \r\nFAILED! => {\r\n    \"changed\": false, \r\n    \"failed\": true, \r\n    \"module_stderr\": \"Traceback (most recent call last):\\n  File \\\"/tmp/ansible_5eYN_h/ansible_module_nxos_igmp_interface.py\\\", line 697, in <module>\\n    main()\\n  File \\\"/tmp/ansible_5eYN_h/ansible_module_nxos_igmp_interface.py\\\", line 558, in main\\n    if get_interface_mode(interface, intf_type, module) == 'layer2':\\n  File \\\"/tmp/ansible_5eYN_h/ansible_module_nxos_igmp_interface.py\\\", line 263, in get_interface_mode\\n    interface_table = body['TABLE_interface']['ROW_interface']\\nTypeError: string indices must be integers, not str\\n\", \r\n    \"module_stdout\": \"\", \r\n    \"msg\": \"MODULE FAILURE\", \r\n    \"rc\": 0\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/324082743","html_url":"https://github.com/ansible/ansible/issues/28516#issuecomment-324082743","issue_url":"https://api.github.com/repos/ansible/ansible/issues/28516","id":324082743,"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-08-22T16:37:06Z","updated_at":"2017-08-22T16:37:06Z","body":"cc @GGabriele @jedelman8 @mikewiebe @privateip @rcarrillocruz @trishnaguha\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: notify --->"}}
{"actor":{"display_login":"ansibot"}}