1. 07 Apr, 2011 1 commit
    • Vangelis Koukis's avatar
      Fix broken db_test_data.json wrt to Image model · c3fa31bd
      Vangelis Koukis authored
      Removing the description field from the Image model
      and moving it to ImageMetadata broke the fixtures in
      db_test_data.json and the associated tests of the db app.
      Tests for api, db, logic run properly.
  2. 05 Apr, 2011 4 commits
    • Vangelis Koukis's avatar
      Fix bugs in api/server.py:create_server() · 36cf941d
      Vangelis Koukis authored
      Fix bugs in server creation, in api/server.py:create_server().
      More specifically:
       * Make sure to save() the vm object before calling vm.backend_id
       * Delete the vm instance if the RAPI call fails for any reason
       * Use different variable names for the server name at the API level
         and at the Ganeti backend level
       * Compute a random password *before* the CreateInstance() call to Ganeti
         [not currently used though]
      Also patch the VirtualMachine model to safeguard against getting the
      backend_id of a yet-unsaved instance of VirtualMachine.
    • Vangelis Koukis's avatar
      Fix Image fixtures, remove size attribute · 2e328963
      Vangelis Koukis authored
      Fix the fixtures for the Image model, removing references
      to the size attribute, which no longer exists in the Image model
      since commit 838c404d4.
      Also fix unloadable fixtures, by removing stray comma chars
      in JSON.
    • Giorgos Verigakis's avatar
      Port tests to the new API · 80678f1a
      Giorgos Verigakis authored
      manage.py test api should work now
    • Giorgos Verigakis's avatar
      Add metadata support in Images · 9359b523
      Giorgos Verigakis authored
      Removed description and size from Image model.
  3. 04 Apr, 2011 2 commits
  4. 01 Apr, 2011 1 commit
  5. 31 Mar, 2011 2 commits
  6. 30 Mar, 2011 1 commit
  7. 29 Mar, 2011 3 commits
  8. 28 Mar, 2011 3 commits
  9. 24 Mar, 2011 1 commit
  10. 23 Mar, 2011 2 commits
  11. 22 Mar, 2011 8 commits
  12. 17 Mar, 2011 1 commit
  13. 11 Mar, 2011 1 commit
    • Vangelis Koukis's avatar
      Add ability to report REBOOT state · af996bd7
      Vangelis Koukis authored
      Extend the rsapi_state property of the VirtualMachine model
      to report the machine is in REBOOT when there is a pending
      OP_INSTANCE_REBOOT request to the Ganeti backend.
  14. 09 Mar, 2011 2 commits
  15. 08 Mar, 2011 1 commit
  16. 07 Mar, 2011 1 commit
  17. 05 Mar, 2011 1 commit
  18. 04 Mar, 2011 1 commit
    • Vangelis Koukis's avatar
      Make owner a not null ForeignKey in VirtualMachine · 543294c0
      Vangelis Koukis authored
      Make owner a required, not null foreign key in VirtualMachine.
      Also fix fixtures and the implementation of POST /servers to include
      a proper owner value (everything gets to be owned by the single SynnefoUser
      defined in initial_data.json).
      Recent commits for charging require a not null value for
      vm.owner, otherwise NoneType exceptions get thrown.
      All current db and api tests pass.
  19. 03 Mar, 2011 4 commits