Closed mbx64 closed 9 months ago
I use na_ontap_login_messages to set the banner via REST in the Cluster scope. It successfully sets the banner, but it always reports changes, even if the banner does not need any changes. So, the module does not seem to be idempotent in this case.
na_ontap_login_messages
$ ansible --version ansible [core 2.15.4] config file = /home/user/.ansible.cfg configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/user/.local/lib/python3.9/site-packages/ansible ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections executable location = /home/user/.local/bin/ansible python version = 3.9.17 (main, Aug 10 2023, 15:11:31) [GCC 8.5.0 20210514 (Red Hat 8.5.0-20)] (/usr/bin/python3) jinja version = 3.1.2 libyaml = True
$ ansible-galaxy collection list # /home/user/.local/lib/python3.9/site-packages/ansible_collections Collection Version ----------------------------- ------- amazon.aws 6.4.0 ansible.netcommon 5.2.0 ansible.posix 1.5.4 ansible.utils 2.11.0 ansible.windows 1.14.0 arista.eos 6.1.0 awx.awx 22.7.0 azure.azcollection 1.17.0 check_point.mgmt 5.1.1 chocolatey.chocolatey 1.5.1 cisco.aci 2.7.0 cisco.asa 4.0.1 cisco.dnac 6.7.4 cisco.intersight 1.0.27 cisco.ios 4.6.1 cisco.iosxr 5.0.3 cisco.ise 2.5.15 cisco.meraki 2.16.0 cisco.mso 2.5.0 cisco.nso 1.0.3 cisco.nxos 4.4.0 cisco.ucs 1.10.0 cloud.common 2.1.4 cloudscale_ch.cloud 2.3.1 community.aws 6.3.0 community.azure 2.0.0 community.ciscosmb 1.0.6 community.crypto 2.15.1 community.digitalocean 1.24.0 community.dns 2.6.1 community.docker 3.4.8 community.fortios 1.0.0 community.general 7.4.0 community.google 1.0.0 community.grafana 1.5.4 community.hashi_vault 5.0.0 community.hrobot 1.8.1 community.libvirt 1.2.0 community.mongodb 1.6.1 community.mysql 3.7.2 community.network 5.0.0 community.okd 2.3.0 community.postgresql 2.4.3 community.proxysql 1.5.1 community.rabbitmq 1.2.3 community.routeros 2.9.0 community.sap 1.0.0 community.sap_libs 1.4.1 community.skydive 1.0.0 community.sops 1.6.5 community.vmware 3.9.0 community.windows 1.13.0 community.zabbix 2.1.0 containers.podman 1.10.3 cyberark.conjur 1.2.0 cyberark.pas 1.0.19 dellemc.enterprise_sonic 2.2.0 dellemc.openmanage 7.6.1 dellemc.powerflex 1.8.0 dellemc.unity 1.7.1 f5networks.f5_modules 1.26.0 fortinet.fortimanager 2.2.1 fortinet.fortios 2.3.2 frr.frr 2.0.2 gluster.gluster 1.0.2 google.cloud 1.2.0 grafana.grafana 2.1.8 hetzner.hcloud 1.16.0 hpe.nimble 1.1.4 ibm.qradar 2.1.0 ibm.spectrum_virtualize 1.12.0 infinidat.infinibox 1.3.12 infoblox.nios_modules 1.5.0 inspur.ispim 1.3.0 inspur.sm 2.3.0 junipernetworks.junos 5.3.0 kubernetes.core 2.4.0 lowlydba.sqlserver 2.2.1 microsoft.ad 1.3.0 netapp.aws 21.7.0 netapp.azure 21.10.0 netapp.cloudmanager 21.22.0 netapp.elementsw 21.7.0 netapp.ontap 22.7.0 netapp.storagegrid 21.11.1 netapp.um_info 21.8.0 netapp_eseries.santricity 1.4.0 netbox.netbox 3.14.0 ngine_io.cloudstack 2.3.0 ngine_io.exoscale 1.1.0 ngine_io.vultr 1.1.3 openstack.cloud 2.1.0 openvswitch.openvswitch 2.1.1 ovirt.ovirt 3.1.3 purestorage.flasharray 1.21.0 purestorage.flashblade 1.13.1 purestorage.fusion 1.6.0 sensu.sensu_go 1.14.0 servicenow.servicenow 1.0.6 splunk.es 2.1.0 t_systems_mms.icinga_director 1.33.1 telekom_mms.icinga_director 1.34.1 theforeman.foreman 3.14.0 vmware.vmware_rest 2.3.1 vultr.cloud 1.9.0 vyos.vyos 4.1.0 wti.remote 1.0.5
sridharc-vsim34::> version NetApp Release 9.12.1P4: Tue Jun 06 20:41:34 UTC 2023
- name: modify banner netapp.ontap.na_ontap_login_messages: banner: test username: "{{ username }}" password: "{{ password }}" hostname: "{{ hostname }}"
Execute the following task twice. It will report changed on both executions.
changed
I expect the module to report changed, when it actually has to change the banner and ok for all subsequent repetitions.
ok
I don't get an error, but the module always reports `changed`, even if the banner does not need to be changed.
We have DEVOPS-6495 open for this issue.
This was fixed in 22.8.0
Summary
I use na_ontap_login_messages to set the banner via REST in the Cluster scope. It successfully sets the banner, but it always reports changes, even if the banner does not need any changes. So, the module does not seem to be idempotent in this case.
Component Name
na_ontap_login_messages
Ansible Version
ONTAP Collection Version
ONTAP Version
Playbook
Steps to Reproduce
Execute the following task twice. It will report
changed
on both executions.Expected Results
I expect the module to report
changed
, when it actually has to change the banner andok
for all subsequent repetitions.Actual Results