1. 23 Apr, 2010 1 commit
  2. 21 Apr, 2010 3 commits
  3. 20 Apr, 2010 1 commit
  4. 19 Apr, 2010 1 commit
  5. 16 Apr, 2010 3 commits
    • Michael Hanselmann's avatar
      Add daemon for instance import and export · 2d76b580
      Michael Hanselmann authored
      This backend daemon for instance import and export will be used to
      transfer instance data to other machines. It is implemented in a generic
      way to support different ways of data input and output. The third-party
      program “socat”, which is already used by the KVM hypervisor abstraction,
      is used to connect to remote machines using SSL/TLS. After starting the
      child processes in a separate process group, the import/export daemon
      monitors their output and updates a status file regularily. This status
      file can then be read by ganeti-noded (not in this patch).
      
      Three I/O methods are supported: Raw disk, file and script. Each of these
      can be used for import and export.
      
      Similar to daemon-util, an incomplete set of tests written in Bash is
      included.
      
      Two future enhancements are planned:
      - Run parts of the command chain as a dedicated user (privilege
        separation).
      - Currently users of this daemon have to poll the status file while data
        is transferred. This is inefficient and creates unnecessary delays. By
        adding “dd” into the chain and sending it SIGUSR1 regularily, we can get
        some statistics, optimize the polling frequenc and even provide the user
        with an ETA (which isn't available with all current methods to
        import/export instance data).
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      2d76b580
    • Balazs Lecz's avatar
      Add basic unittests for uid_pool · 93be53da
      Balazs Lecz authored
      Signed-off-by: default avatarBalazs Lecz <leczb@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      93be53da
    • Balazs Lecz's avatar
      1338f2b4
  6. 15 Apr, 2010 2 commits
  7. 09 Apr, 2010 1 commit
  8. 06 Apr, 2010 1 commit
  9. 17 Mar, 2010 1 commit
  10. 15 Mar, 2010 1 commit
  11. 12 Mar, 2010 4 commits
  12. 08 Mar, 2010 1 commit
    • Iustin Pop's avatar
      Implement disabling of file-based storage · cb7c0198
      Iustin Pop authored
      Rationale: the file-based storage backend can add/remove files under a
      certain directory. However, the master node is also controlling the
      setting of the file-based root directory, so basically it means we can't
      prevent arbitrary modifications by the master of the node's filesystem.
      
      In order to mitigate this for setups where the file-based storage is not
      used, we introduce a new setting at ./configure time, that controls the
      enable/disable of file-based storage. Since this is not modifiable by
      the master (over RPC), it is now possible in this case to prevent
      unintended modifications of the node's filesystem from the master.
      
      The new setting is used in bdev.py to not expose the file-based storage
      at all, and in cmdlib.py to prevent attempts at creation of such
      instances.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      cb7c0198
  13. 26 Feb, 2010 2 commits
  14. 23 Feb, 2010 2 commits
  15. 19 Feb, 2010 1 commit
  16. 18 Feb, 2010 1 commit
  17. 12 Feb, 2010 1 commit
  18. 11 Feb, 2010 2 commits
  19. 10 Feb, 2010 1 commit
  20. 01 Feb, 2010 2 commits
  21. 28 Jan, 2010 1 commit
    • Iustin Pop's avatar
      Add capability to use syslog for logging · 551b6283
      Iustin Pop authored
      This patch adds a configure-time parameter that will set the defaults
      used by all programs, and command-line parameters in the daemons that
      allow overriding it.
      
      Syslog 'yes' enables syslog in addition to file-based logging, 'only'
      enables syslog and disables file-based syslog.
      
      The log entries will be of the form:
      Jan 27 08:45:04 node2 ganeti-noded[14504]: INFO 172.24.227.5:50850 PUT
      /jobqueue_update HTTP/1.0 200
      Jan 27 08:45:05 node2 ganeti-noded[14505]: INFO 172.24.227.5:50853 PUT
      /lv_list HTTP/1.0 200
      
      and (for a multi-threaded program):
      Jan 27 08:51:48 node1 ganeti-masterd[15491]: (MainThread) INFO
      ganeti-masterd daemon startup
      Jan 27 08:51:49 node1 ganeti-masterd[15491]: (MainThread) INFO
      Inspecting job queue
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      551b6283
  22. 25 Jan, 2010 1 commit
    • Iustin Pop's avatar
      Add a crude disable for DRBD barriers · 89b70f39
      Iustin Pop authored
      Ideally we want to/will have per-device DRBD controls of disk/metadata
      flushes. In the meantime, we want at least a disable of the barrier
      functionality for cases where one has battery-backed caches.
      
      Background: DRBD has four mechanism of handling ordered disk-writes.
      From the drbdsetup man-page, these are: barrier, flush, drain and none.
      DRBD prior to 8.2 only has drain and none. This patch makes all 8.x
      versions of DRBD disable all methods, and revert to none, in case one
      fully trusts batteries (either UPS for the whole system or battery for
      NVRAM).
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      89b70f39
  23. 22 Jan, 2010 1 commit
  24. 14 Jan, 2010 2 commits
  25. 13 Jan, 2010 1 commit
  26. 12 Jan, 2010 1 commit
  27. 05 Jan, 2010 1 commit