Bug 1956840

Summary: [ceph-ansible] cephadm-adopt - Enable pool application on nfs-ganesha pool in the playbook
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Dimitri Savineau <dsavinea>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: medium Docs Contact: Ranjini M N <rmandyam>
Priority: unspecified    
Version: 5.0CC: aschoen, ceph-eng-bugs, dsavinea, gabrioux, gmeno, mgowri, mhull, nthomas, rmandyam, sunnagar, tserlin, vereddy, ykaul
Target Milestone: ---   
Target Release: 5.0z1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-ansible-6.0.13-1.el8cp Doc Type: Bug Fix
Doc Text:
.The `cephadm-adopt` playbook now enables the pool application on the pool when creating a new `nfs-ganesha` pool Previously, when the `cephadm-adopt` playbook created a new `nfs-ganesha` pool, it did not enable the pool application on the pool. This resulted in a warning that one pool did not have the pool application enabled. With this update, the `cephadm-adopt` playbook sets the pool application on the created pool, and a warning after the adoption no longer occurs.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-02 16:38:26 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:
Bug Depends On:    
Bug Blocks: 1959686    

Description Vasishta 2021-05-04 14:16:30 UTC
Description of problem:
cephadma-adopt playbook creates a new pool [1]. After cephadm-adopt exits successfully, cluster warns users saying 1 pool(s) do not have an application enabled

Version-Release number of selected component (if applicable):
ceph-ansible-6.0.5-1.el8cp.noarch.rpm  

How reproducible:
Always (2/2)

Steps to Reproduce:
1. Configure a RHCS 4.x cluster with nfs-ganesha 
2. Upgdate cluster to 5.x
3. run cephadm-adopt and check ceph health detail

Actual results:
[WRN] POOL_APP_NOT_ENABLED: 1 pool(s) do not have an application enabled
    application not enabled on pool 'nfs-ganesha'
    use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.


Expected results:
Warning to user can be avoided

Additional info:
[1] https://github.com/ceph/ceph-ansible/pull/6487

Comment 14 errata-xmlrpc 2021-11-02 16:38:26 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 5.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-2021:4105