1. 31 Mar, 2014 6 commits
  2. 10 Mar, 2014 1 commit
  3. 05 Mar, 2014 1 commit
  4. 26 Feb, 2014 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Major refactor to plankton backend · 4fbcfca8
      Christos Stavrakakis authored
      * Rename ImageBackend to PlanktonBackend
      * Rewrite PlanktonBackend methods in order that they refer to Pithos
        objects by their UUID
      * Convert PlanktonBackend to context manager that is responsible for
        returning the PithosBackend connection back to the pool, and remove
        stale 'image_backend' context manager
      * Make PlanktonBackend raise cloud (API) faults
      4fbcfca8
  5. 24 Feb, 2014 1 commit
  6. 11 Feb, 2014 1 commit
    • Dionysis Grigoropoulos's avatar
      snf-cyclades: Various bug fixes in cyclades · 46272d40
      Dionysis Grigoropoulos authored
      * When creating a new subnet, check if the given network_id is an int
      * Remove duplicate code from api/networks
      * Check name length when updating a server
      * Check name length when updating a network
      * Validate NIC ID is an int
      46272d40
  7. 19 Dec, 2013 1 commit
  8. 18 Dec, 2013 1 commit
  9. 09 Dec, 2013 1 commit
  10. 02 Dec, 2013 1 commit
  11. 25 Nov, 2013 1 commit
  12. 20 Nov, 2013 2 commits
    • Ilias Tsitsimpis's avatar
      cyclades: Catch exception in verify_personality · b0dd513d
      Ilias Tsitsimpis authored
      The verify_personality function assumes that the contents of a
      personality is encoded in base64 and tries to decode them. But if the
      client didn't encode them a TypeError `Incorrect padding' will be
      raised. Catch this exception and raise a BadRequest.
      b0dd513d
    • Ilias Tsitsimpis's avatar
      cyclades: Catch exception in verify_personality · 1800feec
      Ilias Tsitsimpis authored
      The verify_personality function assumes that the contents of a
      personality is encoded in base64 and tries to decode them. But if the
      client didn't encode them a TypeError `Incorrect padding' will be
      raised. Catch this exception and raise a BadRequest.
      1800feec
  13. 06 Nov, 2013 3 commits
  14. 04 Nov, 2013 2 commits
    • Christos Stavrakakis's avatar
      cyclades: Refactor code · a8819ad5
      Christos Stavrakakis authored
      Move code relative with allocating ips and floating IPs to 'logic.ips'
      module.
      a8819ad5
    • Christos Stavrakakis's avatar
      cyclades: Forbid new ports no deleting network · 395f0023
      Christos Stavrakakis authored
      Do not allow creation of new ports and reservation of floating IPs on
      network that are being deleted. Currently the state of the network
      changes only when the network gets deleted from all backends. So we
      check if a network is being deleted by checking if the action of the
      network is 'DESTROY'.
      395f0023
  15. 02 Nov, 2013 1 commit
  16. 01 Nov, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Create ports without 'device_id' · 4b649f24
      Christos Stavrakakis authored
      Allow creation of ports that are not connected to any instance. Such
      ports will be in 'DOWN' state. To allow this, 'machine' attribute of
      NetworkInterface model has been made to allow null values. Finally, the
      'logic.ports' module has been remove, and the corresponding code has
      been merged into 'logic.servers' module.
      4b649f24
  17. 31 Oct, 2013 2 commits
    • Christos Stavrakakis's avatar
      cyclades: Fix bugs relative to pool allocation · 88676431
      Christos Stavrakakis authored
      Fix bug when trying to allocate a specified IPv4 address. Only one of
      the IP pools will contain this address, so you must bypass InvalidValue
      exceptions until searching all pools.
      
      Also PoolManager raised 'EmptyPool' exception when trying to allocate from an
      empty pool. However, if someone tried to allocate a specific value,
      'ValueNotAvailable' should be returned.
      88676431
    • Christos Stavrakakis's avatar
      cyclades: Get floating IP without specifying pools · 4a96ab00
      Christos Stavrakakis authored
      Extend GET /floatingips API method, to allow requests that do not
      specify the 'floating_network_id' attribute. In this case it will try
      to allocate a floating IP address from one of the available floating IP
      pools. If there is no available floating IP, it will return 409.
      4a96ab00
  18. 29 Oct, 2013 2 commits
  19. 24 Oct, 2013 3 commits
  20. 16 Oct, 2013 2 commits
  21. 14 Oct, 2013 3 commits
  22. 11 Oct, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Optimize DB queries of /servers API · 9ae370e6
      Christos Stavrakakis authored
      Use 'prefetch_related' attribute of Django queryset to prefetch the
      NetworkInterface and IPaddress objects that are related with a
      VirtualMachine object. Also, modify functions that operate on server
      NICs and IPs, to to use only the prefetched objects, which means that
      they can perform further filtering or ordering on objects because this
      is considered a new DB query and so will not get the cached objects.
      
      Also, return empty 'fqdn' and 'port_forwarding' attributes if the
      server has no public IP address.
      9ae370e6
  23. 10 Oct, 2013 2 commits