Bug 1948050 - Switch to container playbook fails on colocated scenarios for Ubuntu OS
Summary: Switch to container playbook fails on colocated scenarios for Ubuntu OS
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 3.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.3z7
Assignee: Guillaume Abrioux
QA Contact: Ameena Suhani S H
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-09 21:03 UTC by Mike Hackett
Modified: 2021-05-06 18:32 UTC (History)
10 users (show)

Fixed In Version: ceph-ansible-3.2.56-1.el7cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-06 18:32:06 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 6463 0 None closed switch-to-containers: only chown corresponding files (backport #6433) 2021-04-15 03:26:16 UTC
Red Hat Product Errata RHSA-2021:1518 0 None None None 2021-05-06 18:32:15 UTC

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


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