1. 13 Feb, 2014 1 commit
  2. 27 Nov, 2013 1 commit
  3. 22 Nov, 2013 4 commits
  4. 10 Jun, 2013 1 commit
  5. 28 May, 2013 2 commits
  6. 27 May, 2013 1 commit
  7. 20 May, 2013 1 commit
    • Giorgos Korfiatis's avatar
      quotaholder: Lock holdings in a single query · fdc56d75
      Giorgos Korfiatis authored
      Order by primary key when selecting multiple holdings for update;
      this most probably ensures that locking will happen in that order.
      
      As per commit 2f90645, we select all holdings for the given holders,
      rather that specifying all tuples (holder, source, resource), in order
      to avoid query explosion.
      fdc56d75
  8. 16 May, 2013 1 commit
  9. 30 Apr, 2013 1 commit
  10. 29 Apr, 2013 3 commits
  11. 25 Apr, 2013 1 commit
  12. 24 Apr, 2013 2 commits
  13. 23 Apr, 2013 1 commit
  14. 22 Apr, 2013 3 commits
  15. 19 Apr, 2013 3 commits
  16. 18 Apr, 2013 2 commits
  17. 12 Apr, 2013 1 commit
  18. 11 Apr, 2013 1 commit
  19. 08 Apr, 2013 1 commit
    • Giorgos Korfiatis's avatar
      Prepare quotaholder calls for the new API · 58804d8b
      Giorgos Korfiatis authored
      - {accept, reject}_commission take a single serial
      - resolve_pending_commissions takes a set of serials to accept
        and a set of serials to reject
      - commission exceptions record the provision on which they are raised
        and additional details
      - issue_commission takes a new option `force': when True, the quotaholder
        will skip limit checks
      58804d8b
  20. 05 Apr, 2013 9 commits
    • Giorgos Korfiatis's avatar
      New quota functions in astakos · d337d476
      Giorgos Korfiatis authored
      Handle quotas as nested dictionaries indexed by:
      user uuid, source, resource name
      d337d476
    • Giorgos Korfiatis's avatar
      Rename capacity to limit · 3c713bcc
      Giorgos Korfiatis authored
      3c713bcc
    • Giorgos Korfiatis's avatar
      Turn holding into a counter · 36267008
      Giorgos Korfiatis authored
      The role of Holding is now only to keep track of usage against
      a limit. There is no more exporting of resources and thus no need
      for the stock counters.
      36267008
    • Giorgos Korfiatis's avatar
      Import resource from no source · 15309172
      Giorgos Korfiatis authored
      Since quantity (initial supply) has been removed from Policy,
      there is no direct way to set the initial available resource,
      for example the total available VMs for holding cyclades.
      
      This is now achieved by issuing (and accepting) a commission
      from a source set to None.
      15309172
    • Giorgos Korfiatis's avatar
      Merge Policy model into Holding · 79bed174
      Giorgos Korfiatis authored
      Since the removal of quantity, Policy was left with only one value:
      capacity. To simplify things, we directly include capacity in Holding.
      
      This makes obsolete the following functions, which are removed:
      get_limits, set_limits, get_holding, set_holding.
      79bed174
    • Giorgos Korfiatis's avatar
      Redesign quota holding · 92bc7295
      Giorgos Korfiatis authored
      A Holding now tracks the current usage (amount imported)
      and the amount available to export (stock).
      
      Counters come in pairs (imported_min, imported_max and
      stock_min, stock_max respectively) to allow for a two-step
      commission.
      
      For example, issuing a commission to import some quantity
      increases imported_max. When accepting the commission,
      imported_min increases by the same quantity; at the same time
      the stock counters increase, too, since the quantity imported
      becomes available for re-export.
      
      This commissioning logic is factored out for clarity in file commission.py.
      
      Remove also quantity (initial supply) from Policy.
      This can be simulated by setting the holding counters to the desired value.
      Since capacity now represents the total capacity, care must be taken
      that it be no less than the initial supply set as suggested.
      92bc7295
    • Giorgos Korfiatis's avatar
      Default quotaholder input to empty list · 6ef75321
      Giorgos Korfiatis authored
      Keyword arguments in quotaholder calls defaulted to empty pair,
      although they were actually expecting a list.
      6ef75321
    • Giorgos Korfiatis's avatar
      wip Remove import_limit and export_limit from policy · 7608c66c
      Giorgos Korfiatis authored
      If needed, they can be simulated by importing from special resources.
      7608c66c
    • Giorgos Korfiatis's avatar
      a9183704