Skip to content
Snippets Groups Projects
  1. Mar 21, 2013
  2. Nov 20, 2012
  3. Oct 08, 2012
    • 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
  4. Sep 28, 2012
  5. Sep 27, 2012
  6. Sep 21, 2012
  7. Jun 12, 2012
    • Iustin Pop's avatar
      Fix daemon-util with non-root user models · 3c29e49d
      Iustin Pop authored
      
      Commit 4b42c3d6 broke non-root user mode since, while trying to do a
      cleanup a move all local variable definitions to the start of the
      function; however, the plain_name var is only defined later, so this
      actually doesn't work.
      
      Note that enabling set -u doesn't _directly_ work, since we rely on
      some variables which are usually undefined (EXTRA_*_ARGS, etc.). It
      can be fixed, but in a later patch.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      3c29e49d
  8. May 23, 2012
  9. May 21, 2012
  10. Mar 28, 2012
  11. Dec 21, 2011
  12. Nov 17, 2011
  13. Aug 30, 2011
  14. Aug 25, 2011
  15. Aug 19, 2011
  16. Aug 05, 2011
  17. Aug 04, 2011
  18. Mar 24, 2011
  19. Jan 06, 2011
  20. Dec 16, 2010
    • Michael Hanselmann's avatar
      ensure-dirs: Speed up when using big queues · 196d70fa
      Michael Hanselmann authored
      
      The “ensure-dirs” script as included in Ganeti 2.3 is very slow when
      working with big queues requiring a change of permissions on many or all
      files.
      
      $ find /var/lib/ganeti/queue/ | wc -l
      52354
      
      Before this change:
      $ time /usr/local/lib/ganeti/ensure-dirs -f
      real    16m4.739s
      
      While not adressed in this patch, I'd like to record the overall
      ineffiency of the “ensure-dirs” script, even after this change:
      
      $ time /usr/local/lib/ganeti/ensure-dirs -f
      real    5m57.362s
      […]
      $ strace -e clone,execve -f -c /usr/local/lib/ganeti/ensure-dirs -f
      % time     seconds  usecs/call     calls    errors syscall
      ------ ----------- ----------- --------- --------- ----------------
       50.08    5.147090          49    104774           clone
       49.92    5.131094          49    104739           execve
      
      More changes will be needed. Just for comparision, a small Python
      snippet changing permissions on all files (“ensure-dirs” changes the
      owner too):
      
      $ time python -c 'import os; from ganeti import utils;
      [os.chmod(i, 0644) for i in
      utils.ListVisibleFiles("/var/lib/ganeti/queue/archive/big")]'
      real    0m0.605s
      […]
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      196d70fa
  21. Nov 29, 2010
  22. Nov 19, 2010
  23. Nov 16, 2010
  24. Oct 29, 2010
  25. Oct 28, 2010
  26. Oct 26, 2010
  27. Oct 14, 2010
  28. Oct 13, 2010
  29. Oct 07, 2010
Loading