Bug 1948050

Summary: Switch to container playbook fails on colocated scenarios for Ubuntu OS
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Mike Hackett <mhackett>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3CC: amctagga, aschoen, ceph-eng-bugs, ceph-qe-bugs, gmeno, mmurthy, nthomas, tserlin, vumrao, ykaul
Target Milestone: ---   
Target Release: 3.3z7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-ansible-3.2.56-1.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-06 18:32:06 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 Mike Hackett 2021-04-09 21:03:17 UTC
Description of problem:
Attempting to run the switch to containers playbook fails when containerizing RHCS 3.3 cluster on Ubuntu due to the playbook attempting to chown the entire /var/lib/ceph dir instead of just the corresponding daemon such as /var/lib/ceph/mon.

So what we need is probably that each play has to chown files on corresponding daemon only rather than the whole directory like:

"find /var/lib/ceph/mon /etc/ceph -not -( -user {{ ceph_uid }} -or -group {{ ceph_uid }} -) -execdir chown -h {{ ceph_uid }}:{{ ceph_uid }} {} +"

Instead of what we do currently:

"find /var/lib/ceph /etc/ceph -not -( -user {{ ceph_uid }} -or -group {{ ceph_uid }} -) -execdir chown -h {{ ceph_uid }}:{{ ceph_uid }} {} +"

There is a PR upstream:

[1] https://github.com/ceph/ceph-ansible/commit/17b1427084550956e81ce4db5716a8e009f353a5
[2] https://github.com/ceph/ceph-ansible/commit/6c8df0523ea6558d7316e14f3f1443fbd04a022b
[3] https://patch-diff.githubusercontent.com/raw/ceph/ceph-ansible/pull/6433.diff

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

Comment 8 errata-xmlrpc 2021-05-06 18:32:06 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 Ceph Storage 3.3 Security and 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/RHSA-2021:1518