This patch series starts the implementaiton of the maintenance
daemon as per desing document; for the time being, it only
reproduces the functionality of harep as this is the only part
that does not need internal state and hence can be done without
changing the configuration.

As this patch series, however, changes the daemon structure, I
will only push it, once a stable-2.16 branch is forked off. If
needed, I will generate that branch earlier.

The first patch is a shortened version of a patch sent out
separatly ("[PATCH master] Add clarifications to repair design
and support restarts") that only does the necessary renaming.
I would prefer the separate patch to be reviewed, in which case
I would drop the first patch from this patch series.

Klaus Aehlig (10):
  Rename repaird to maintd
  Move generic HTTP utility function so a separate module
  Abstract out a method to plainly return JSON
  Add a new deamon for maintenance
  Add man page for ganeti-maintd
  Move pure parts of harep into a separate module
  Add a version of execJobsWaitOK that also returns the JobIds
  Add maintd utility function to annotate all its opcodes
  Add a maintenance task for auto-repairs
  Move harep operations into maintd's main loop

 .gitignore                                    |   1 +
 Makefile.am                                   |  14 +-
 daemons/daemon-util.in                        |   2 +-
 doc/design-repaird.rst                        |  44 ++--
 doc/examples/ganeti.default                   |   1 +
 doc/examples/ganeti.default-debug             |   1 +
 doc/examples/systemd/ganeti-maintd.service.in |  18 ++
 man/ganeti-maintd.rst                         |  34 +++
 src/Ganeti/Constants.hs                       |  10 +
 src/Ganeti/HTools/Program/Harep.hs            | 247 +--------------------
 src/Ganeti/HTools/Repair.hs                   | 305 ++++++++++++++++++++++++++
 src/Ganeti/Jobs.hs                            |  15 +-
 src/Ganeti/MaintD/Autorepairs.hs              | 242 ++++++++++++++++++++
 src/Ganeti/MaintD/Server.hs                   | 140 ++++++++++++
 src/Ganeti/MaintD/Utils.hs                    |  53 +++++
 src/Ganeti/Monitoring/Server.hs               |  44 +---
 src/Ganeti/Runtime.hs                         |   6 +
 src/Ganeti/Utils/Http.hs                      |  97 ++++++++
 src/ganeti-maintd.hs                          |  47 ++++
 test/hs/Test/Ganeti/Runtime.hs                |   2 +
 test/py/daemon-util_unittest.bash             |   4 +-
 21 files changed, 1016 insertions(+), 311 deletions(-)
 create mode 100644 doc/examples/systemd/ganeti-maintd.service.in
 create mode 100644 man/ganeti-maintd.rst
 create mode 100644 src/Ganeti/HTools/Repair.hs
 create mode 100644 src/Ganeti/MaintD/Autorepairs.hs
 create mode 100644 src/Ganeti/MaintD/Server.hs
 create mode 100644 src/Ganeti/MaintD/Utils.hs
 create mode 100644 src/Ganeti/Utils/Http.hs
 create mode 100644 src/ganeti-maintd.hs

-- 
2.4.3.573.g4eafbef

Reply via email to