adding a disk with "juju set" will chown every single file on every single osd
Bug #1795383 reported by
Junien F
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceph OSD Charm |
Fix Released
|
High
|
Przemyslaw Hausman |
Bug Description
Hi,
I you have a running ceph cluster, and you add disks via "juju set ceph-osd osd-devices", then for each added disk, the charm will chown -R /var/lib/ceph (https:/
However, /var/lib/ceph/osd has links to all osds, so the charm will chown every file on every osd. For every disk you're adding. So if you're adding 5 disks, the charm will chown -R 5 times, which takes quite some time and is not useful.
I'm not sure why we're chowning in the first place, but I feel like we should only chown what needs chowning. Filesystems which are already in ceph shouldn't need to be touched.
Thanks !
Changed in charm-ceph-osd: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-ceph-osd: | |
assignee: | nobody → Przemyslaw Hausman (phausman) |
Changed in charm-ceph-osd: | |
milestone: | none → 19.04 |
Changed in charm-ceph-osd: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
osdize_dir is only called with filesystem path OSDs; looking briefly at the code path at https:/ /github. com/openstack/ charm-ceph- osd/blob/ master/ lib/ceph/ utils.py# L1420 , it looks like the charm _never_ calls chownr on a disk based OSD