Skip to content
Snippets Groups Projects
  1. Oct 08, 2012
    • Michael Hanselmann's avatar
      jstore: Nicer error message on non-numeric file content · 4fdedd09
      Michael Hanselmann authored
      
      An error like “invalid literal for int() with base 10” can be quite
      confusing.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      4fdedd09
    • Iustin Pop's avatar
      Merge ganeti-master-cleaner back into ganeti-cleaner · 46118ed2
      Iustin Pop authored
      
      As I wrote during/after the review on commit 2958c56e, “ganeti-cleaner:
      Separate queue cleaning code”, while I appreciated the permission
      separation, I didn't like too much the file-based approach:
      
      - it is a very simple script, and lots of the code is duplicated
        between the two; I wouldn't like to see "ganeti-vmcapable-cleaner",
        "ganeti-master-candidate-cleaner", etc. in the future
      - ganeti-master-cleaner "pollutes" the namespace, creating
        tab-completion conflicts with ganeti-masterd
      
      This patch simply merges the master-cleaner back into cleaner, while
      keeping the separate user permissions scheme, separate log files, etc.
      
      Additionally, it fixes two bugs in the unit-test (not run with set -u
      and wrong path in the master-cleaner log files test; yay for even
      worse safety than Python?).
      
      And finally, since we have now support for --help-completion, it adds
      bash completion support for this script :) (needs to be applied on top
      of my argument support patch series).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      46118ed2
  2. Oct 05, 2012
  3. Oct 04, 2012
  4. 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
  5. Sep 28, 2012
  6. Sep 27, 2012
  7. Sep 25, 2012
  8. Sep 24, 2012
  9. Sep 21, 2012
  10. Sep 19, 2012
  11. Sep 18, 2012
  12. Sep 12, 2012
  13. Sep 04, 2012
  14. Aug 28, 2012
  15. Aug 10, 2012
  16. Aug 07, 2012
    • Iustin Pop's avatar
      Switch job IDs to numeric · 76b62028
      Iustin Pop authored
      
      This has been a long-standing cleanup item, which we've always
      refrained from doing due to the high estimated effort needed.
      
      In reality, it turned out that after some infrastructure improvements
      (the previous patches), the actual job queue-related changes are quite
      small.
      
      We will need to update the NEWS file later, but so far the RAPI
      documentation doesn't mention that the job ID is a string (it only
      says it is "a number"), so it doesn't look like it needs update.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      76b62028
    • Iustin Pop's avatar
      Make jqueue unittests more generic · 09532dcc
      Iustin Pop authored
      
      This patch removes/abstracts some hardcoded values in the jqueue
      unittests. Currently we have a per-resource type name field, but the
      name field values are hardcoded at the call sites, instead of being
      abstracted into separate variables.
      
      This will become a problem later, so let's just introduce some new
      vars holding these; modifying the tests later will be therefore
      easier.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      09532dcc
  17. Jun 28, 2012
  18. Jun 27, 2012
  19. Jun 25, 2012
  20. Jun 20, 2012
  21. Jun 15, 2012
Loading