pvc/node-daemon
Joshua Boniface afb0359c20 Refactor pvcnoded to reduce Daemon.py size
This branch commit refactors the pvcnoded component to better adhere to
good programming practices. The previous Daemon.py was a massive file
which contained almost 2000 lines of direct, root-level code which was
directly imported. Not only was this poor practice, but this resulted
in a nigh-unmaintainable file which was hard even for me to understand.

This refactoring splits a large section of the code from Daemon.py into
separate small modules and functions in the `util/` directory. This will
hopefully make most of the functionality easy to find and modify without
having to dig through a single large file.

Further the existing subcomponents have been moved to the `objects/`
directory which clearly separates them.

Finally, the Daemon.py code has mostly been moved into a function,
`entrypoint()`, which is then called from the `pvcnoded.py` stub.

An additional item is that most format strings have been replaced by
f-strings to make use of the Python 3.6 features in Daemon.py and the
utility files.
2021-08-21 03:14:22 -04:00
..
monitoring Improve Munin check with extinfo 2020-10-19 11:01:00 -04:00
pvcnoded Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00
daemon_lib Add daemon_lib symlink to pvcnoded 2021-05-30 00:00:07 -04:00
pvc-flush.service Increase start delay of flush service 2020-08-11 14:17:35 -04:00
pvc.target Correct name of systemd target 2020-02-08 20:39:07 -05:00
pvcnoded.py Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00
pvcnoded.sample.yaml Refactor pvcnoded to reduce Daemon.py size 2021-08-21 03:14:22 -04:00
pvcnoded.service Remove systemd deps on zookeeper and libvirt 2021-01-28 16:25:02 -05:00