Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / quotas @ 1fdd8d69

Name Size
  management
__init__.py 13 kB
models.py 0 Bytes
resources.py 1.8 kB
tests.py 8.8 kB
util.py 4.3 kB

Latest revisions

# Date Author Comment
1fdd8d69 11/20/2013 08:08 pm Christos Stavrakakis

cyclades: Fix bugs relative with quotas

  • Reject previous unaccepted serials if action is 'DESTROY'. This is
    required because multiple DESTROY actions may be pending for the same
    resource (e.g. VM). The one who succeeds will be accepted, while all
    others will be rejected. This isn't optimal since it causes circular...
87726194 11/15/2013 02:55 pm Giorgos Korfiatis

cyclades: Fix reference to QuotaLimit

5083fc47 11/15/2013 02:13 pm Christos Stavrakakis

Rename 'cpu' and 'ram' resources

Rename CPU and RAM relative resources to avoid data migrations.
Specifically, the resources that are renamed are the following:

  • cpu -> total_cpu
  • ram -> total_ram
  • active_cpu -> cpu
  • active_ram -> ram
44183264 11/15/2013 02:08 pm Christos Stavrakakis

cyclades: Rename FloatingIP to IPAddress

FloatingIP table has been removed. Instead floating IPs are stored in
the IPAddress table and are distinguished from other IP addresses by
the 'floating_ip' attribute.

368d879e 11/15/2013 01:38 pm Giorgos Korfiatis

cyclades: Generalize issue_and_accept_commission

Use issue_and_accept_commission for any action where one needs to
automatically accept the commission after issuing and committing.

0dc4b304 11/15/2013 01:38 pm Giorgos Korfiatis

cyclades: Handle qh errors in a context manager

Replace decorator handle_astakosclient_error with a more flexible
context manager, AstakosClientExceptionHandler.

4fb643b3 11/15/2013 01:35 pm Giorgos Korfiatis

cyclades: Change function params indentation

21eb7404 11/15/2013 01:35 pm Christos Stavrakakis

cyclades: Simplify issue_and_accept_commission

Simplify the 'issue_and_accept_commission' function that handled
commissions that should be auto-accepted. Also do not 'reject' the
serial, since the resource that corresponds to this serial has already
been committed to DB. Finally, refactor 'floating_ip' code that used this...

16b959ce 11/15/2013 01:33 pm Giorgos Korfiatis

cyclades: Issue commission based on action

Make issue_commission() the single point where provisions are computed
and the appropriate astakosclient call is issued.

64bca363 11/15/2013 01:32 pm Giorgos Korfiatis

cyclades: Pass action params in server_command

Commission to be issued depends on extra parameters for some actions,
e.g., on the flavor when resizing a vm.

View revisions

Also available in: Atom