Skip to content
Snippets Groups Projects
  1. Dec 22, 2012
    • Constantinos Venetsanopoulos's avatar
      Add the gnt-storage client · b954f097
      Constantinos Venetsanopoulos authored
      
      Add a new client called 'gnt-storage'.
      The client interacts with the ExtStorage interface, similarly to
      the way gnt-os interacts with the OS interface.
      
      For now, only two commands are supported: 'info' and 'diagnose'.
      
      'diagnose' calculates the node status of each provider on each node,
      similarly to gnt-os diagnose. Furthermore, for every provider, it
      calculates it's nodegroup validity for each nodegroup. This is done
      inside the LU and not the client (marked as 'TODO' for the  global
      validity of gnt-os diagnose).
      
      In the future, gnt-storage can be used to manage storage pools,
      or even be extended to diagnose other storage types supported by
      Ganeti, such as lvm, drbd (INT_MIRROR) or rbd (EXT_MIRROR).
      
      Signed-off-by: default avatarConstantinos Venetsanopoulos <cven@grnet.gr>
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      [iustin@google.com: fixed Haskell compatibility and style fixes]
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      b954f097
  2. Dec 21, 2012
  3. Dec 19, 2012
  4. Dec 04, 2012
  5. Nov 20, 2012
  6. Nov 15, 2012
  7. Nov 05, 2012
    • Dato Simó's avatar
      cli.py: use None as name for tag operations on the cluster · bcd35e09
      Dato Simó authored
      
      This change is mostly cosmetic. Previously, the literal "cluster" was
      used for the 'name' field of tag operations on the cluster (as opposed
      to a node or an instance). Since this field has a type of TMaybeString
      specifically for the case of the cluster, it seems more correct to use
      None, rather than an arbitrary string (that is not used by the callee).
      
      Additionally: note in opcodes.py that groups also expect a name; the
      previous comment only referred to nodes and instances.
      
      Signed-off-by: default avatarDato Simó <dato@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      bcd35e09
  8. Oct 25, 2012
  9. Oct 17, 2012
  10. Oct 11, 2012
  11. Oct 02, 2012
    • Michael Hanselmann's avatar
      cli: Exit with status 0 for --help · d971402f
      Michael Hanselmann authored
      
      This patch is somewhat longer than was anticipated. Before, commands like
      “gnt-instance --help” would exit with the status code 1 (failure). With
      this patch, those commands exits with 0 (success) while unknown commands
      still print the usage screen and exit with status 1.
      
      To achieve this goal without too much ugly code some refactoring on
      cli._ParseArgs was necessary. Printing the version and usage screen was
      separated. At the same time this allows for some unit testing.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
      d971402f
  12. Sep 28, 2012
  13. Sep 18, 2012
  14. Aug 28, 2012
  15. Aug 23, 2012
    • Iustin Pop's avatar
      Bump pep8 version to 1.2 · 5ae4945a
      Iustin Pop authored
      
      Debian Wheezy will ship with this version, and it has many improved checks compared to 0.6, so let's:
      
      - bump version in the docs
      - silence some new checks that are wrong due to our indent=2 instead of 4
      - fix lots of errors in the code where the indentation was wrong by 1
        or 2 spaces
      - fix a few cases of == True, False, None and replace with 'is'
      - re-indent some cases where the code is OK, but pep8 complains
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      5ae4945a
  16. Aug 07, 2012
    • Iustin Pop's avatar
      Add infrastructure for building numeric namefield filters · 6f287cf3
      Iustin Pop authored
      
      Currently, all the CLI helpers in qlang.py and cli.py assume that all
      namefields are string, which leads to various breakage in case the're
      actually not.
      
      To improve the flexibility of the helpers, we add a bit of
      infrastructure for accepting so called "numeric" namefields; this is a
      bit of a hack, as a proper fix would actually add QFT_* support to the
      helpers, and case for example the regex/globbing on QFT_TEXT, etc. But
      that's left for (eventual) later improvement.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      6f287cf3
  17. Aug 02, 2012
    • Iustin Pop's avatar
      Fix uses of OpPrereqError without code info · 2cfbc784
      Iustin Pop authored
      
      A while back, we did cleanup the code and ensured (manually) that use
      of OpPrereqError includes an errors.ECODE_* field as second
      argument. Since we cannot automate the check for this, it turns out
      that more and more such usage has crept over the years, including in
      the master code (the use on the CLI side is not as important).
      
      Note that this also uncovered a few errors in ovf.py where the errors
      messages were wrongly constructed.
      
      Still looking for a way to automate this check…
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      2cfbc784
  18. Jul 05, 2012
  19. May 29, 2012
  20. May 22, 2012
  21. May 15, 2012
  22. May 11, 2012
  23. Apr 26, 2012
  24. Apr 13, 2012
  25. Apr 12, 2012
  26. Mar 30, 2012
  27. Feb 17, 2012
  28. Jan 26, 2012
  29. Jan 24, 2012
  30. Jan 23, 2012
  31. Jan 20, 2012
Loading