Skip to content
Snippets Groups Projects
  1. Sep 05, 2008
    • Michael Hanselmann's avatar
      noded: Get job queue lock while purging queue content · f1f3f45c
      Michael Hanselmann authored
      Only one process should modify the queue at the same time.
      
      Reviewed-by: iustinp
      f1f3f45c
    • Michael Hanselmann's avatar
      QA: Remove dry run mode · 26a61f87
      Michael Hanselmann authored
      It didn't work as planned because some commands depend on the return
      value or output of some operations.
      
      Reviewed-by: iustinp
      26a61f87
    • Guido Trotter's avatar
      Add locking.ALL_SET constant and use it · e310b019
      Guido Trotter authored
      Rather than specifying None in needed_locks every time, with a nice
      comment saying to read what we mean rather than what we write, and that
      None actually means All, in our magic world, we'll hide this secret
      under the ALL_SET constant in the locking module, which has value, you
      guessed it, None. After that we'll substitute all usage in cmdlib.
      
      Some comments and examples have been fixed as well.
      
      Reviewed-by: iustinp
      e310b019
    • Michael Hanselmann's avatar
      utils.SplitTime: More rounding fixes · 45bc5e4a
      Michael Hanselmann authored
      SplitTime didn't round the same on different platforms. This patch changes
      it to use microseconds and not care about rounding.
      
      Reviewed-by: iustinp
      45bc5e4a
    • Iustin Pop's avatar
      Remove bom-byte · e0458af5
      Iustin Pop authored
      This is not nice, removing it :)
      
      Please use 'set nobomb' in your vi init file.
      
      Reviewed-by: ultrotter
      e0458af5
  2. Sep 04, 2008
  3. Sep 02, 2008
  4. Sep 01, 2008
    • Alexander Schreiber's avatar
      merge r1539 from branches/ganeti/ganeti-1.2 · 34b6ab97
      Alexander Schreiber authored
      Display VNC console port in gnt-instance info.
      
      
      Reviewed-by: iustinp
      
      34b6ab97
    • Alexander Schreiber's avatar
      merge r1538 from branches/ganeti/ganeti-1.2 · 5bc84f33
      Alexander Schreiber authored
      Check HVM device type on instance modify as well.
      
      Reviewed-by: imsnah
      
      5bc84f33
    • Guido Trotter's avatar
      Check memory size before setting it · cfefe007
      Guido Trotter authored
      With this change when a user asks for a new memory size for an instance,
      the number is checked instead of just applied. The operation fails only
      if the instance would not be able to restart on its primary node, but
      generates warnings should it be impossible to failover the instance or
      should the computation be impossible due to nodes being unreachable.
      
      This is a forward-port from branches/ganeti-1.2
      
      Original-Reviewed-by: iustinp
      Reviewed-by: iustinp
      
      cfefe007
    • Guido Trotter's avatar
      Pass the force param to SetInstanceParms · 4300c4b6
      Guido Trotter authored
      It was already allowed in gnt-instance modify, but ignored.
      It will be used to force skipping parameter checks.
      
      This is a forward-port from branches/ganeti-1.2
      
      Original-Reviewed-by: imsnah
      Reviewed-by: iustinp
      4300c4b6
  5. Aug 29, 2008
  6. Aug 28, 2008
    • Michael Hanselmann's avatar
      Fix error message when masterd is not listening · 082c5adb
      Michael Hanselmann authored
      Reported by Iustin.
      
      Reviewed-by: iustinp
      082c5adb
    • Guido Trotter's avatar
      Fix issue when acquiring empty lock sets · 6683bba2
      Guido Trotter authored
      By design if an empty list of locks is acquired from a set, no locks are
      acquired, and thus release() cannot be called on the set. On the other
      hand if None is passed instead of the list, the whole set is acquired,
      and must later be released. When acquiring whole empty sets, a release
      must happen too, because the set-lock is acquired.
      
      Since we used to overwrite the required locks (needed_locks) with the
      acquired ones, we weren't able to distinguish the two cases (empty list
      of locks required, and all locks required, but an empty list returned
      because the set is empty). Valid solutions include:
        (1) forbidding the acquire of empty lists of locks
        (2) skipping the acquire/release on empty lists of locks
        (3) separating the to-acquire and the acquired list
      
      This patch implements the third approach, and thus LUs will find
      acquired locks in the acquired_locks dict, rather than in needed_locks.
      The LUs which used this feature before have been updated. This makes it
      easier because it doesn't force LUs to do more checks on corner cases,
      which are easily forgettable (1) and allows more flexibility if we want
      LUs to release (part-of) the locks (which is still a possibly scary
      operation, but anyway). This easily combines with (2) should we choose
      to implement it.
      
      Reviewed-by: imsnah
      6683bba2
  7. Aug 27, 2008
Loading