Skip to content
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

Error running "show interfaces" #42

Open
BarrieAlmond opened this issue Nov 19, 2021 · 0 comments
Open

Error running "show interfaces" #42

BarrieAlmond opened this issue Nov 19, 2021 · 0 comments

Comments

@BarrieAlmond
Copy link

SUMMARY

When using os6_command to run a basic "show interfaces" command, the module returns an error although the output indicates that the command completed successfully. I suspect that the presence of the word "error" in the output (because of interface error counters) is causing the command to fail.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

os6_command

ANSIBLE VERSION
ansible 2.10.11
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/username/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/username/.local/lib/python3.8/site-packages/ansible
  executable location = /home/username/.local/bin/ansible
  python version = 3.8.10 (default, Sep 28 2021, 16:10:42) [GCC 9.3.0]
COLLECTION VERSION
# /home/username/.ansible/collections/ansible_collections
Collection  Version
----------- -------
dellemc.os6 1.0.7

# /home/username/.local/lib/python3.8/site-packages/ansible_collections
Collection  Version
----------- -------
dellemc.os6 1.0.7
CONFIGURATION
(no output)
OS / ENVIRONMENT

Dell N2200 series switches running OS 6.7.1.1

STEPS TO REPRODUCE
    - name: Get interfaces
      dellemc.os6.os6_command:
        commands: show interfaces
EXPECTED RESULTS

Command completing successfully, with the command output returned as JSON

ACTUAL RESULTS
fatal: [SWITCHNAME]: FAILED! => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python3"
    },
    "changed": false,
    "invocation": {
        "module_args": {
            "commands": [
                "show interfaces"
            ],
            "interval": 1,
            "match": "all",
            "provider": null,
            "retries": 10,
            "wait_for": null
        }
    },
    "msg": ".................... FALSE\r\nErr-disable cause.............................. none\r\nForward-Error-Correction....................... inherit\r\nPhysical FEC status............................ FEC Disabled\r\nMTU size....................................... 1518\r\nP",
    "rc": -32603
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant