Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / quotas @ 5083fc47

Name Size
  management
__init__.py 12.7 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
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.

fb540e3a 11/15/2013 01:32 pm Giorgos Korfiatis

cyclades: Resolve undecided serial in force mode

Reject a serial with pending=True only when we need to force a new
commission on a given resource.

Also improve handling of serial state: make sure pending is set to False
when we decide whether to accept or reject a serial. Mark a serial to...

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.

02afb932 11/15/2013 01:32 pm Giorgos Korfiatis

cyclades: Fix commission parameter passing

Propagate `force' and `auto_accept' of handle_resource_commission
down to issue_commission.

View revisions

Also available in: Atom