Bug 2299016 - ceph-admin users not added to non admin cephadm hosts when they aren't labeled as osd in the ceph_spec.yaml
Summary: ceph-admin users not added to non admin cephadm hosts when they aren't labele...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Linux
medium
low
Target Milestone: z4
: 17.1
Assignee: Manoj Katari
QA Contact: Alfredo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-20 10:20 UTC by Yonatan
Modified: 2024-11-21 09:41 UTC (History)
3 users (show)

Fixed In Version: tripleo-ansible-3.3.1-17.1.20240802121358.8debef3.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-11-21 09:41:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-32540 0 None None None 2024-07-20 10:21:44 UTC
Red Hat Product Errata RHBA-2024:9974 0 None None None 2024-11-21 09:41:58 UTC

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


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