cephadm-preflight playbook fails at TASK [disable older rhceph repositories if any] for RHCS 7.0

Solution Verified - Updated -

Environment

  • Red Hat Ceph Storage (RHCS) 7.0

Issue

  • cephadm-preflight playbook fails at TASK [disable older rhceph repositories if any] for RHCS 7.0:
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  

Resolution

Root Cause

  • When disabling the older repository for RHCS 4, the task will choose these as a repository rhceph-4-mon-for-rhel-9-x86_64-rpms, rhceph-4-tools-for-rhel-9-x86_64-rpms and rhceph-4-osd-for-rhel-9-x86_64-rpms which actually doesn't exist.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments