RHCS upgrade from 4 to 5 is failing with conditional check 'cephadm_mgmt_network is ansible.utils.ipv4'

Solution Verified - Updated -

Issue

  • RHCS upgrade from 4.3 to 5.3z3 is failing with conditional check cephadm_mgmt_network is ansible.utils.ipv4
TASK [manage nodes with cephadm - ipv4] ***************************************************************************************************************************************************************************
Thursday 01 June 2023  11:29:58 +0530 (0:00:01.675)       0:02:44.604 ********* 
fatal: [ceph80 -> {{ groups[mon_group_name][0] }}]: FAILED! => 
  msg: |-
    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 %}

    The error appears to be in '/usr/share/ceph-ansible/infrastructure-playbooks/cephadm-adopt.yml': line 371, column 7, but may
    be elsewhere in the file depending on the exact syntax problem.

    The offending line appears to be:


        - name: manage nodes with cephadm - ipv4
          ^ here
  • cephadm-adopt.yml playbook fails at task manage nodes with cephadm - ipv4

Environment

  • Red Hat Ceph Storage 5.3z3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content