1. 17 Dec, 2013 1 commit
  2. 22 Nov, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Add name to Ganeti NICs · 1d546431
      Christos Stavrakakis authored
      Add 'name' attribute to newly created NICs. Currently, the name of the
      NICs will not be used to refer to NICs, as it will be in Synnefo 0.15.
      Names are added only to ease the migration to version 0.15. Also, this
      commit updates snf-dispatcher to preserve the name of the NIC, if any,
      when updating instance NICs.
      
      Finally, the commit updates handling of firewall tags by adding a second
      tag that contains the name of the NIC. The tags with the name of the
      NICs will be kept in Synnefo 0.15, and the old tags with the index of
      the NIC will be removed.
      1d546431
  3. 09 Oct, 2013 2 commits
    • Christos Stavrakakis's avatar
      cyclades: Fix getting action from Ganeti opcode · 31835447
      Christos Stavrakakis authored
      Parse the fields of the Ganeti command, to distinquish between
      'CONNECT' and 'DISCONNECT' in case of 'OP_INSTANCE_SET_PARAMS'.
      31835447
    • Christos Stavrakakis's avatar
      cyclades: Use UUIDs to update VM NICs · d91498a3
      Christos Stavrakakis authored
      Callback functions of snf-dispatcher updated the NICs of a VM by
      deleting all NICs from DB, and creating the new NICs that were described
      in the message. However, since NICs have UUIDs, this is no longer
      required. This commit update callbacks to update the NICs based on their
      UUID.
      d91498a3
  4. 02 Jul, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Major refactor to api and logic apps · d15f509c
      Christos Stavrakakis authored
      Major refactor to cyclades api and logic apps that removes most code
      from the api views and moves it to logic app, so that the same logic
      code can be used by different apps (e.g. EC2 API). Code is moved into
      logic.servers.
      
      This commit also introduces the VirtualMachine.task attribute
      which contains the last issued action to a server. This attribute is set
      when the corresponding job is sent to Ganeti, and is cleared upon
      completion of the corresponding job (task_job_id attribute). Until the
      task is completed, no other action is allowed on the VM. The only
      exception is 'DESTROY' action which is always allowed. Actions on VMs
      with uncompleted tasks results in a bad request fault.  Also, some
      actions are not allowed if the operating state of the VM is not correct.
      For example, it is not allowed to start or resize a running VM.  The
      running task is also exposed to the API (SNF:task_state), and the
      available states are:
      * BUILDING
      * STARTING
      * STOPPING
      * REBOOTING
      * DESTROYING
      * RESIZING
      * CONNECTING
      * DISCONNECTING
      
      Also, this commit introduces two quotable resources, the 'active_ram'
      and 'active_cpu' representing the ram and cpu of running instances,
      specifically the instances in 'STARTED', 'BUILD' and 'ERROR' operstate.
      In order to count quotas for these resources, commissioning is needed
      when starting, stopping and rebooting instances. Also, the destroy
      commissioning is different if the vm is running or is stopped.
      
      Finally this commit changes the way commissioning is used in
      snf-dispatcher. Until now dispatcher only accepted or rejected
      commissions issued by the API. This commit introduces extra logic in
      dispatcher, to issue commissions for every quotable change, if a
      commission for this change has not already been issued by the API. This
      enables the administrator to do whatever action in the Ganeti backend
      without resulting in unsynced quotas. If a new commission is required,
      the previous commission for the VM by the API (if existing) will be
      rejected, since this commission will reflect a different change in the
      VM.
      d15f509c
  5. 18 Feb, 2013 1 commit
  6. 01 Feb, 2013 1 commit
  7. 20 Dec, 2012 1 commit
  8. 04 Oct, 2012 1 commit
  9. 03 Oct, 2012 1 commit
  10. 23 Jul, 2012 5 commits
  11. 06 Jun, 2012 1 commit
  12. 30 Jan, 2012 1 commit
  13. 23 Jan, 2012 1 commit
  14. 24 Nov, 2011 1 commit
  15. 18 Nov, 2011 1 commit
  16. 13 Sep, 2011 1 commit
  17. 07 Jul, 2011 1 commit
  18. 30 Jun, 2011 1 commit
  19. 17 Jun, 2011 1 commit
  20. 18 Apr, 2011 1 commit
    • Vangelis Koukis's avatar
      Add content in README.deploy, minor fixes · 09b33a0a
      Vangelis Koukis authored
      Add a draft description of the various services that need to be
      running for a working Synnefo installation. Add documentation for ganeti-0mqd,
      db_controller and vncauthproxy.
      
      Fix language error in comment in logic/utils.py.
      09b33a0a
  21. 14 Apr, 2011 1 commit
  22. 02 Apr, 2011 1 commit
    • Vangelis Koukis's avatar
      Improve handling of server deletions · f3b29b98
      Vangelis Koukis authored
      Improve handling of server deletions.
       * Have the API return a server's state as DELETED when
         the deleted flag has been set in the VirtualMachine model.
         This makes the server immediately invisible, instead of waiting
         for an indefinite amount of time for the Ganeti backend to remove
         the VM.
       * Set the deleted flag in the VirtualMachine model when Ganeti reports
         successful removal of an instance. This catches instance deletions
         initiated by the admin at the Ganeti backend.
      f3b29b98
  23. 31 Mar, 2011 2 commits
    • Markos Gogoulos's avatar
      fix bug with vm.backendjobstatus · 0cb51bef
      Markos Gogoulos authored
      VirtualMachine models has attribute backendjobstatus instead of
      _backendjobstatus
      0cb51bef
    • Vangelis Koukis's avatar
      Fix breakage caused by the logic-refactoring merge · 83969d4f
      Vangelis Koukis authored
      This commit fixes some breakage caused by the recent merge of
      the logic-refactoring branch, mainly related to db/db_controller.py.
      
      The main reason was the different value of import path, fixed by
      making sure all imports are rooted in synnefo.
      
      All db and API tests run properly.
      83969d4f
  24. 30 Mar, 2011 1 commit
  25. 28 Mar, 2011 1 commit
  26. 22 Mar, 2011 5 commits