1. 02 Apr, 2013 4 commits
  2. 01 Apr, 2013 3 commits
  3. 29 Mar, 2013 1 commit
  4. 27 Mar, 2013 5 commits
  5. 26 Mar, 2013 10 commits
  6. 22 Mar, 2013 10 commits
  7. 21 Mar, 2013 7 commits
    • Giorgos Korfiatis's avatar
      Sync only quotas that differ · 9699e509
      Giorgos Korfiatis authored
      Refs #3479
      Database stack limit issue was triggered by syncing quotas for
      all users. It is much faster to compare quotas locally and send
      for sync to quotaholder only those that differ.
    • Giorgos Korfiatis's avatar
      Simplify query to avoid hitting db stack limit · b92b8120
      Giorgos Korfiatis authored
      Refs #3479
      Looking up (entity, resource) pairs created a huge query formula
      in disjunctive normal form, which apparently brought the db parser
      to its limits.
      It has been replaced by selecting the holdings by entity only.
      This means that in theory we lock more holdings than needed (for any
      resource for a given entity), but in practice we would need to
      select these holdings anyway.
    • 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.
    • Constantinos Venetsanopoulos's avatar
    • Kostas Papadimitriou's avatar
      Fix available ram options in vm create view · 4eee4823
      Kostas Papadimitriou authored
      typo fix that caused unavailable ram options due to user quota limits to
      still be shown as selectable values.
    • Constantinos Venetsanopoulos's avatar
    • Christos Stavrakakis's avatar