Bug 2244978 - [Bluewash][IBM 6.1z2] [Live] [Cephadm-anisble] [Preflight playbook] Preflight playbook failing for IBM 6.1z2 live.
Summary: [Bluewash][IBM 6.1z2] [Live] [Cephadm-anisble] [Preflight playbook] Preflight...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 6.1z3
Assignee: Teoman ONAY
QA Contact: Vinayak Papnoi
Disha Walvekar
URL:
Whiteboard:
: 2181243 2246456 2250583 (view as bug list)
Depends On:
Blocks: 2211324 2235257 2247624
TreeView+ depends on / blocked
 
Reported: 2023-10-19 04:42 UTC by Mohit Bisht
Modified: 2023-12-12 13:56 UTC (History)
15 users (show)

Fixed In Version: cephadm-ansible-2.18.0-1.el9cp
Doc Type: Bug Fix
Doc Text:
.Repackaged the correct version of cephadm-ansible matching Ceph 6 Previously, the wrong version of cephadm-ansible was released with Ceph 6. The released version was for Ceph 7 and hence when running the preflight playbook it tried to connect to Ceph 7 repositories which were not available. With this fix, the correct version of cephadm-ansible matching Ceph 6 is repackaged and now the preflight playbook connects to the correct repositories.
Clone Of:
Environment:
Last Closed: 2023-12-12 13:56:04 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph cephadm-ansible pull 243 0 None Merged rpm: set Epoch to 1 2023-10-19 15:46:15 UTC
Red Hat Issue Tracker RHCEPH-7744 0 None None None 2023-10-19 04:44:07 UTC
Red Hat Product Errata RHSA-2023:7740 0 None None None 2023-12-12 13:56:19 UTC

Description Mohit Bisht 2023-10-19 04:42:18 UTC
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:

Comment 2 Justin Caratzas 2023-10-19 13:41:19 UTC
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

Comment 5 Teoman ONAY 2023-10-27 12:27:10 UTC
*** Bug 2246456 has been marked as a duplicate of this bug. ***

Comment 14 Teoman ONAY 2023-11-23 14:43:43 UTC
*** Bug 2181243 has been marked as a duplicate of this bug. ***

Comment 15 Teoman ONAY 2023-11-23 14:45:55 UTC
*** Bug 2250583 has been marked as a duplicate of this bug. ***

Comment 20 errata-xmlrpc 2023-12-12 13:56:04 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 (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


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