Skip to content

Unreachable device log message #53

Description

@rogerscuall

During the execution of the playbook vxlan.yaml I'm getting the message:

TASK [cisco.nac_dc_vxlan.create : Add NDFC Fabric Devices nac-fabric1] *************************************************************
[WARNING]: Managing fabric switches can take a while.  Please be patient...
fatal: [nac-fabric1]: FAILED! => {"changed": false, "msg": "Switch with IP 10.4.x.20 is not reachable or is not a valid IP"}

This happens during the execution of the task:

- name: Add NDFC Fabric Devices {{ MD_Extended.vxlan.fabric.name }}
  cisco.dcnm.dcnm_inventory:
    fabric: "{{ MD_Extended.vxlan.fabric.name }}"
    config: "{{ vars_common_local.updated_inv_config['updated_inv_list'] }}"
    deploy: false
    save: false
    state: merged
  vars:
    ansible_command_timeout: 3000
    ansible_connect_timeout: 3000
  when: MD_Extended.vxlan.topology.switches | length > 0

In the role cisco.nac_dc_vxlan.create.
I'm unaware from where the call to the switch is happening but:

  • If the call to the switch is sourced from the box where Ansible is running, I can SSH in that switch 10.4.x.20.
  • If the call is then performed form the Nexus Dashboard or Fabric Controller the switch is now managed by it and reachability is ok.
    Running in debug mode I get:
fatal: [nac-fabric1]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "config": [
                {
                    "auth_proto": "MD5",
                    "max_hops": 0,
                    "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                    "preserve_config": false,
                    "role": "spine",
                    "seed_ip": "10.4.x.22",
                    "user_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
                },
                {
                    "auth_proto": "MD5",
                    "max_hops": 0,
                    "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                    "preserve_config": false,
                    "role": "spine",
                    "seed_ip": "10.4.x.24",
                    "user_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
                },
                {
                    "auth_proto": "MD5",
                    "max_hops": 0,
                    "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                    "preserve_config": false,
                    "role": "leaf",
                    "seed_ip": "10.4.x.20",
                    "user_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
                },
                {
                    "auth_proto": "MD5",
                    "max_hops": 0,
                    "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
                    "preserve_config": false,
                    "role": "leaf",
                    "seed_ip": "10.4.x.21",
                    "user_name": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
                }
            ],
            "deploy": false,
            "fabric": "nac-fabric1",
            "query_poap": false,
            "save": false,
            "state": "merged"
        }
    },
    "msg": "Switch with IP 10.4.x.20 is not reachable or is not a valid IP"
}

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions