Bug 1934379 - Ceph cluster is not healthy: auth entities with invalid capabilities
Summary: Ceph cluster is not healthy: auth entities with invalid capabilities
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z6
: 16.1 (Train on RHEL 8.2)
Assignee: Francesco Pantano
QA Contact: Alfredo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-03 06:13 UTC by Francesco Pantano
Modified: 2022-09-05 13:23 UTC (History)
6 users (show)

Fixed In Version: tripleo-ansible-0.5.1-1.20210322163510.902c3c8.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-26 11:43:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1917440 0 None None None 2021-03-03 06:17:08 UTC
OpenStack gerrit 778158 0 None MERGED Build osd caps section when there's at least >= 1 pool 2021-03-04 09:10:41 UTC
OpenStack gerrit 778619 0 None NEW Build osd caps section when there's at least >= 1 pool 2021-03-04 09:10:38 UTC
Red Hat Issue Tracker OSP-706 0 None None None 2022-09-05 13:23:49 UTC
Red Hat Product Errata RHSA-2021:2119 0 None None None 2021-05-26 11:44:24 UTC

Description Francesco Pantano 2021-03-03 06:13:36 UTC
Description of problem:

When no pools using Ceph are defined (no services use Ceph as backend), and the pool list is empty in tripleo,
a wrong osp_client_caps is generated [1], and it contains an empty value for the caps osd section.

This results in a Ceph cluster which is not healthy (HEALTH_ERR is reported), because the resulting auth entry has invalid capabilities.

[client.openstack]
        key = <the key>
        caps mgr = "allow *"
        caps mon = "profile rbd"
        caps osd = "" <= ERROR, this sections shouldn't be here

[1] https://github.com/openstack/tripleo-ansible/blob/master/tripleo_ansible/roles/tripleo_ceph_work_dir/tasks/build_keys.yml#L21-L32

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 19 errata-xmlrpc 2021-05-26 11:43:47 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 (Important: Red Hat OpenStack Platform 16.1.6 (tripleo-ansible) security 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-2021:2119


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