Description of problem: [IBM 6.1z2] [Live] [Cephadm-anisble] [Preflight playbook] Preflight playbook failing for IBM 6.1z2 live. It is trying connect with IBM 7.0 repo (Not live yest) # ansible-playbook -i hosts cephadm-preflight.yml --extra-vars "ceph_origin=ibm" [WARNING]: log file at /root/ansible/ansible.log is not writeable and we cannot create it, aborting [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. PLAY [localhost] ***************************************************************************************************************************************************************************************************************************** TASK [fail if insecure_registry is undefined] ************************************************************************************************************************************************************************************************ Thursday 19 October 2023 00:16:49 -0400 (0:00:00.012) 0:00:00.012 ****** skipping: [localhost] PLAY [localhost] ***************************************************************************************************************************************************************************************************************************** TASK [fail when ceph_origin is custom with no repository defined] **************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:49 -0400 (0:00:00.048) 0:00:00.060 ****** skipping: [localhost] TASK [fail if baseurl is not defined for ceph_custom_repositories] *************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:49 -0400 (0:00:00.013) 0:00:00.074 ****** skipping: [localhost] PLAY [all] *********************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:49 -0400 (0:00:00.027) 0:00:00.102 ****** ok: [10.0.208.57] TASK [enable red hat ceph storage tools repository] ****************************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:51 -0400 (0:00:01.243) 0:00:01.345 ****** skipping: [10.0.208.57] TASK [disable older rhceph repositories if any] ********************************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:51 -0400 (0:00:00.020) 0:00:01.365 ****** skipping: [10.0.208.57] TASK [set_fact _ceph_repo] ******************************************************************************************************************************************************************************************************************* Thursday 19 October 2023 00:16:51 -0400 (0:00:00.020) 0:00:01.386 ****** ok: [10.0.208.57] TASK [configure ceph repository key] ********************************************************************************************************************************************************************************************************* Thursday 19 October 2023 00:16:51 -0400 (0:00:00.028) 0:00:01.415 ****** ok: [10.0.208.57] TASK [configure ceph stable repository] ****************************************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:52 -0400 (0:00:00.942) 0:00:02.357 ****** changed: [10.0.208.57] => (item=$basearch) TASK [fetch ceph development repository] ***************************************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:52 -0400 (0:00:00.346) 0:00:02.704 ****** skipping: [10.0.208.57] TASK [configure ceph development repository] ************************************************************************************************************************************************************************************************* Thursday 19 October 2023 00:16:52 -0400 (0:00:00.017) 0:00:02.721 ****** skipping: [10.0.208.57] TASK [remove ceph_stable repositories] ******************************************************************************************************************************************************************************************************* Thursday 19 October 2023 00:16:52 -0400 (0:00:00.018) 0:00:02.740 ****** skipping: [10.0.208.57] => (item=ceph_stable) skipping: [10.0.208.57] => (item=ceph_stable_noarch) skipping: [10.0.208.57] TASK [set_fact ceph_custom_repositories] ***************************************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:52 -0400 (0:00:00.029) 0:00:02.770 ****** skipping: [10.0.208.57] TASK [setup custom repositories] ************************************************************************************************************************************************************************************************************* Thursday 19 October 2023 00:16:52 -0400 (0:00:00.017) 0:00:02.787 ****** skipping: [10.0.208.57] TASK [enable required CentOS repository for epel] ******************************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:52 -0400 (0:00:00.018) 0:00:02.805 ****** skipping: [10.0.208.57] TASK [install package] *********************************************************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:52 -0400 (0:00:00.018) 0:00:02.824 ****** skipping: [10.0.208.57] TASK [install ceph-common on rhel] *********************************************************************************************************************************************************************************************************** Thursday 19 October 2023 00:16:52 -0400 (0:00:00.018) 0:00:02.842 ****** FAILED - RETRYING: [10.0.208.57]: install ceph-common on rhel (3 retries left). FAILED - RETRYING: [10.0.208.57]: install ceph-common on rhel (2 retries left). FAILED - RETRYING: [10.0.208.57]: install ceph-common on rhel (1 retries left). fatal: [10.0.208.57]: FAILED! => changed=false attempts: 3 cmd: - dnf - install - --allowerasing - --assumeyes - ceph-common delta: '0:00:01.637844' end: '2023-10-19 00:17:15.382165' msg: non-zero return code rc: 1 start: '2023-10-19 00:17:13.744321' stderr: |- Errors during downloading metadata for repository 'ceph_stable_x86_64': - Status code: 404 for https://public.dhe.ibm.com/ibmdl/export/pub/storage/ceph/7/rhel9//x86_64/repodata/repomd.xml (IP: 170.225.126.18) Error: Failed to download metadata for repo 'ceph_stable_x86_64': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried stderr_lines: <omitted> stdout: |- Updating Subscription Management repositories. IBM Ceph repo - x86_64 478 B/s | 196 B 00:00 stdout_lines: <omitted> Version-Release number of selected component (if applicable): repo: https://public.dhe.ibm.com/ibmdl/export/pub/storage/ceph/ibm-storage-ceph-6-rhel-9.repo cephadm-ansible-3.0.0-1.el9cp.noarch How reproducible: Always Steps to Reproduce: 1. Install cephadm-ansible (IBM 6.1z2 live) 2. Run Preflight playbook Actual results: Preflight playbook fail Expected results: Preflight playbook pass Additional info:
It appears that cephadm-ansible 3.0.0 (currently used by both 6 and 7) uses 7 as the default. I think the best option is to patch this downstream for 6, and probably do something similar for all release branches if a single cephadm-ansible version is going to support multiple ceph versions
*** Bug 2246456 has been marked as a duplicate of this bug. ***
*** Bug 2181243 has been marked as a duplicate of this bug. ***
*** Bug 2250583 has been marked as a duplicate of this bug. ***
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 (Moderate: Red Hat Ceph Storage 6.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-2023:7740