1. 14 Dec, 2008 24 commits
  2. 12 Dec, 2008 2 commits
  3. 11 Dec, 2008 2 commits
    • Iustin Pop's avatar
      Fix epydoc format warnings · c41eea6e
      Iustin Pop authored
      This patch should fix all outstanding epydoc parsing errors; as such, we
      switch epydoc into verbose mode so that any new errors will be visible.
      
      Reviewed-by: imsnah
      c41eea6e
    • Iustin Pop's avatar
      Switch epydoc to parse only · 16f323ce
      Iustin Pop authored
      epydoc seems to be mightily confused by decorators and how they change
      functions (it starts mixing the parameters of the decorated function
      into the decorator itself); so we want it to parse only and not look at
      the objects themselves.
      
      Reviewed-by: ultrotter
      16f323ce
  4. 10 Dec, 2008 2 commits
  5. 09 Dec, 2008 4 commits
    • Michael Hanselmann's avatar
      ganeti.http: Remove _HttpClientError · 13b63666
      Michael Hanselmann authored
      This is a leftover from old code.
      
      Reviewed-by: iustinp
      13b63666
    • Michael Hanselmann's avatar
      ganeti.http.server: Increase connection backlog to 1024 · 59305197
      Michael Hanselmann authored
      This solves a problem with many concurrent requests. By default, 1024
      is the maximum backlog on Linux kernels. We limit the number of clients
      through MAX_CHILDREN, too. The idea of just increasing the backlog is
      taken from lighttpd.
      
      Reviewed-by: amishchenko
      59305197
    • Michael Hanselmann's avatar
      RPC: Compress file upload data · 12bce260
      Michael Hanselmann authored
      Adding compression to larger amounts of data is more efficient than
      transferring it (len(nodes) - 1) times over the network without
      compression. We were able to compress a 800KB config file to about
      30 KB, which is about 40 KB with Base64 encoding (required due to
      the way SimpleJson handles strings).
      
      Reviewed-by: ultrotter
      12bce260
    • Iustin Pop's avatar
      Warn for instances living on offline nodes · 832261fd
      Iustin Pop authored
      The patch also changes the result to error for non-reachable secondary nodes
      (as for primary nodes).
      
      Reviewed-by: ultrotter
      832261fd
  6. 08 Dec, 2008 3 commits
    • Iustin Pop's avatar
      Fix _AdjustCandidatePool · ee513a66
      Iustin Pop authored
      Currently the ConfigWriter.MaintainCandidatePool returns node names, and
      _AdjustCandidatePool uses them as such, but then it passes these to
      context.ReaddNode which in turn passes them to jqueue.JobQueue.AddNode which
      uses them as objects.Node instances.
      
      Since this is currently the only usage, we change return type from
      ConfigWriter.MaintainCandidatePool to be objects and adjust the logging of
      their names, so that the auto-adjusement works.
      
      Reviewed-by: ultrotter
      ee513a66
    • Iustin Pop's avatar
      gnt-node modify: add the offline attribute · 3a5ba66a
      Iustin Pop authored
      This patch changes gnt-node modify and the associated opcode/lu to allow
      modification of the node offline attribute.
      
      Setting a node into offline mode automatically demotes it from the
      master role.
      
      Reviewed-by: ultrotter
      3a5ba66a
    • Iustin Pop's avatar
      RPC: do not make calls to offline nodes · ed83f5cc
      Iustin Pop authored
      This patch changes the _MultNodeCall and _SingleNodeCall helpers to not
      actually make calls to offline nodes, but instead generate fake
      responses which have a parameter caller 'offline' set so that callers
      can check for this value if they want (otherwise, it's just a failed RPC
      call).
      
      Reviewed-by: ultrotter
      ed83f5cc
  7. 07 Dec, 2008 1 commit
    • Guido Trotter's avatar
      chmod ganeti.initd before uploading it · c6286afc
      Guido Trotter authored
      When an upload is done to a node which doesn't have any version of
      ganeti installed, this prevents a non-executable-initd error later in
      the upload.
      
      Reviewed-by: imsnah
      c6286afc
  8. 05 Dec, 2008 2 commits
    • Iustin Pop's avatar
      Make cluster verify understand offline nodes · 0a66c968
      Iustin Pop authored
      This patch changes cluster verify to not alert on offline nodes, but
      instead just show a note at the end with the number of such nodes.
      
      It also removes warnings in verify-disks and hooks about failures to
      make rpc calls to such nodes.
      
      Reviewed-by: ultrotter
      0a66c968
    • Iustin Pop's avatar
      cmdlib: check node stats in prereqs · 7527a8a4
      Iustin Pop authored
      This patch adds checks for offline nodes in most instance LUs so that we
      can work with offline secondaries, but not with offline primaries. Some
      cases (like grow disk, which needs both sides up) are not allowing
      offline nodes at all.
      
      Reviewed-by: ultrotter
      7527a8a4