Skip to content
Snippets Groups Projects
  1. Jun 22, 2011
  2. May 30, 2011
    • Apollon Oikonomopoulos's avatar
      Fix argument order in ReserveLV and ReserveMAC · fa6347d0
      Apollon Oikonomopoulos authored
      
      ConfigWriter.ReserveLV() and Configwriter.ReserveMAC() called
      TemporaryReservationManager.Reserve() with the ec_id and resource arguments
      swapped. As a result, two reservation attempts for the same resource type
      within the same LU would fail, even if the resources requested were different,
      e.g.:
      
        $ gnt-instance add -t sharedfile -o debootstrap+default \
             --net 0:mac=00:01:02:03:04:00 \
             --net 1:mac=00:01:02:03:04:ff \
             --disk 0:size=2g  test_instance
        Failure: prerequisites not met for this operation:
        error type: resource_not_unique, error details:
        MAC address 00:01:02:03:04:ff already in use in cluster
      
      This patch fixes the argument order in the call to Reserve().
      
      Signed-off-by: default avatarApollon Oikonomopoulos <apollon@noc.grnet.gr>
      fa6347d0
  3. May 06, 2011
  4. Apr 20, 2011
    • Iustin Pop's avatar
      Prevent ssconf values from having non-string values · 15df79ad
      Iustin Pop authored
      
      For whatever reason, my test cluster managed to acquire
      shared_file_storage_dir with a None value, instead of empty
      string. This is not flagged in masterd itself, but the node daemon
      will fail in writing the value to disk, as it calls len() on the
      received value.
      
      Since this is a bad case, we should detect it as soon as possible (we
      basically shouldn't be able to set it), but in the meantime we at
      least prevent ssconf writes with such values.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      15df79ad
    • Apollon Oikonomopoulos's avatar
      Core shared file storage support · 53197381
      Apollon Oikonomopoulos authored
      
      This patch introduces core file storage support, consisting of the following:
      
      A configure-time switch for enabling/disabling shared file storage
      support and controlling the shared file storage location:
      --with-shared-file-storage-dir=.  Shared file storage configuration is then
      available as _autoconf.ENABLE_SHARED_FILE_STORAGE and
      _autoconf.SHARED_FILE_STORAGE_DIR and there is a cluster-wide ssconf
      key named "shared_file_storage_dir" for changing the file location.
      
      A new disk template named "sharedfile" (DT_SHARED_FILE), using
      ganeti.bdev.FileStorage.
      
      Auxiliary functions in lib/config.py to handle shared file storage.
      
      Signed-off-by: default avatarApollon Oikonomopoulos <apollon@noc.grnet.gr>
      [iustin@google.com: small style fixes]
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      53197381
  5. Feb 01, 2011
  6. Jan 28, 2011
  7. Jan 20, 2011
  8. Dec 13, 2010
  9. Dec 09, 2010
  10. Dec 08, 2010
  11. Dec 02, 2010
  12. Nov 30, 2010
  13. Nov 23, 2010
  14. Nov 11, 2010
  15. Nov 01, 2010
  16. Oct 28, 2010
  17. Oct 27, 2010
  18. Oct 26, 2010
  19. Oct 25, 2010
  20. Oct 22, 2010
  21. Oct 13, 2010
Loading