Bug 2124919 - cephadam-ansible playbook `cephadm-preflight.yml` fails on RHEL9
Summary: cephadam-ansible playbook `cephadm-preflight.yml` fails on RHEL9
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 6.0
Assignee: Guillaume Abrioux
QA Contact: Manisha Saini
Masauso Lungu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-07 13:14 UTC by Vaibhav Mahajan
Modified: 2023-03-20 18:58 UTC (History)
6 users (show)

Fixed In Version: cephadm-ansible-2.8.0-1.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-20 18:58:05 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph cephadm-ansible pull 155 0 None open preflight: remove old rhceph 4 only on el8 2022-09-07 13:16:02 UTC
Red Hat Issue Tracker RHCEPH-5214 0 None None None 2022-09-07 13:30:53 UTC
Red Hat Product Errata RHBA-2023:1360 0 None None None 2023-03-20 18:58:40 UTC

Description Vaibhav Mahajan 2022-09-07 13:14:00 UTC
Description of problem:
cephadam-ansible playbook `cephadm-preflight.yml` fails at task `disable older rhceph repositories if any` which tries to disable rhceph-4 repos for rhel8

How reproducible: Always

Steps to Reproduce:
1. Deploy RHEL 9 cluster.
2. Configure repos and install cephadm-ansible.
3. Execute cephadm-ansible playbook `cephadm-preflight.yml` as below command -
   ansible-playbook cephadm-preflight.yml -i hosts -e ceph_origin=rhcs

Actual results:
Ansible playbook fails with below error - 

2022-09-07 08:42:06,917 p=22241 u=cephuser n=ansible | TASK [disable older rhceph repositories if any] ***************************************************************************************
2022-09-07 08:42:11,031 p=22241 u=cephuser n=ansible | failed: [ceph-vamahaja-snc3h1-node3] (item=rhceph-4-tools-for-rhel-8-x86_64-rpms) => changed=false
  ansible_loop_var: item
  item: rhceph-4-tools-for-rhel-8-x86_64-rpms
  msg: rhceph-4-tools-for-rhel-8-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-4-tools-for-rhel-8-x86_64-rpms is not a valid repository ID
2022-09-07 08:42:11,398 p=22241 u=cephuser n=ansible | failed: [ceph-vamahaja-snc3h1-node4] (item=rhceph-4-tools-for-rhel-8-x86_64-rpms) => changed=false
  ansible_loop_var: item
  item: rhceph-4-tools-for-rhel-8-x86_64-rpms
  msg: rhceph-4-tools-for-rhel-8-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-4-tools-for-rhel-8-x86_64-rpms is not a valid repository ID
2022-09-07 08:42:11,784 p=22241 u=cephuser n=ansible | failed: [ceph-vamahaja-snc3h1-node1-installer] (item=rhceph-4-tools-for-rhel-8-x86_64-rpms) => changed=false
  ansible_loop_var: item
  item: rhceph-4-tools-for-rhel-8-x86_64-rpms
  msg: rhceph-4-tools-for-rhel-8-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-4-tools-for-rhel-8-x86_64-rpms is not a valid repository ID
2022-09-07 08:42:12,277 p=22241 u=cephuser n=ansible | failed: [ceph-vamahaja-snc3h1-node2] (item=rhceph-4-tools-for-rhel-8-x86_64-rpms) => changed=false
  ansible_loop_var: item
  item: rhceph-4-tools-for-rhel-8-x86_64-rpms
  msg: rhceph-4-tools-for-rhel-8-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-4-tools-for-rhel-8-x86_64-rpms is not a valid repository ID
2022-09-07 08:42:15,314 p=22241 u=cephuser n=ansible | failed: [ceph-vamahaja-snc3h1-node3] (item=rhceph-4-mon-for-rhel-8-x86_64-rpms) => changed=false
  ansible_loop_var: item
  item: rhceph-4-mon-for-rhel-8-x86_64-rpms
  msg: rhceph-4-mon-for-rhel-8-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-4-mon-for-rhel-8-x86_64-rpms is not a valid repository ID

Expected results:
Playbook should pass without any issue.

Comment 1 RHEL Program Management 2022-09-07 13:14:08 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 16 errata-xmlrpc 2023-03-20 18:58:05 UTC
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 6.0 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:1360


Note You need to log in before you can comment on or make changes to this bug.