Bug 1757400 - please backport speed improvement in chown command in switch to containers
Summary: please backport speed improvement in chown command in switch to containers
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
urgent
high
Target Milestone: z2
: 3.3
Assignee: Guillaume Abrioux
QA Contact: Ameena Suhani S H
Bara Ancincova
URL:
Whiteboard:
Depends On:
Blocks: 1578730 1726135
TreeView+ depends on / blocked
 
Reported: 2019-10-01 12:15 UTC by John Fulton
Modified: 2023-09-07 20:45 UTC (History)
15 users (show)

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.
Clone Of:
Environment:
Last Closed: 2019-12-19 17:58:49 UTC
Embargoed:


Attachments (Terms of Use)
merged backport (15.24 KB, text/plain)
2019-10-01 13:43 UTC, John Fulton
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 4550 0 'None' closed switch_to_containers: optimize ownership change 2020-05-28 12:24:52 UTC
Red Hat Issue Tracker RHCEPH-7357 0 None None None 2023-09-07 20:45:50 UTC
Red Hat Product Errata RHSA-2019:4353 0 None None None 2019-12-19 17:59:12 UTC

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


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