Bug 1757400

Summary: please backport speed improvement in chown command in switch to containers
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: John Fulton <johfulto>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: high Docs Contact: Bara Ancincova <bancinco>
Priority: urgent    
Version: 3.3CC: afariasa, amsyedha, aschoen, ceph-eng-bugs, ceph-qe-bugs, gabrioux, gfidente, gmeno, mmuench, nthomas, pasik, pgrist, tchandra, tserlin, ykaul
Target Milestone: z2   
Target Release: 3.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.2.32-1.el7cp Ubuntu: ceph-ansible_3.2.32-2redhat1 Doc Type: Enhancement
Doc Text:
.Setting ownership is faster when using `switch-from-non-containerized-to-containerized-ceph-daemons.yml` Previously, the `chown` command in the `switch-from-non-containerized-to-containerized-ceph-daemons.yml` playbook unconditionally re-applied the ownership of Ceph directories and files causing a lot of write operations. With this update, the command has been improved to run faster. This is especially useful on a {product} cluster with a significant amount of directories and files in the `/var/lib/ceph/` directory.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-19 17:58:49 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: 1578730, 1726135    
Attachments:
Description Flags
merged backport none

Description John Fulton 2019-10-01 12:15:12 UTC
ceph-ansible v4 uses the ansible command module to directly run the chown command instead of using the ansible file module. This improves the speed of upgrades:

https://github.com/ceph/ceph-ansible/commit/47bf47c9d87fe057bc1402f7a1aa0a84d13b5fd0

Please backport this change to ceph-ansible 3.x.

Comment 3 John Fulton 2019-10-01 13:43:47 UTC
Created attachment 1621407 [details]
merged backport

The merged backport of the change is attached. It still needs to be tagged and properly released.

Comment 18 errata-xmlrpc 2019-12-19 17:58:49 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, 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-2019:4353