This patch series fixes bugs with the current query implementation, adds
support for a few missing fields, changes a bit the behaviour so that
the output more closely matches the masterd output, adds support for
classic queries (like in Python, piggy-backed on top of query2) and then
enables the queries for nodes/groups to go over the query socket.

At the end of the patch series, there are a few cleanup patches for
things I've seen (and found wanting) during the writing of the main
content.

The patch series passes distcheck/commit check/a quick QA.

Iustin Pop (23):
  Rename Ganeti/HTools/Utils.hs to Ganeti/Utils.hs
  Remove qualified import of Utils.hs into its test module
  Fixup TAGS generation with newer GHC
  Add missing ipolicy field
  Fixup node live field names
  Fixup hypervisor queries in node query
  Fixup node disk free/total queries
  Add functionality for checking validity of names
  Use the new name filtering behaviour in query
  Add an Utils.NiceSort() equivalent
  Switch ordering of names on query to niceSort
  Add function for getting a group's merged disk params
  Try to auto-enable htools-rapi and split query
  Simplify a bit queryFields
  Fix the node powered field
  Add a makeSimpleFilter function
  Add support for classic queries
  Enable query socket usage in gnt-node/gnt-group
  A few cleanups in Makefile.am
  Add a helper for query field checks
  Cleanup/expand the filter/query tests
  Cleanup network timeouts and htools imports
  Cleanup haddock documentation a bit

 Makefile.am                            |  193 +++++++++++-----------
 configure.ac                           |   67 +++++---
 htest/Test/Ganeti/HTools/Text.hs       |    2 +-
 htest/Test/Ganeti/HTools/Utils.hs      |  132 ---------------
 htest/Test/Ganeti/Query/Filter.hs      |   85 +++++++---
 htest/Test/Ganeti/Query/Query.hs       |   19 +++
 htest/Test/Ganeti/Utils.hs             |  218 +++++++++++++++++++++++++
 htest/test.hs                          |    4 +-
 htools/Ganeti/Confd/Server.hs          |    4 +-
 htools/Ganeti/Confd/Utils.hs           |    2 +-
 htools/Ganeti/Config.hs                |    8 +
 htools/Ganeti/Daemon.hs                |    2 +-
 htools/Ganeti/HTools/CLI.hs            |    4 +-
 htools/Ganeti/HTools/Cluster.hs        |    2 +-
 htools/Ganeti/HTools/ExtLoader.hs      |    2 +-
 htools/Ganeti/HTools/Instance.hs       |    2 +-
 htools/Ganeti/HTools/Loader.hs         |    2 +-
 htools/Ganeti/HTools/Program/Hbal.hs   |    2 +-
 htools/Ganeti/HTools/Program/Hinfo.hs  |    2 +-
 htools/Ganeti/HTools/Program/Hspace.hs |    2 +-
 htools/Ganeti/HTools/Rapi.hs           |   12 +-
 htools/Ganeti/HTools/Simu.hs           |    2 +-
 htools/Ganeti/HTools/Text.hs           |    2 +-
 htools/Ganeti/HTools/Types.hs          |   10 --
 htools/Ganeti/HTools/Utils.hs          |  232 ---------------------------
 htools/Ganeti/Luxi.hs                  |   10 +-
 htools/Ganeti/Objects.hs               |    1 +
 htools/Ganeti/Query/Common.hs          |    5 +
 htools/Ganeti/Query/Filter.hs          |   21 +++
 htools/Ganeti/Query/Group.hs           |    3 +-
 htools/Ganeti/Query/Node.hs            |   56 ++++---
 htools/Ganeti/Query/Query.hs           |   98 +++++++++---
 htools/Ganeti/Query/Server.hs          |   20 +++
 htools/Ganeti/Query/Types.hs           |   13 +-
 htools/Ganeti/Ssconf.hs                |    2 +-
 htools/Ganeti/THH.hs                   |    2 +-
 htools/Ganeti/Utils.hs                 |  275 ++++++++++++++++++++++++++++++++
 htools/haddock-prologue                |   10 +-
 htools/htools.hs                       |    2 +-
 lib/client/gnt_group.py                |   10 +-
 lib/client/gnt_node.py                 |   19 ++-
 lib/rapi/rlib2.py                      |   10 +-
 42 files changed, 956 insertions(+), 613 deletions(-)
 delete mode 100644 htest/Test/Ganeti/HTools/Utils.hs
 create mode 100644 htest/Test/Ganeti/Utils.hs
 delete mode 100644 htools/Ganeti/HTools/Utils.hs
 create mode 100644 htools/Ganeti/Utils.hs

-- 
1.7.10.4

Reply via email to