openstack-helm-infra/ceph-osd/templates
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
..
bin [ceph-osd] Alias synchronized commands and fix descriptor leak 2020-12-16 07:22:15 -07:00
utils Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
configmap-bin.yaml [CEPH-OSD] Move to 'OnDelete' upgrade strategy for ceph-osd daemonsets 2020-05-12 20:03:40 +00:00
configmap-etc.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
daemonset-osd.yaml [ceph-osd] Logic improvement for used osd disk detection 2020-10-15 13:13:28 +00:00
job-bootstrap.yaml Undo octal-values restriction together with corresponding code 2020-07-07 15:42:53 +00:00
job-image-repo-sync.yaml Remove OSH Authors copyright 2020-05-07 02:11:15 +00:00
job-post-apply.yaml [ceph-osd] enhancement to the "post-apply" job 2020-08-18 21:39:02 +00:00
pod-helm-tests.yaml Undo octal-values restriction together with corresponding code 2020-07-07 15:42:53 +00:00