1. 24 Jul, 2008 3 commits
  2. 23 Jul, 2008 16 commits
  3. 22 Jul, 2008 10 commits
    • Guido Trotter's avatar
      Convert SetInstanceParams to concurrency · 1a5c7281
      Guido Trotter authored
      Grab a lock for the instance we're working on, and update its params.
      
      Reviewed-by: iustinp
      1a5c7281
    • Guido Trotter's avatar
      Use Update in SetInstanceParams · ea94e1cd
      Guido Trotter authored
      When we set the instance params we're not adding a new instance, but
      just updating an existing one, so why using AddInstance?
      
      Reviewed-by: iustinp
      ea94e1cd
    • Guido Trotter's avatar
      Convert LUConnectConsole to concurrency · 8659b73e
      Guido Trotter authored
      For ConnectConsole we just need to lock the instance we're connecting
      to. We make a few rpcs to its primary node, but node daemons can now
      handle multiple queries and nodes cannot be removed till they have
      instances on them anyway. Note that since we return the ssh command, and
      that's executed outside of the ganeti daemon, without any locks held,
      the instance can then be subject to operations while we're connected to
      it, but that was the previous behavior as well.
      
      Reviewed-by: iustinp
      8659b73e
    • Guido Trotter's avatar
      Add _ExpandAndLockInstance auxiliary function. · 43905206
      Guido Trotter authored
      LUs that take an instance name as input and need to expand its name and
      lock it can use it to simplify their ExpandNames call. Possibly, and
      _ExpandAndLockNode will come as well.
      
      Reviewed-by: iustinp
      43905206
    • Guido Trotter's avatar
      Convert two (simple) LUs to be concurrent · 642339cf
      Guido Trotter authored
      LUQueryClusterInfo and LUDumpClusterConfig can be made concurrent and
      don't need to acquire any locks. In fact they don't interact with the
      cluster at all, but just with its configuration, which is thread-safe by
      design.
      
      Reviewed-by: iustinp
      642339cf
    • Guido Trotter's avatar
      Add missing empty line · 0eed6e61
      Guido Trotter authored
      Two top level definitions were separated only by one empty line.
      Fixing this.
      
      Reviewed-by: imsnah
      0eed6e61
    • Oleksiy Mishchenko's avatar
      Put the poper RAPI baserlib · c2dca9af
      Oleksiy Mishchenko authored
      Reviewed-by: imsnah
      c2dca9af
    • Michael Hanselmann's avatar
      Make argument to CleanCacheUnlocked mandatory · 57f8615f
      Michael Hanselmann authored
      Not passing the argument means it has the value None. Iterating None
      doesn't work:
        >>> "123" in None
        Traceback (most recent call last):
          File "<stdin>", line 1, in ?
        TypeError: iterable argument required
      
      Hence I rename it to "exclude" instead of "exceptions", which may be
      confusing, and make it mandatory. If one wants to clean all cache
      entries, an empty list can be passed.
      
      Reviewed-by: iustinp
      57f8615f
    • Oleksiy Mishchenko's avatar
      Split RAPI resources to pieces · 10b207d4
      Oleksiy Mishchenko authored
      Reviewed-by: iustinp
      10b207d4
    • Michael Hanselmann's avatar
      Split conditions in worker pool · 53b1d12b
      Michael Hanselmann authored
      This patch splits the single threading.Condition object used in the
      worker pool for synchronization into three.
      
      - worker_to_pool: Notified if a worker wants to notify the pool
      - pool_to_worker: Notified if the pool wants to notify a single
        or all workers
      - pool_to_pool: Used for synchronization in Quiesce
      
      Reviewed-by: ultrotter
      53b1d12b
  4. 21 Jul, 2008 3 commits
  5. 17 Jul, 2008 1 commit
  6. 16 Jul, 2008 2 commits
  7. 15 Jul, 2008 5 commits
    • Iustin Pop's avatar
      Documentation updates · a7399f66
      Iustin Pop authored
      Reviewed-by: imsnah
      a7399f66
    • Oleksiy Mishchenko's avatar
      Migrate RAPI QA to trunk. · a47f574c
      Oleksiy Mishchenko authored
      Reviewed-by: imsnah
      a47f574c
    • Iustin Pop's avatar
      Add apidoc makefile target · d128fdb6
      Iustin Pop authored
      The patch adds the apidoc target and the epydoc config file for it. Note
      that this is for epydoc 3.0 and that it will put the docs into
      ./doc/api/.
      
      The patch also adds a new .gitignore rule for the auto-generated rapi
      fragment.
      
      Reviewed-by: imsnah
      d128fdb6
    • Iustin Pop's avatar
      Rename BaseJO to BaseOpCode · 0e46916d
      Iustin Pop authored
      Since we don't have for now a job definition object anymore, we rename
      this class to BaseOpCode. It's still useful (and not merged with OpCode)
      since it holds all the 'pure' logic (no custom field handling, etc.)
      whereas OpCode holds opcode specific data (OP_ID handling, etc).
      
      The patch also fixes the module's docstring.
      
      Reviewed-by: imsnah
      0e46916d
    • Iustin Pop's avatar
      Sort the job list in _GetJobIDsUnlocked · f0d874fe
      Iustin Pop authored
      Since the IDs are integers, we can simply sort them.
      
      Reviewed-by: imsnah
      f0d874fe