1. 10 Jul, 2015 1 commit
    • Klaus Aehlig's avatar
      Add a new deamon for maintenance · b2398985
      Klaus Aehlig authored
      This daemon will take over cluster maintenance as per
      our design document. As it will heavily depend on the monitoring
      daemon, it will only be enabled (at configure time) if the
      monitoring daemon is enabled as well. It will also run as
      the same user and group.
      
      In this commit only the plain daemon is added with the only supported
      request being the question for the supported protocol versions.
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
      b2398985
  2. 09 Jun, 2015 1 commit
  3. 29 May, 2015 1 commit
  4. 19 Nov, 2014 1 commit
  5. 12 Sep, 2014 1 commit
  6. 16 Jul, 2014 1 commit
  7. 13 Jun, 2014 1 commit
  8. 10 Jun, 2014 1 commit
    • Jose A. Lopes's avatar
      Modify how the KVM daemon is started/stopped · 7f75a9fb
      Jose A. Lopes authored
      This patch modifies how the KVM daemon is started/stopped.  After this
      patch, the KVM daemon is always started by default, as it will
      terminate itself if necessary, and it is restarted by the watcher.
      
      Also, changes to user shutdown and vm capable attributes will cause
      the KVM daemon instances on the corresponding nodes to be
      started/stopped accordingly.  This is achieved through the helper
      function 'EnsureKvmdOnNodes'.
      Signed-off-by: default avatarJose A. Lopes <jabolopes@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
      7f75a9fb
  9. 03 Jun, 2014 1 commit
  10. 22 May, 2014 1 commit
  11. 13 May, 2014 4 commits
  12. 29 Apr, 2014 2 commits
  13. 28 Apr, 2014 1 commit
    • Apollon Oikonomopoulos's avatar
      daemon-util: support for daemons loaded on demand · 324cd7bf
      Apollon Oikonomopoulos authored
      We add a second category of daemons in daemon-util, those that are
      started on demand and should not be started by the start_all action, but
      should be stopped during service shutdown. This category currently
      includes metad and kvmd.
      
      To this end we introduce two more array variables:
      
       - ON_DEMAND_DAEMONS: currently holds kvmd and metad, which should only
         be stopped during stop-all.
      
       - ALL_DAEMONS: is the union of DAEMONS and ON_DEMAND_DAEMONS, i.e. the
         list of all known daemons.
      
      We also change the daemon-util test to expect kvmd and metad in the stop
      daemon list.
      Signed-off-by: default avatarApollon Oikonomopoulos <apoikos@gmail.com>
      Reviewed-by: default avatarJose A. Lopes <jabolopes@google.com>
      324cd7bf
  14. 02 Apr, 2014 1 commit
  15. 27 Feb, 2014 1 commit
  16. 14 Feb, 2014 1 commit
  17. 12 Feb, 2014 1 commit
  18. 05 Feb, 2014 1 commit
  19. 20 Jan, 2014 1 commit
  20. 16 Oct, 2013 1 commit
  21. 24 Jul, 2013 1 commit
    • Apollon Oikonomopoulos's avatar
      daemon-util: pass --oknodo at rotate_logs · 9a8e4b73
      Apollon Oikonomopoulos authored
      daemon-util's rotate_logs() did not pass --oknodo to start-stop-daemon while
      HUPing the daemon processes. As a result, rotate_logs would fail for a
      non-running daemon causing rotate_all_logs to exit prematurely.
      
      We can fix this by either passing --oknodo to start-stop-daemon, or have
      rotate_all_logs ignore any errors. The former is probably a safer approach - as
      it doesn't mask any potential coding errors in rotate_logs - and is also
      semantically correct (we only care about log rotation if a daemon is actually
      running).
      Signed-off-by: default avatarApollon Oikonomopoulos <apoikos@gmail.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      9a8e4b73
  22. 23 Jul, 2013 1 commit
  23. 18 Jul, 2013 1 commit
  24. 17 Jul, 2013 2 commits
  25. 11 Jul, 2013 1 commit
  26. 29 May, 2013 1 commit
  27. 21 Mar, 2013 1 commit
  28. 20 Nov, 2012 1 commit
  29. 08 Oct, 2012 1 commit
    • 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
  30. 28 Sep, 2012 1 commit
  31. 27 Sep, 2012 2 commits
  32. 21 Sep, 2012 1 commit
  33. 12 Jun, 2012 1 commit
    • 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
  34. 23 May, 2012 1 commit