Problems with NXOS Modules in Ansible 2.2

45 views
Skip to first unread message

Steven Carter

unread,
Sep 16, 2016, 12:38:08 PM9/16/16
to Ansible Project
When I run: 

   - name: Configure the port channels for the VPCs
      nxos_portchannel:
        provider: "{{ cli }}"
        group: 99
        members: ['Ethernet1/1/1']
        mode: 'active'
        state: present
I get:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NetworkModule' object has no attribute 'configure'
fatal: [192.133.148.128]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_X4FZEp/ansible_module_nxos_portchannel.py\", line 733, in <module>\n    main()\n  File \"/tmp/ansible_X4FZEp/ansible_module_nxos_portchannel.py\", line 714, in main\n    output = execute_config_command(cmds, module)\n  File \"/tmp/ansible_X4FZEp/ansible_module_nxos_portchannel.py\", line 328, in execute_config_command\n    output = module.configure(commands)\nAttributeError: 'NetworkModule' object has no attribute 'configure'\n", "module_stdout": "", "msg": "MODULE FAILURE"}

It seems like I have some dependency problems, but I cannot figure them out.  Anyone have any ideas?

Thanks,

Steven.

Peter Sprygada

unread,
Sep 16, 2016, 2:43:38 PM9/16/16
to ansible...@googlegroups.com
That looks like a bug in the module... would you mind filing an issue at http://github.com/ansible/ansible-modules/core with this information so we can track it?

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6a0b9804-4864-4a41-ac06-bba962bcb6ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steven Carter

unread,
Sep 17, 2016, 1:02:42 PM9/17/16
to Ansible Project
I submitted the error for nxos_portchannel and a similar error for nxos_command.

Thanks,

Steven.


On Friday, September 16, 2016 at 2:43:38 PM UTC-4, Peter Sprygada wrote:
That looks like a bug in the module... would you mind filing an issue at http://github.com/ansible/ansible-modules/core with this information so we can track it?
On Fri, Sep 16, 2016 at 12:38 PM, Steven Carter <ste...@smcarter.com> wrote:
When I run: 

   - name: Configure the port channels for the VPCs
      nxos_portchannel:
        provider: "{{ cli }}"
        group: 99
        members: ['Ethernet1/1/1']
        mode: 'active'
        state: present
I get:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NetworkModule' object has no attribute 'configure'
fatal: [192.133.148.128]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Traceback (most recent call last):\n  File \"/tmp/ansible_X4FZEp/ansible_module_nxos_portchannel.py\", line 733, in <module>\n    main()\n  File \"/tmp/ansible_X4FZEp/ansible_module_nxos_portchannel.py\", line 714, in main\n    output = execute_config_command(cmds, module)\n  File \"/tmp/ansible_X4FZEp/ansible_module_nxos_portchannel.py\", line 328, in execute_config_command\n    output = module.configure(commands)\nAttributeError: 'NetworkModule' object has no attribute 'configure'\n", "module_stdout": "", "msg": "MODULE FAILURE"}

It seems like I have some dependency problems, but I cannot figure them out.  Anyone have any ideas?

Thanks,

Steven.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages