Stack: FFU 16.2 to 17.1 - Ceph upgrade fails with: "The offending line appears to be: Name: Update the placement of radosgw hosts"

Solution Verified - Updated -

Issue

FFU 16.2 to 17.1 - Ceph upgrade fails with: "The offending line appears to be: Name: Update the placement of radosgw hosts"

Example:

2024-07-02 07:58:20,105 p=554280 u=root n=ansible | TASK [Update the placement of radosgw hosts] ***********************************
2024-07-02 07:58:20,105 p=554280 u=root n=ansible | Tuesday 02 July 2024  07:58:20 +0000 (0:00:00.231)       0:05:29.024 ********** 
2024-07-02 07:58:20,198 p=554280 u=root n=ansible | fatal: [controller-0 -> {{ groups[mon_group_name][0] }}]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: the inline if-expression on line 10 evaluated to false and no else section was defined.\n\nThe error appears to be in '/usr/share/ceph-ansible/infrastructure-playbooks/cephadm-adopt.yml': line 1016, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Update the placement of radosgw hosts\n      ^ here\n"}
2024-07-02 07:58:20,289 p=554280 u=root n=ansible | fatal: [controller-1 -> {{ groups[mon_group_name][0] }}]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: the inline if-expression on line 10 evaluated to false and no else section was defined.\n\nThe error appears to be in '/usr/share/ceph-ansible/infrastructure-playbooks/cephadm-adopt.yml': line 1016, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Update the placement of radosgw hosts\n      ^ here\n"}
2024-07-02 07:58:20,316 p=554280 u=root n=ansible | fatal: [controller-2 -> {{ groups[mon_group_name][0] }}]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: the inline if-expression on line 10 evaluated to false and no else section was defined.\n\nThe error appears to be in '/usr/share/ceph-ansible/infrastructure-playbooks/cephadm-adopt.yml': line 1016, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Update the placement of radosgw hosts\n      ^ here\n"}
2024-07-02 07:58:20,316 p=554280 u=root n=ansible | NO MORE HOSTS LEFT

Environment

Red Hat OpenStack Platform (RHOSP) 16.x
Red Hat OpenStack Platform (RHOSP) 17.x
Red Hat Ceph Storage (RHCS) 5.x
Red Hat Ceph Storage (RHCS) 6.x
Ceph Rados Gateway (RGW)

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