Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo @ 30096a2e

Name Size
  api
  app_settings
  db
  helpdesk
  locale
  logic
  management
  plankton
  quotas
  ui
  versions
  vmapi
__init__.py 1.7 kB

Latest revisions

# Date Author Comment
30096a2e 04/30/2013 05:06 pm Christos Stavrakakis

cyclades: Remove obsolete code for static quotas

Remove the following obsolete settings, since their usage is covered
by Quotaholder:
- MAX_VMS_PER_USER
- MAX_NETWORKS_PER_USER
- VMS_USER_QUOTA
- NETWORKS_USER_QUOTA

Also remove 'cyclades-export-quota' management command.

62c86226 04/30/2013 05:05 pm Christos Stavrakakis

cyclades: Rename quotas management commands

Rename 'cyclades-reconcile-commissions' to 'reconcile-commissions-cyclades.'
Rename 'cyclades-usage-verify' to 'reconcile-resources-cyclades.'

39d44eba 04/30/2013 05:05 pm Christos Stavrakakis

reconcile-resources: check that user exists in QH

Do not consider 0 usage for users and resources that are not included in
Quotaholder resources list, since Quotaholder returns zero usage for all
users and all resources. If a user/resource does not belong to QH...

97fffe10 04/30/2013 05:05 pm Christos Stavrakakis

Refactor QuotaHolder serial model

  • Merge 'accepted' and 'rejected' field to 'accept' field.
  • Add 'resolved' field, indicating whether this commission has been
    accepted/rejected to Quotaholder
  • Remove custom save() method. Handle 'pending' field manually....
9b964eff 04/30/2013 05:05 pm Christos Stavrakakis

Fix info message of reconcile-resources-cyclades

2509ce17 04/30/2013 05:05 pm Christos Stavrakakis

cyclades: refactor code relative to commission

Refactor Cyclades code that handles commissioning with Quotaholder. This
commit removes the 'uses_commission' decorator. Instead it introduces
the 'issue_and_accept_commission' function that is responsible for...

4ed25171 04/30/2013 05:05 pm Christos Stavrakakis

cyclades: resolve previous commissions

Extend 'issue_and_accept_commission' function to resolve previous
unresolved commission, if exists. In order to resolve it, the
commission must not be pending, because if it is there is not
enough information to resolve it.

184a2a8c 04/30/2013 05:05 pm Christos Stavrakakis

Mock quotaholder for Cyclades tests

Create 'mocked_quotaholder' context manager to bypass commission and use
it in Cyclades tests. Also this commit does some various fixes to other
tests.

5db3a1e6 04/30/2013 05:05 pm Christos Stavrakakis

cyclades: Check qh resolve commission response

Check Quotaholder response to see if the commissions were accepted or
rejected as requested, or failed for some reason.

Accepting or rejecting a commission will fail if the commission was
already resolved. Since this is sometimes accepted, like when...

7907af91 04/30/2013 05:05 pm Christos Stavrakakis

Restore quotas if enqueuing job to Ganeti fails

When creating a server, we commit the VM model in DB and reserve the
corresponding quotas in Quotaholder before enqueuing the
OP_INSTANCE_CREATE job (because messages from dispatcher may arrive
before committing). In case enqueuing job to Ganeti fails we must...

View revisions

Also available in: Atom