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

cisco.ios.ios_logging_global module is NOT idempotent, so isn't behaving correctly #1072

Open
JuanBH255 opened this issue May 10, 2024 · 0 comments
Assignees

Comments

@JuanBH255
Copy link

JuanBH255 commented May 10, 2024

SUMMARY

cisco.ios.ios_logging_global module is NOT idempotent, so isn't behaving correctly.
Every time I rerun the playbook it looks as if it's not already created, and a change is made.

ISSUE TYPE
  • Bug Report
COMPONENT NAME
ANSIBLE VERSION
ansible [core 2.16.6]
COLLECTION VERSION
cisco.ios  5.3.0
CONFIGURATION
CONFIG_FILE() = /projects/dmz_configuration_automation/ansible.cfg
DEFAULT_GATHERING(/projects/dmz_configuration_automation/ansible.cfg) = explicit
DEFAULT_HOST_LIST(/projects/dmz_configuration_automation/ansible.cfg) = ['/projects/dmz_configuration_automation/inv.yml']
DEFAULT_STDOUT_CALLBACK(/projects/dmz_configuration_automation/ansible.cfg) = debug
DISPLAY_SKIPPED_HOSTS(/projects/dmz_configuration_automation/ansible.cfg) = False
HOST_KEY_CHECKING(/projects/dmz_configuration_automation/ansible.cfg) = False
RETRY_FILES_ENABLED(/projects/dmz_configuration_automation/ansible.cfg) = False
OS / ENVIRONMENT

Cisco C8500-12X
Cisco IOS XE Software, Version 17.03.04a

STEPS TO REPRODUCE
    - name: Logging
      cisco.ios.ios_logging_global:
        config:
          buffered:
            severity: debugging
            size: 10000
          hosts:
            - hostname: 10.1.1.2
        state: merged
      tags: logging
EXPECTED RESULTS

No change
ok=1 changed=0

ACTUAL RESULTS
TASK [Logging] *********************************************************************************************************************************task path: /projects/dmz_configuration_automation/test/test.yml:26
changed: [npdzart03] => {
    "after": {
        "buffered": {
            "size": 10000
        },
        "hosts": [
            {
                "filtered": true,
                "host": "1.1.1.1"
            },
            {
                "host": "10.1.1.2"
            }
        ],
        "source_interface": [
            {
                "interface": "GigabitEthernet0",
                "vrf": "Mgmt-intf"
            }
        ]
    },
    "before": {
        "buffered": {
            "size": 10000
        },
        "hosts": [
            {
                "filtered": true,
                "host": "1.1.1.1"
            },
            {
                "host": "10.1.1.2"
            }
        ],
        "source_interface": [
            {
                "interface": "GigabitEthernet0",
                "vrf": "Mgmt-intf"
            }
        ]
    },
    "changed": true,
    "commands": [
        "logging buffered 10000 debugging"
    ],
    "invocation": {
        "module_args": {
            "config": {
                "buffered": {
                    "discriminator": null,
                    "filtered": null,
                    "severity": "debugging",
                    "size": 10000,
                    "xml": null
                },
                "buginf": null,
                "cns_events": null,
                "console": null,
                "count": null,
                "delimiter": null,
                "discriminator": null,
                "dmvpn": null,
                "esm": null,
                "exception": null,
                "facility": null,
                "filter": null,
                "history": null,
                "hosts": [
                    {
                        "discriminator": null,
                        "filtered": null,
                        "host": "10.1.1.2",
                        "hostname": "10.1.1.2",
                        "ipv6": null,
                        "sequence_num_session": null,
                        "session_id": null,
                        "stream": null,
                        "transport": null,
                        "vrf": null,
                        "xml": null
                    }
                ],
                "logging_on": null,
                "message_counter": null,
                "monitor": null,
                "origin_id": null,
                "persistent": null,
                "policy_firewall": null,
                "queue_limit": null,
                "rate_limit": null,
                "reload": null,
                "server_arp": null,
                "snmp_trap": null,
                "source_interface": null,
                "trap": null,
                "userinfo": null
            },
            "running_config": null,
            "state": "merged"
        }
    }
}
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/vars/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/vars/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/creds.yml"
Read vars_file 'creds.yml'
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/vars/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/vars/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/creds.yml"
Read vars_file 'creds.yml'
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/vars/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/vars/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/creds.yml"
Read vars_file 'creds.yml'
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/vars/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/vars/creds.yml"
looking for "creds.yml" at "/projects/dmz_configuration_automation/test/creds.yml"
Read vars_file 'creds.yml'

PLAY RECAP *************************************************************************************************************************************
npdzart03                  : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
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

2 participants