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

"parameters are mutually exclusive: set|route_policy|inheritance_disable found in config -> neighbors -> address_family -> default_originate" #497

Open
petonet opened this issue Jul 9, 2024 · 0 comments
Assignees
Labels
bug This issue/PR relates to a bug.

Comments

@petonet
Copy link

petonet commented Jul 9, 2024

SUMMARY

I got following error when I tried to gather all facts from the IOS XR platform.
"parameters are mutually exclusive: set|route_policy|inheritance_disable found in config -> neighbors -> address_family -> default_originate"

Specifically the problem was with the following version of IOS XR:

#show version
Tue Jul 9 13:38:36.709 CEST
Cisco IOS XR Software, Version 7.1.3
Copyright (c) 2013-2020 by Cisco Systems, Inc.

Build Information:
Built By : gopalk2
Built On : Thu Nov 26 10:51:48 PST 2020
Built Host : iox-ucs-027
Workspace : /auto/srcarchive17/prod/7.1.3/asr9k-x64/ws
Version : 7.1.3
Location : /opt/cisco/XR/packages/
Label : 7.1.3

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ios_xr.get_facts

ANSIBLE VERSION
  - ansible [core 2.15.12]
  - '  config file = None'
  - '  configured module search path = [''/runner/.ansible/plugins/modules'', ''/usr/share/ansible/plugins/modules'']'
  - '  ansible python module location = /usr/local/lib/python3.9/site-packages/ansible'
  - '  ansible collection location = /runner/requirements_collections:/runner/.ansible/collections:/usr/share/ansible/collections'
  - '  executable location = /usr/local/bin/ansible'
  - '  python version = 3.9.19 (main, Jun 11 2024, 00:00:00) [GCC 11.4.1 20231218 (Red Hat 11.4.1-3)] (/usr/bin/python3)'
  - '  jinja version = 3.1.4'
  - '  libyaml = True'

COLLECTION VERSION
  - '# /usr/share/ansible/collections/ansible_collections'
  - Collection              Version
  - '----------------------- -------'
  - 'amazon.aws              8.1.0  '
  - 'ansible.netcommon       7.0.0  '
  - 'ansible.posix           1.5.4  '
  - 'ansible.utils           4.1.0  '
  - 'ansible.windows         2.4.0  '
  - 'awx.awx                 24.6.1 '
  - 'azure.azcollection      2.6.0  '
  - 'cisco.aci               2.10.0 '
  - 'cisco.ios               9.0.0  '
  - 'cisco.iosxr             10.0.0 '
  - 'cisco.ise               2.9.2  '
  - 'cisco.meraki            2.18.1 '
  - 'cisco.nxos              9.0.0  '
  - 'community.vmware        4.4.0  '
  - 'fortinet.fortimanager   2.5.0  '
  - 'fortinet.fortios        2.3.6  '
  - 'google.cloud            1.3.0  '
  - 'juniper.device          1.0.5  '
  - 'junipernetworks.junos   9.0.0  '
  - 'kubernetes.core         5.0.0  '
  - 'lvrfrc87.git_acp        2.2.0  '
  - 'netbox.netbox           3.19.1 '
  - 'openstack.cloud         2.2.0  '
  - 'ovirt.ovirt             3.2.0  '
  - 'redhatinsights.insights 1.3.0  '
  - 'theforeman.foreman      4.0.0  '
CONFIGURATION

  - "\e[0;33mANSIBLE_FORCE_COLOR(env: ANSIBLE_FORCE_COLOR) = True\e[0m"
  - "\e[0;33mCOLLECTIONS_PATHS(env: ANSIBLE_COLLECTIONS_PATH) = ['/runner/requirements_collections', '/runner/.ansible/collections', '/usr/share/ansible/collections']\e[0m"
  - "\e[0;33mCONFIG_FILE() = None\e[0m"
  - "\e[0;33mDEFAULT_CALLBACK_PLUGIN_PATH(env: ANSIBLE_CALLBACK_PLUGINS) = ['/usr/local/lib/python3.9/site-packages/ansible_runner/display_callback/callback']\e[0m"
  - "\e[0;33mDEFAULT_ROLES_PATH(env: ANSIBLE_ROLES_PATH) = ['/runner/requirements_roles', '/runner/.ansible/roles', '/usr/share/ansible/roles', '/etc/ansible/roles']\e[0m"
  - "\e[0;33mDEFAULT_STDOUT_CALLBACK(env: ANSIBLE_STDOUT_CALLBACK) = awx_display\e[0m"
  - "\e[0;33mHOST_KEY_CHECKING(env: ANSIBLE_HOST_KEY_CHECKING) = False\e[0m"
  - "\e[0;33mINVENTORY_UNPARSED_IS_FAILED(env: ANSIBLE_INVENTORY_UNPARSED_FAILED) = True\e[0m"
  - "\e[0;33mRETRY_FILES_ENABLED(env: ANSIBLE_RETRY_FILES_ENABLED) = False\e[0m"
OS / ENVIRONMENT
STEPS TO REPRODUCE
- name: Gather all  facts from cisco XR
  cisco.iosxr.iosxr_facts:
    available_network_resources: yes
    gather_subset: all 
    gather_network_resources:
      - "!ospfv3"
  register: results
  tags: 
    - get_cisco_xr_detail
EXPECTED RESULTS

I expect to get fact values from device. If there is some value missing or this value should be skipped.

ACTUAL RESULTS

Affected devices shows error and gets no data


@rohitthakur2590 rohitthakur2590 added the bug This issue/PR relates to a bug. label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants