Bug 2258940

Summary: [cee/sd][cephadm-ansible] cephadm-preflight playbook fails at TASK [disable older rhceph repositories if any]
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Lijo Stephen Thomas <lithomas>
Component: Ceph-AnsibleAssignee: Teoman ONAY <tonay>
Status: CLOSED ERRATA QA Contact: Manisha Saini <msaini>
Severity: high Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 7.0CC: abhishku, akraj, ceph-eng-bugs, cephqe-warriors, gmeno, gsitlani, tonay, tserlin, vdas
Target Milestone: ---   
Target Release: 7.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: cephadm-ansible-3.2.0-1.el9cp Doc Type: Bug Fix
Doc Text:
.Playbooks now remove the RHCS version repositories matching the running RHEL version Previously, playbooks would try to remove {storage-product} 4 repositories from RHEL 9 even though they do not exist on RHEL 9. This would cause the playbooks to fail. With this fix, playbooks remove existing {storage-product} version repositories matching the running RHEL version and the correct repositories are removed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-13 14:24:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2267614, 2298578, 2298579    

Description Lijo Stephen Thomas 2024-01-18 05:56:58 UTC
Description of problem:
-----------------------
During RHCS 7 installation, when we run cephadm-preflight.yml playbook as part of installation pre-req, the playbook fails at below task:

```
TASK [disable older rhceph repositories if any] ***************************************************************************************************************
Wednesday 17 January 2024  23:03:32 -0600 (0:00:23.169)       0:00:27.086 ***** 
fatal: [testathon2]: FAILED! => changed=false 
  msg: rhceph-4-tools-for-rhel-9-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-4-tools-for-rhel-9-x86_64-rpms is not a valid repository ID
fatal: [testathon1]: FAILED! => changed=false 
  msg: rhceph-4-mon-for-rhel-9-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-4-mon-for-rhel-9-x86_64-rpms is not a valid repository ID
fatal: [testathon3]: FAILED! => changed=false 
  msg: rhceph-4-osd-for-rhel-9-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-4-osd-for-rhel-9-x86_64-rpms is not a valid repository ID

PLAY RECAP ****************************************************************************************************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=0    skipped=3    rescued=0    ignored=0   
testathon1                 : ok=2    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
testathon2                 : ok=2    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
testathon3                 : ok=2    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
```


Version-Release number of selected component (if applicable):
------------------------------------------------------------
RHCS 7.x


How reproducible:
------------------
Every time.

Steps to Reproduce:
-------------------
- For installation, when we run cephadm-preflight playbook following[1]


[1] https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/7/html-single/installation_guide/index#running-the-preflight-playbook_install

Comment 10 errata-xmlrpc 2024-06-13 14:24:41 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 (Critical: Red Hat Ceph Storage 7.1 security, enhancements, and 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/RHSA-2024:3925