1. 22 Apr, 2013 2 commits
  2. 19 Apr, 2013 3 commits
  3. 18 Apr, 2013 2 commits
  4. 12 Apr, 2013 1 commit
  5. 11 Apr, 2013 1 commit
  6. 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
  7. 05 Apr, 2013 15 commits
  8. 21 Mar, 2013 1 commit
    • Giorgos Korfiatis's avatar
      Simplify query to avoid hitting db stack limit · b92b8120
      Giorgos Korfiatis authored
      Refs #3479
      Looking up (entity, resource) pairs created a huge query formula
      in disjunctive normal form, which apparently brought the db parser
      to its limits.
      It has been replaced by selecting the holdings by entity only.
      This means that in theory we lock more holdings than needed (for any
      resource for a given entity), but in practice we would need to
      select these holdings anyway.
  9. 13 Mar, 2013 1 commit
  10. 27 Feb, 2013 2 commits
  11. 26 Feb, 2013 1 commit
    • Giorgos Korfiatis's avatar
      Fix an issue_commission calculation · 057ef589
      Giorgos Korfiatis authored
      The check for available capacity in the target entity
      wouldn't account property for the initial quantity.
      Make also the unit tests that failed to detect the problem
      more robust.
  12. 15 Feb, 2013 1 commit
  13. 14 Feb, 2013 1 commit
  14. 11 Jan, 2013 1 commit
    • Georgios D. Tsoukalas's avatar
      fix+test for issue_commission release logic · d5c9fa3b
      Georgios D. Tsoukalas authored
      issue_commission() with negative quantity is considered
      to be a 'release' instead of an 'allocation'.
      The limit checks for the conditions or the release were
      somewhat incomplete and inconsistent.
      The new logic also fixes the bug found by kpap where
      an entity would be denied release of quantities (with NoCapacityError)
      if the remaining quantity exceeds the quota limit.
      This prevented an entity from releasing its overlimit quantities
      in multiple steps (e.g. one by one), which resulted in a deadlock,
      when a service (cyclades VM) tried to rectify the overlimit cases.
  15. 10 Jan, 2013 1 commit
    • Georgios D. Tsoukalas's avatar
      allow overlimit entities to release resources · 8ef0732c
      Georgios D. Tsoukalas authored
      When a resource holding is found with quantity exceeding its capacity,
      it cannot allocate any more quantities,
      but it should be able to release quantities.
      However, if even after the release the quantity remained
      above the capacity, the release was denied with NoCapacity error.
      This was fixed by disabling this NoCapacity check when releasing
      (i.e. allocated quantity  is negative)
  16. 07 Jan, 2013 2 commits
  17. 21 Dec, 2012 1 commit
  18. 19 Dec, 2012 1 commit
  19. 18 Dec, 2012 1 commit
  20. 17 Dec, 2012 1 commit