Description of problem: While upgrading the system from 4.x to 5.3, getting the error as mentioned below: 2023-05-16 11:34:52,524 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b'TASK [manage nodes with cephadm - ipv4] ****************************************' 2023-05-16 11:34:52,524 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b'task path: /usr/share/ceph-ansible/infrastructure-playbooks/cephadm-adopt.yml:371' 2023-05-16 11:34:52,525 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b'Tuesday 16 May 2023 11:34:52 -0400 (0:00:01.234) 0:01:09.062 *********** ' 2023-05-16 11:34:52,595 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b'fatal: [ceph-vpapnoi-up-bz-7p5s6b-node1-installer -> {{ groups[mon_group_name][0] }}]: FAILED! => ' 2023-05-16 11:34:52,597 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b' msg: |-' 2023-05-16 11:34:52,598 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b" The conditional check 'cephadm_mgmt_network is ansible.utils.ipv4' failed. The error was: template error while templating string: no test named 'ansible.utils.ipv4'. String: {% if cephadm_mgmt_network is ansible.utils.ipv4 %} True {% else %} False {% endif %}" 2023-05-16 11:34:52,599 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b' ' 2023-05-16 11:34:52,600 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b" The error appears to be in '/usr/share/ceph-ansible/infrastructure-playbooks/cephadm-adopt.yml': line 371, column 7, but may" 2023-05-16 11:34:52,600 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b' be elsewhere in the file depending on the exact syntax problem.' 2023-05-16 11:34:52,601 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b' ' 2023-05-16 11:34:52,602 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b' The offending line appears to be:' 2023-05-16 11:34:52,603 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b' ' 2023-05-16 11:34:52,603 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b' ' 2023-05-16 11:34:52,604 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b' - name: manage nodes with cephadm - ipv4' 2023-05-16 11:34:52,605 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b' ^ here' 2023-05-16 11:34:52,618 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b'fatal: [ceph-vpapnoi-up-bz-7p5s6b-node2 -> {{ groups[mon_group_name][0] }}]: FAILED! => ' 2023-05-16 11:34:52,619 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b' msg: |-' 2023-05-16 11:34:52,620 (cephci.test_ansible_upgrade) [DEBUG] - cephci.ceph.py:1520 - b" The conditional check 'cephadm_mgmt_network is ansible.utils.ipv4' failed. The error was: template error while templating string: no test named 'ansible.utils.ipv4'. String: {% if cephadm_mgmt_network is ansible.utils.ipv4 %} True {% else %} False {% endif %}" Version-Release number of selected component (if applicable): # rpm -qa | grep ansible ceph-ansible-6.0.28.4-1.el8cp.noarch ansible-2.9.27-1.el8ae.noarch # rpm -qa | grep cephadm cephadm-16.2.10-172.el8cp.noarch How reproducible: 3/3 Steps to Reproduce: 1. Perform upgrade from 4.x to 5.3 (build mentioned above) 2. 3. Actual results: Getting an error as mentioned in the description: The conditional check 'cephadm_mgmt_network is ansible.utils.ipv4' failed. The error was: template error while templating string: no test named 'ansible.utils.ipv4'. String: {% if cephadm_mgmt_network is ansible.utils.ipv4 %} True {% else %} False {% endif %}" Expected results: Upgrade should be successful without any errors. Additional info:
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 5.3 Bug Fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:4213