1. 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.
  2. 20 Mar, 2013 3 commits
  3. 15 Mar, 2013 1 commit
    • Christos Stavrakakis's avatar
      snf-manage: Accept Ganeti server/network names · 854b005a
      Christos Stavrakakis authored
      Make management commands relevant with servers and networks to accept
      as arguments their Ganeti names, besides their database ID.
      For example if BACKEND_PREFIX_ID='snf-', they following two commands are
      both valid:
      * snf-manage server-show 2
      * snf-manage server-show snf-2
  4. 14 Mar, 2013 5 commits
  5. 12 Mar, 2013 30 commits