New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting exception while trying to configure onyx_mlag_vip on onyx switches #49612

Open
samerd opened this Issue Dec 6, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@samerd
Contributor

samerd commented Dec 6, 2018

SUMMARY

When trying to configure mlag vip on mellanox network devices we got an exception
onyx version: 3.6.8160

ISSUE TYPE
  • Bug Report
COMPONENT NAME

onyx_mlag_vip

ANSIBLE VERSION
ansible 2.7.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE
- name: configure MLAG-CLUSTER mlag-vip 
  onyx_mlag_vip:  
    ipaddress: 10.143.33.151/24
    group_name: academy-cluster-a
    mac_address: 00:00:5E:00:01:01
EXPECTED RESULTS

mlag-vip configured successfully

ACTUAL RESULTS
ANSIBLE  ON MLAG TOPOLOGY

MLAG CLUSTER  FEATURE IS NOT COMPLETED  , 

MLAG feature is completed only on the first SPINE spine 3 , not completed on the other spine  , SPINE 4

<mlnx-spine4a> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-local-18536HfY5F0/ansible-tmp-1543999681.83-141273628147605/AnsiballZ_onyx_mlag_vip.py && sleep 0'
<mlnx-spine4a> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-18536HfY5F0/ansible-tmp-1543999681.83-141273628147605/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-local-18536HfY5F0/ansible-tmp-1543999681.83-141273628147605/AnsiballZ_onyx_mlag_vip.py", line 113, in <module>
    _ansiballz_main()
  File "/root/.ansible/tmp/ansible-local-18536HfY5F0/ansible-tmp-1543999681.83-141273628147605/AnsiballZ_onyx_mlag_vip.py", line 105, in _ansiballz_main
    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File "/root/.ansible/tmp/ansible-local-18536HfY5F0/ansible-tmp-1543999681.83-141273628147605/AnsiballZ_onyx_mlag_vip.py", line 48, in invoke_module
    imp.load_module('__main__', mod, module, MOD_DESC)
  File "/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/__main__.py", line 179, in <module>
  File "/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/__main__.py", line 175, in main
  File "/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/ansible_onyx_mlag_vip_payload.zip/ansible/module_utils/network/onyx/onyx.py", line 249, in main
  File "/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/ansible_onyx_mlag_vip_payload.zip/ansible/module_utils/network/onyx/onyx.py", line 229, in run
  File "/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/__main__.py", line 131, in generate_commands
  File "/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/__main__.py", line 149, in _generate_mlag_vip_cmds
AttributeError: 'NoneType' object has no attribute 'split'

fatal: [mlnx-spine4a]: FAILED! => {
    "changed": false,
    "module_stderr": "Traceback (most recent call last):\n  File \"/root/.ansible/tmp/ansible-local-18536HfY5F0/ansible-tmp-1543999681.83-141273628147605/AnsiballZ_onyx_mlag_vip.py\", line 113, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-local-18536HfY5F0/ansible-tmp-1543999681.83-141273628147605/AnsiballZ_onyx_mlag_vip.py\", line 105, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-local-18536HfY5F0/ansible-tmp-1543999681.83-141273628147605/AnsiballZ_onyx_mlag_vip.py\", line 48, in invoke_module\n    imp.load_module('__main__', mod, module, MOD_DESC)\n  File \"/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/__main__.py\", line 179, in <module>\n  File \"/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/__main__.py\", line 175, in main\n  File \"/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/ansible_onyx_mlag_vip_payload.zip/ansible/module_utils/network/onyx/onyx.py\", line 249, in main\n  File \"/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/ansible_onyx_mlag_vip_payload.zip/ansible/module_utils/network/onyx/onyx.py\", line 229, in run\n  File \"/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/__main__.py\", line 131, in generate_commands\n  File \"/tmp/ansible_onyx_mlag_vip_payload_sK7bzQ/__main__.py\", line 149, in _generate_mlag_vip_cmds\nAttributeError: 'NoneType' object has no attribute 'split'\n",
    "module_stdout": "",
    "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error",
    "rc": 1
}
        to retry, use: --limit @/etc/ansible/spine_leaves_mlag_onyx/main.retry

@ansibot

This comment has been minimized.

Contributor

ansibot commented Dec 6, 2018

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot

This comment has been minimized.

Contributor

ansibot commented Dec 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment