1. 18 Dec, 2013 1 commit
  2. 17 Dec, 2013 1 commit
  3. 09 Dec, 2013 2 commits
  4. 06 Dec, 2013 1 commit
  5. 29 Nov, 2013 1 commit
  6. 20 Nov, 2013 2 commits
  7. 08 Nov, 2013 1 commit
  8. 06 Nov, 2013 2 commits
    • Christos Stavrakakis's avatar
    • Christos Stavrakakis's avatar
      cyclades: Fix handling of old IP pools · 3dab7faa
      Christos Stavrakakis authored
      Before implementing the Neutron API, each network had one IP pool that
      contained the whole subnet CIDR. This changed since now we have multiple
      IP Pools(with base and offset attributes) per network and this IP pools
      do not contain the network, broadcast and gateway addreeses. This commit
      fixes an old migration to add 'base' and 'offset' attribute to all IP
      pool objects, and adds an extra step to old and not-initialized pools in
      order to externally reserve those addresses.
      3dab7faa
  9. 02 Nov, 2013 1 commit
  10. 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
  11. 31 Oct, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Add accounting for IP Addresses · c7834da6
      Christos Stavrakakis authored
      Create IPAddressLog DB table to hold information about allocation of IP
      addresses to virtual servers. The information that is currently saved
      contains the IP address, the ID of the virtual server, the ID of the
      virtual network along with the datetime that the address has been
      allocated and released from the server.
      
      An entry in this table is created every time a NetworkInterface card
      that has an associated IP address is created in DB. The entry is updated
      with the 'released_at' timestamp when the NIC is destroyed in Ganeti.
      Currently, only IP addresses from public networks (network.public=True)
      are stored in this table.
      
      This commit also includes a DB data migration for all already allocated
      IP addresses. However, the 'allocated_at' timestamp of this entries will
      not be correct.
      c7834da6
  12. 30 Oct, 2013 1 commit
  13. 29 Oct, 2013 1 commit
  14. 09 Oct, 2013 8 commits
  15. 07 Oct, 2013 1 commit
  16. 03 Oct, 2013 1 commit
  17. 01 Oct, 2013 1 commit
  18. 10 Sep, 2013 1 commit
  19. 07 Aug, 2013 1 commit
  20. 24 Jul, 2013 1 commit
  21. 22 Jul, 2013 1 commit
  22. 02 Jul, 2013 1 commit
  23. 31 May, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Add 'drained' flag to Network · d7f41fac
      Christos Stavrakakis authored
      Extend Network model with the 'drained' attribute, to indicate whether a
      network should be used in public IP allocation when creating servers.
      This option is only useful for public networks.
      d7f41fac
  24. 21 May, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Sypport backends with Xen hypervisor · 8bcc0f5f
      Christos Stavrakakis authored
      Support Ganeti backends with Xen hypervisor:
      * Extend 'Backend' model with the 'hypervisor' attribute, which
        currently can be 'kvm' or 'xen'. Use 'kvm' as default value to
        easy database migration. Also add the corresponding schema migration.
      * Do not use hotplug at Xen backends, since it is not
        implemented.
      * Support different 'hvparams' for Xen and KVM backends. Update
        GANETI_CREATEINSTNACE_KWARGS setting to hold 'hvparams' for both
        Xen and KVM.
      * When getting instance console, check 'serial_console' hvparam only
        for Xen instances.
      
      Refs #3772
      8bcc0f5f
  25. 15 May, 2013 2 commits
  26. 30 Apr, 2013 1 commit
    • Christos Stavrakakis's avatar
      Refactor QuotaHolder serial model · 9b602630
      Christos Stavrakakis authored
      * 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.
      
      Also add the corresponding database migrations.
      9b602630
  27. 22 Mar, 2013 1 commit
  28. 21 Mar, 2013 1 commit
    • Christos Stavrakakis's avatar
      Create public NIC when creating VM · dc1554e4
      Christos Stavrakakis authored
      Until now, a server's public NetworkInterface was not created in the DB
      until the arrival of the message from Ganeti hooks. However, the IPv4
      address of the NIC is reserved before sending the OP_INSTANCE_CREATE
      job to Ganeti.
      
      This drawback of this approach is that if the Ganeti hooks never run
      (building ERROR), Cyclades will never associate the IPv4 address with
      a machine and therefore this address will never be released.
      
      This commit fixes this issue by creating the VM's public NIC in DB when
      creating the server. Also the NetworkInterface model is extended with
      a 'state' field to indicate if the NIC is active or still building.
      Finally, the corresponding API calls are modified in order to return
      only 'ACTIVE' NICs.
      dc1554e4
  29. 04 Dec, 2012 1 commit