ansible-collections / cisco.nxos

Ansible Network Collection for Cisco NXOS
GNU General Public License v3.0
115 stars 108 forks source link

cisco.nxos.nxos_interfaces module does not enable/disable interfaces on cisco Nexus3000 C31128PQ-10GE Chassis #665

Closed digitalfiend64 closed 1 year ago

digitalfiend64 commented 1 year ago
SUMMARY

cisco.nxos.nxos_interfaces module does not enable/disable interfaces on cisco Nexus3000 C31128PQ-10GE Chassis (Nexus 9000 Series) version 7.0(3)I7(6) and cisco Nexus3000 C3232C Chassis (Nexus 9000 Series) version 7.0(3)I7(4).

ISSUE TYPE
COMPONENT NAME

cisco.nxos.nxos_interfaces v4.1.0

ANSIBLE VERSION

Ansible v2.9.27 Ansible v2.12.6

COLLECTION VERSION
# /home/<username>/.ansible/collections/ansible_collections
Collection Version
---------- -------
cisco.nxos 4.1.0
CONFIGURATION
DEFAULT_LOAD_CALLBACK_PLUGINS(/home/<username>/.ansible.cfg) = True
DEFAULT_STDOUT_CALLBACK(/home/<username>/.ansible.cfg) = yaml
DEFAULT_TIMEOUT(/home/<username>/.ansible.cfg) = 120
DEPRECATION_WARNINGS(/home/<username>/.ansible.cfg) = False
GALAXY_IGNORE_CERTS(/home/<username>/.ansible.cfg) = True
GALAXY_SERVER_LIST(/home/<username>/.ansible.cfg) = ['inbound_yeti_repo', 'published_repo', 'rh-certified_repo']
HOST_KEY_CHECKING(/home/<username>/.ansible.cfg) = False
PARAMIKO_HOST_KEY_AUTO_ADD(/home/<username>/.ansible.cfg) = True
PERSISTENT_COMMAND_TIMEOUT(/home/<username>/.ansible.cfg) = 300
PERSISTENT_CONNECT_TIMEOUT(/home/<username>/.ansible.cfg) = 120
RETRY_FILES_ENABLED(/home/<username>/.ansible.cfg) = False
OS / ENVIRONMENT

cisco Nexus3000 C31128PQ-10GE Chassis (Nexus 9000 Series) version 7.0(3)I7(6)

cisco Nexus3000 C3232C Chassis (Nexus 9000 Series) version 7.0(3)I7(4)

STEPS TO REPRODUCE
  1. Run the Interface Update Implementation playbook
---
- name: Interface Update Implementation
  hosts: all
  gather_facts: no
  tasks:
  - name: Update Interface Status
    cisco.ios.ios_l3_interfaces:
      config:
      - name: Vlan50
        ipv4:
        - address: 192.168.1.3/31
          dhcp:
            enable: false
            hostname: some_string
          pool: some_string
          secondary: true
      state: merged
EXPECTED RESULTS

Step #1 should shut/no shut interface

ACTUAL RESULTS

Step #1 Interface does not shut/no shut


[username@YETI_RHEL8 yeti-modular-network-services]$ ansible-playbook -i staging/interfaces/service_activities/cable_testing/create/hosts_sandbox.yml test-playbook.yml -l 31128-11 -e @/opt/yeti/yeti_secrets.yml -e @~/local_secrets.yml --ask-vault-pass -vvv
ansible-playbook [core 2.12.6]
  config file = /home/username/.ansible.cfg
  configured module search path = ['/home/username/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
  ansible collection location = /home/username/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible-playbook
  python version = 3.8.12 (default, Sep 16 2021, 10:46:05) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)]
  jinja version = 3.0.2
  libyaml = True
Using /home/username/.ansible.cfg as config file
Vault password:
host_list declined parsing /home/username/gitlab/playbooks/yeti-modular-network-services/staging/interfaces/service_activities/cable_testing/create/hosts_sandbox.yml as it did not pass its verify_file() method
script declined parsing /home/username/gitlab/playbooks/yeti-modular-network-services/staging/interfaces/service_activities/cable_testing/create/hosts_sandbox.yml as it did not pass its verify_file() method
Parsed /home/username/gitlab/playbooks/yeti-modular-network-services/staging/interfaces/service_activities/cable_testing/create/hosts_sandbox.yml inventory source with yaml plugin
redirecting (type: action) cisco.nxos.nxos_interfaces to cisco.nxos.nxos
redirecting (type: callback) ansible.builtin.yaml to community.general.yaml
redirecting (type: callback) ansible.builtin.yaml to community.general.yaml
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.

PLAYBOOK: test-playbook.yml *********************************************************************************************************
1 plays in test-playbook.yml

PLAY [Interface Update Implementation] **********************************************************************************************
META: ran handlers
redirecting (type: action) cisco.nxos.nxos_interfaces to cisco.nxos.nxos

TASK [Update Interface Status] ******************************************************************************************************
task path: /home/username/gitlab/playbooks/yeti-modular-network-services/test-playbook.yml:6
[WARNING]: ansible-pylibssh not installed, falling back to paramiko
redirecting (type: action) cisco.nxos.nxos_interfaces to cisco.nxos.nxos
redirecting (type: action) cisco.nxos.nxos_interfaces to cisco.nxos.nxos
changed: [31128-11] => changed=true
  after:
  - description: Interface_Description
    mtu: '9216'
    name: Ethernet1/29
    speed: '1000'
  - description: Interface_Description
    mtu: '9216'
    name: Ethernet1/30
    speed: '1000'
  commands:
  - interface Ethernet1/29
  - duplex auto
  - no ip forward
  - interface Ethernet1/30
  - duplex auto
  - no ip forward
  invocation:
    module_args:
      config:
      - description: Interface_Description
        duplex: auto
        enabled: true
        fabric_forwarding_anycast_gateway: null
        ip_forward: false
        mode: layer3
        mtu: '9216'
        name: Ethernet1/29
        speed: '1000'
      - description: Interface_Description
        duplex: auto
        enabled: true
        fabric_forwarding_anycast_gateway: null
        ip_forward: false
        mode: layer3
        mtu: '9216'
        name: Ethernet1/30
        speed: '1000'
      running_config: null
      state: merged
META: ran handlers
META: ran handlers

PLAY RECAP **************************************************************************************************************************
31128-11                   : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
NilashishC commented 1 year ago

@digitalfiend64 This issue was fixed with v4.3.0 of cisco.nxos. Could you please check if upgrading the collection solves this problem? Thank you.

Ref: https://github.com/ansible-collections/cisco.nxos/pull/652

NilashishC commented 1 year ago

@digitalfiend64 Just checking in to see if you have any more updates on this one.

NilashishC commented 1 year ago

@digitalfiend64 Gentle reminder. Please let me know if this issue is resolved now, so that I can close it. Thank you.

NilashishC commented 1 year ago

@digitalfiend64 Since there's been no activity on this issue, I'm closing it for the time being. Please feel free to re-open it or reach out to me, if you would like me to investigate this further.

Thank you!