1. 22 Nov, 2013 1 commit
  2. 09 Oct, 2013 1 commit
  3. 10 Jun, 2013 1 commit
  4. 28 May, 2013 1 commit
  5. 20 May, 2013 1 commit
  6. 29 Apr, 2013 4 commits
  7. 24 Apr, 2013 2 commits
  8. 22 Apr, 2013 1 commit
  9. 19 Apr, 2013 2 commits
  10. 12 Apr, 2013 1 commit
  11. 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
  12. 05 Apr, 2013 11 commits
    • Giorgos Korfiatis's avatar
      Rename capacity to limit · 3c713bcc
      Giorgos Korfiatis authored
    • 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.
    • 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.
    • 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.
    • 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
      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.
    • 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.
    • Giorgos Korfiatis's avatar
    • Giorgos Korfiatis's avatar
      wip Rename entity into holder · 9774e224
      Giorgos Korfiatis authored
    • Giorgos Korfiatis's avatar
      wip Remove Entity model · d99e79e2
      Giorgos Korfiatis authored
    • Giorgos Korfiatis's avatar
      wip Remove dependency from commissioning · 83f3a357
      Giorgos Korfiatis authored
      Define exceptions locally
    • Giorgos Korfiatis's avatar
      wip Merge quotaholder into astakos · 3c2bab4e
      Giorgos Korfiatis authored
      quotaholder_django/quotaholder_app becomes astakos/quotaholder
      quotaholder_django/test becomes astakos/quotaholder/test
  13. 22 Mar, 2013 1 commit
  14. 14 Feb, 2013 1 commit
    • Giorgos Korfiatis's avatar
      Make ForUpdateManager thread-safe · 6d8e24e8
      Giorgos Korfiatis authored
      The manager held a global flag `_for_update' on a single manager object,
      which could be read or set by multiple threads.
      select_for_update() is now provided by a subclass of QuerySet.
      It must be used as the last modifier of a query set,
      e.g. Project.objects.filter(state=1).select_for_update(),
      and cannot be combined with operators provided by other subclasses,
      such as values_list().
      Since get() returns an element rather than a query set,
      the manager also provides a specific function get_for_update().
  15. 07 Jan, 2013 3 commits
  16. 18 Dec, 2012 1 commit
  17. 17 Dec, 2012 2 commits
  18. 10 Dec, 2012 1 commit
  19. 04 Dec, 2012 1 commit
  20. 23 Nov, 2012 2 commits