Skip to content
Snippets Groups Projects
  1. Apr 30, 2013
    • Iustin Pop's avatar
      Fix bug in group queries related to node/instance fields · c42fbe28
      Iustin Pop authored
      
      Since we use the primitive string type for group UUIDs, the group
      fields have a bug where we pass the group name as filter for node
      tests, whereas the nodes themselves use the group UUID. This results
      in zero node count, empty node list, and no instances being reported
      as assigned to groups.
      
      The patch fixes this and adds a test for the node count. It does some
      test generation improvement, and also cleans up whitespace issues in
      Test/G/Q/Query.hs (the functions case_queryNode_allfields,
      prop_queryGroup_noUnknown and case_queryGroup_allfields are unchanged
      but simply have indentation fixed).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      
      Cherry-pick of e7124835, fixes issue 436
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      
      Conflicts:
      	test/hs/Test/Ganeti/Objects.hs
      	test/hs/Test/Ganeti/Query/Query.hs
      c42fbe28
  2. Apr 29, 2013
  3. Apr 11, 2013
  4. Apr 08, 2013
  5. Mar 08, 2013
  6. Mar 05, 2013
  7. Mar 04, 2013
  8. Feb 22, 2013
  9. Feb 12, 2013
  10. Feb 11, 2013
  11. Feb 08, 2013
  12. Feb 07, 2013
  13. Feb 05, 2013
  14. Jan 29, 2013
  15. Jan 21, 2013
  16. Jan 18, 2013
  17. Jan 16, 2013
  18. Jan 15, 2013
    • Iustin Pop's avatar
      Make niceSort a wrapper over niceSortKey id · a7f0953a
      Iustin Pop authored
      
      Currently, niceSort behaves differently than niceSortKey in cases
      where the parsed groups are equal but the original not, as it uses
      both members of the tuple as opposed to just the first one. Both
      niceSortKey and the Python code use only the first one, so in corner
      cases we can have different behaviour of these functions.
      
      To rectify this, we change niceSort to be a simple wrapper over
      "niceSortKey id", so that we get consistent behaviour.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      a7f0953a
Loading