ceph-osd unnecessarily chowns /var/lib/ceph firefly->hammer

Bug #1657527 reported by Billy Olsen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceph OSD Charm
Fix Released
High
Billy Olsen
ceph-osd (Juju Charms Collection)
Invalid
High
Billy Olsen

Bug Description

When upgrading from Firefly to Hammer, the charm unnecessarily recursively chowns the /var/lib/ceph filesystems. The charm does not need to perform the chown unless the upgrade is to a level of code which runs the ceph daemons as the ceph user (introduced in Infernalis).

In a production environment with numerous OSDs and lots of objects stored, this recursive chown takes a significant time since it crawls filesystems for all OSDs.

The code should intelligently chown the filesystems depending on the upgrade path.

This can be seen in the code [0] for master and [1] for the 16.10 charms, in which the chown is occurring regardless of whether it is necessary or not.

[0] https://github.com/openstack/charm-ceph-osd/blob/master/lib/ceph/__init__.py#L1585
[1] https://github.com/openstack/charm-ceph-osd/blob/stable/16.10/lib/ceph/__init__.py#L1568

Since there are no precautions to prevent the OSD from getting kicked out (e.g. noout is not set), this causes the entire node's worth of OSDs to be kicked out of the Ceph cluster causing data movement and recovery.

Tags: sts
Changed in ceph-osd (Juju Charms Collection):
milestone: none → 17.01
Changed in ceph-osd (Juju Charms Collection):
status: Confirmed → In Progress
James Page (james-page)
Changed in charm-ceph-osd:
assignee: nobody → Billy Olsen (billy-olsen)
importance: Undecided → High
status: New → In Progress
Changed in ceph-osd (Juju Charms Collection):
status: In Progress → Invalid
Revision history for this message
Billy Olsen (billy-olsen) wrote :

This was fixed in rev 242 of the charm in the charmstore.

Changed in charm-ceph-osd:
status: In Progress → Fix Released
milestone: none → 17.02
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.