openstack-helm-infra/ceph-osd
Stephen Taylor 885285139e [ceph-osd] Alias synchronized commands and fix descriptor leak
There are many race conditions possible when multiple ceph-osd
pods are initialized on the same host at the same time using
shared metadata disks. The locked() function was introduced a
while back to address these, but some commands weren't locked,
locked() was being called all over the place, and there was a file
descriptor leak in locked(). This change cleans that up by
by maintaining a single, global file descriptor for the lock file
that is only opened and closed once, and also by aliasing all of
the commands that need to use locked() and removing explicit calls
to locked() everywhere.

The global_locked() function has also been removed as it isn't
needed when individual commands that interact with disks use
locked() properly.

Change-Id: I0018cf0b3a25bced44c57c40e33043579c42de7a
2020-12-16 07:22:15 -07:00
..
templates [ceph-osd] Alias synchronized commands and fix descriptor leak 2020-12-16 07:22:15 -07:00
values_overrides Enable apparmor to Ceph post-apply pods 2020-07-09 15:11:48 +00:00
Chart.yaml [ceph-osd] Alias synchronized commands and fix descriptor leak 2020-12-16 07:22:15 -07:00
requirements.yaml Change helm-toolkit dependency version to ">= 0.1.0" 2020-09-24 12:19:28 -05:00
values.yaml [ceph-osd] Remove default OSD configuration 2020-12-01 10:44:21 -07:00