Before the daemon just received raw JSON data over its socket, with no additional information (such as allowing to call different methods). This prevents extending the metad with additional calls needed for adding the import/export functionality.
This series refactors metad to use the same infrastructure that is already used for WConfd. *** BLURB HERE *** Petr Pudlak (7): Create a monad in which all Metad operations run Add a Python constant for the MetaD's socket Generate Python stub client for the Metadata daemon Add Python client for the metadata daemon Switch the metadata daemon to use the auto-generated client Add 'metad echo' command to gnt-debug Document the 'metad echo' command for gnt-debug Makefile.am | 16 +++++ lib/backend.py | 29 ++------- lib/client/gnt_debug.py | 27 +++++++++ lib/metad.py | 87 +++++++++++++++++++++++++++ lib/pathutils.py | 2 + man/gnt-debug.rst | 10 ++++ src/Ganeti/Metad/ConfigCore.hs | 123 +++++++++++++++++++++++++++++++++++++++ src/Ganeti/Metad/ConfigServer.hs | 61 ++++--------------- src/Ganeti/Metad/Server.hs | 3 +- src/hs2py.hs | 4 ++ 10 files changed, 287 insertions(+), 75 deletions(-) create mode 100644 lib/metad.py create mode 100644 src/Ganeti/Metad/ConfigCore.hs -- 2.2.0.rc0.207.ga3a616c
