WConfd checks the configuration at startup (and fails to start if it's not consistent) and also every time it receives the whole configuration from a Python job.
Eventually all checks from Python code will be moved to WConfd (issue #759). Petr Pudlak (6): Add an exception for configuration verification errors Add runValidate for running a pure validation monad value Add a module for WConfd configuration verification checks Let WConfd verify the configuration on startup Verify the configuration in WConfd every time it's uploaded Remove duplicate Python configuration checks Makefile.am | 1 + lib/config.py | 34 +++------- lib/errors.py | 9 +++ src/Ganeti/Errors.hs | 7 ++- src/Ganeti/Utils/Validate.hs | 8 ++- src/Ganeti/WConfd/ConfigVerify.hs | 126 ++++++++++++++++++++++++++++++++++++++ src/Ganeti/WConfd/Core.hs | 13 +++- src/Ganeti/WConfd/Server.hs | 5 +- 8 files changed, 174 insertions(+), 29 deletions(-) create mode 100644 src/Ganeti/WConfd/ConfigVerify.hs -- 2.0.0.526.g5318336
