Bug 2131181 - [Cephadm] cephadm-preflight playbook is failing when deploying RHCS 6.0
Summary: [Cephadm] cephadm-preflight playbook is failing when deploying RHCS 6.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 6.0
Assignee: Guillaume Abrioux
QA Contact: Manisha Saini
URL:
Whiteboard:
Depends On:
Blocks: 2130230
TreeView+ depends on / blocked
 
Reported: 2022-09-30 08:02 UTC by Sayalee
Modified: 2023-03-20 18:59 UTC (History)
5 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph cephadm-ansible pull 174 0 None open packaging: add validate directory 2022-09-30 13:19:43 UTC
Red Hat Issue Tracker RHCEPH-5390 0 None None None 2022-09-30 08:10:43 UTC
Red Hat Product Errata RHBA-2023:1360 0 None None None 2023-03-20 18:59:18 UTC

Description Sayalee 2022-09-30 08:02:09 UTC
Description of problem:
-----------------------
While deploying RHCS 6.0, the cephadm-preflight.yaml playbook is failing with below message-

"""
ERROR! Unable to retrieve file contents
Could not find or access '/usr/share/cephadm-ansible/validate/preflight.yml' on the Ansible Controller.
"""


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
Red Hat Enterprise Linux release 9.0 (Plow)
Kernel verison - 5.14.0-70.26.1.el9_0.x86_64


How reproducible:
-----------------
1/1


Steps to Reproduce:
-------------------
1. Create a RHEL9 nodes.
2. Subscribe to CDN and enable below repos:
   Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs)
   Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs)
3. Add repo for latest compose for ceph tools-
   # yum-config-manager --add-repo http://download.eng.bos.redhat.com/rhel-9/composes/auto/ceph-6.0-rhel-9/latest-RHCEPH-6-RHEL-9/compose/Tools/x86_64/os/
4. Install cephadm-ansible - #dnf install cephadm-ansible
5. Create a 'hosts' file at /usr/share/cephadm-ansible with appropriate host IPs.
6. Run the cephadm-preflight.yaml playbook.
   # ansible-playbook -i hosts cephadm-preflight.yml --extra-vars "ceph_origin=rhcs"



Actual results:
---------------
cephadm-preflight.yaml playbook fails with below error-

"""
[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.
[WARNING]: Ignoring invalid path provided to plugin path: '/usr/share/cephadm-ansible/validate' is not a directory
ERROR! Unable to retrieve file contents
Could not find or access '/usr/share/cephadm-ansible/validate/preflight.yml' on the Ansible Controller.
If you are using a module and expect the file to exist on the remote, see the remote_src option
"""



Expected results:
----------------
Playbook should pass successfully.



Additional info:
----------------
# dnf info cephadm
Updating Subscription Management repositories.
Last metadata expiration check: 4:14:54 ago on Thu Sep 29 23:20:05 2022.
Available Packages
Name         : cephadm
Epoch        : 2
Version      : 17.2.3
Release      : 42.el9cp
Architecture : noarch
Size         : 88 k
Source       : ceph-17.2.3-42.el9cp.src.rpm
Repository   : download.eng.bos.redhat.com_rhel-9_composes_auto_ceph-6.0-rhel-9_latest-RHCEPH-6-RHEL-9_compose_Tools_x86_64_os_
Summary      : Utility to bootstrap Ceph clusters
URL          : http://ceph.com/
License      : LGPL-2.1 and LGPL-3.0 and CC-BY-SA-3.0 and GPL-2.0 and BSL-1.0 and BSD-3-Clause and MIT
Description  : Utility to bootstrap a Ceph cluster and manage Ceph daemons deployed
             : with systemd and podman.


# rpm -qa | grep ansible
ansible-core-2.12.2-2.el9_0.x86_64
ansible-collection-community-general-4.0.0-1.1.el9ost.noarch
cephadm-ansible-2.9.0-1.el9cp.noarch



root@saya-dashboard-node-1 cephadm-ansible]# ll
total 60
-rw-r--r--. 1 root root   587 Sep 21 02:45 ansible.cfg
drwxr-xr-x. 4 root root    51 Sep 29 08:33 ceph_defaults
-rw-r--r--. 1 root root  5846 Sep 21 02:45 cephadm-clients.yml
-rw-r--r--. 1 root root  2895 Sep 21 02:45 cephadm-distribute-ssh-key.yml
-rw-r--r--. 1 root root 10821 Sep 21 02:45 cephadm-preflight.yml
-rw-r--r--. 1 root root  4585 Sep 21 02:45 cephadm-purge-cluster.yml
-rw-r--r--. 1 root root  1110 Sep 21 02:45 cephadm-set-container-insecure-registries.yml
-rw-r--r--. 1 root root    60 Sep 29 08:36 hosts
drwxr-xr-x. 2 root root   186 Sep 29 08:33 library
drwxr-xr-x. 2 root root    47 Sep 29 08:33 module_utils
-rw-r--r--. 1 root root  4348 Sep 21 02:45 rocksdb-resharding.yml

Comment 16 errata-xmlrpc 2023-03-20 18:58:27 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.