Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2299016

Summary: ceph-admin users not added to non admin cephadm hosts when they aren't labeled as osd in the ceph_spec.yaml
Product: Red Hat OpenStack Reporter: Yonatan <yzaken>
Component: tripleo-ansibleAssignee: Manoj Katari <mkatari>
Status: CLOSED ERRATA QA Contact: Alfredo <alfrgarc>
Severity: low Docs Contact:
Priority: medium    
Version: 17.1 (Wallaby)CC: alfrgarc, mariel, mkatari
Target Milestone: z4Keywords: Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: tripleo-ansible-3.3.1-17.1.20240802121358.8debef3.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-21 09:41:57 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:

Description Yonatan 2024-07-20 10:20:13 UTC
Description of problem:
I the scenario of using a custom generated ceph_spec.yaml file (not generated via ceph_spec_bootstrap), if the non admin cephadm hosts are labeled with a label that doesn't match the label "osd" e.g. osd-host-1 etc. these hosts won't be added the ceph-admin user (see cli-deployed-ceph.yaml line 128).

This will cause the "Apply spec" task in the playbook: apply_spec.yaml 
to fail as an ssh connection attempt is made.

Version-Release number of selected component (if applicable):
tripleo wallaby 14.3.0

How reproducible:
Create a ceph spec with non admin hosts and label them with a label that doesn't match "osd".

Steps to Reproduce:
1. openstack overcloud ceph spec \
--roles-data ~/roles_data.yaml \
-o ~/ceph_spec.yaml \
~/overcloud-baremetal-deployed.yaml

2. Change labels of non admin hosts to something that doesn't match "osd" e.g. osd-host-1.

3. openstack overcloud ceph deploy ... --ceph-spec ~/ceph_spec.yaml ...

Actual results:
Deployment fails on "Apply spec" task from apply_spec.yaml playbook. Specifically on an ssh connection attempt to one of the non admin cephadm hosts.

Expected results:
Deployment passes successfully 

Additional info:
Playbook that might need to be adjusted to support this:
https://github.com/openstack-archive/tripleo-ansible/blob/stable/wallaby/tripleo_ansible/playbooks/cli-deployed-ceph.yaml
line 128

Comment 12 errata-xmlrpc 2024-11-21 09:41:57 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 (RHOSP 17.1.4 bug fix and enhancement advisory), 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-2024:9974