aruba / aoscx-ansible-collection

Ansible collections for AOS-CX switches 
43 stars 23 forks source link

aoscx_facts lldp_neighbors errors #90

Open amysonmisc opened 6 months ago

amysonmisc commented 6 months ago

Hello,

I updated the arubanetworks.aoscx collection to 4.3.1. I got an error "fatal: [aoscx_1]: FAILED! => {"changed": false, "msg": "Network resources: \"PARAMETER ERROR: Wrong module name. LLDPNeighbor doesn't exist\""}"

-vrfs, - vlans work, only lldp_neighbors gives me an error.

collections:

alagoutte commented 6 months ago

Hi,

Do you have check if you have the last pyaoscx release ? (2.5.1) (you can check with pip list)

amysonmisc commented 6 months ago

Hello,

I just checked the version.

pyaoscx 2.5.1

thank you

tchiapuziowong commented 6 months ago

@amysonmisc can you share the platform and firmware version you're using?

amysonmisc commented 6 months ago

@tchiapuziowong here you go.

We have both 6200F and 6300F and ran into the same issue.

JL728A 6200F with ML.10.10.1080 JL665A 6300F with FL.10.10.1071

thank you

alagoutte commented 6 months ago

@tchiapuziowong here you go.

We have both 6200F and 6300F and ran into the same issue.

JL728A 6200F with ML.10.10.1080 JL665A 6300F with FL.10.10.1071

thank you

Hi, i try with 6300 with 10.10.x and i get the same error when using pyaoscx 2.5.0 but work when switch to 2.5.1 can you check the pyaoscx version ? (do you are using venv ?)

amysonmisc commented 6 months ago

@alagoutte

I switch 1.0.0 and 2.5.1 back and forth (1.0.0 for NAPALM). Yes, I am WSL.

Currently on 2.5.1, still the same error.

pip3 list | grep pya pyaoscx 2.5.1

tchiapuziowong commented 4 months ago

Hi @amysonmisc -

I'm unable to produce the error you're referring to - here are my environment details and the example playbook I use:

ansible-control-machine$ansible --version
ansible [core 2.13.13]
  config file = /ws/chiapuzi/tme/sandbox/github_issues_cx/iss_90/ansible.cfg
  configured module search path = ['/users/chiapuzi/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /ws/chiapuzi/tme/sandbox/3_8_ansible/lib/python3.8/site-packages/ansible
  ansible collection location = /users/chiapuzi/.ansible/collections:/usr/share/ansible/collections
  executable location = /ws/chiapuzi/tme/sandbox/3_8_ansible/bin/ansible
  python version = 3.8.10 (default, Jan 26 2022, 13:25:21) [GCC 5.4.0 20160609]
  jinja version = 3.1.3
  libyaml = True
(3_8_ansible) ansible-control-machine$cat facts_collections.yml
- hosts: all
  name: https://github.com/aruba/aoscx-ansible-collection/issues/90
  collections:
    - arubanetworks.aoscx
  gather_facts: False
  tasks:
    - name: Get LLDP on VSF stack
      aoscx_facts:
        gather_network_resources:
          - lldp_neighbors
      register: facts_output
    - name: output facts
      debug:
        var: facts_output.ansible_facts.ansible_network_resources.lldp_neighbors

I'm using a 6200F in VSF stack with ML.10.10.1080

tchiapuziowong commented 4 months ago

@amysonmisc can you ensure the ansible_python_interpreter variable isn't defined in your playbook & inventory? to validate where your pyaoscx package is installed execute pip show pyaoscx and please provide your ansible --version output as well