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 3 commits
  3. 04 Apr, 2011 2 commits
  4. 30 Mar, 2011 1 commit
  5. 29 Mar, 2011 1 commit
  6. 28 Mar, 2011 1 commit
  7. 09 Mar, 2011 2 commits
  8. 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.
  9. 03 Mar, 2011 3 commits
    • Vangelis Koukis's avatar
      Add independent fixtures for the Image model · 07fbeada
      Vangelis Koukis authored
      Add independent fixtures for the Image model in db/fixtures/images.json,
      no dependencies from VirtualMachine instances.
    • Vangelis Koukis's avatar
      Add README.DB, minor fixes to fixtures · d7347ab3
      Vangelis Koukis authored
      Add new file README.DB with instructions for PostgreSQL and MySQL setups.
      Modify fixtures to include definition of Images in definition of VMs
      (vms.json), ensuring referential integrity.
    • Vangelis Koukis's avatar
      Remove user field from SynnefoUser, minor fixes · 36c9ba32
      Vangelis Koukis authored
      Remove the "user" ForeignKey() field from the SynnefoUser model, since
      we do not use Django's auth mechanism.
      More specifically:
          * remove user ForeignKey() field
          * update fixtures for initial data, DB and API tests
          * shorten verbose_name fields since they break with MySQL
          * fix comments, apply minor fixes to style
  10. 02 Mar, 2011 1 commit
  11. 27 Feb, 2011 1 commit
    • Dimitris Moraitis's avatar
      complete the rename of AccountingLog to Debid - fix breakage · fccd18f0
      Dimitris Moraitis authored
      The changes in d174b105e0fb3038bcf69623f3624f99f437ea3f broke the
      app and the tests. The AccountingLog class had been renamed but
      several references were left using the old name.
      Also removed the violation attribute from fixtures since it was
      removed from the model.
      The api tests and most db tests now pass
  12. 25 Feb, 2011 2 commits
  13. 22 Feb, 2011 7 commits
  14. 20 Feb, 2011 5 commits
  15. 18 Feb, 2011 1 commit
    • Constantinos Venetsanopoulos's avatar
      Initial Disk Management API (DM API) implementation · 0ccb707b
      Constantinos Venetsanopoulos authored
      The DM API is accessible under api/v1.0grnet1/ and
      it extends the Rackspace Cloud Servers v1.0 API
      for the use of Disks. Notable changes:
       * Added the "Disk" model in db/models.py
       * Added the "DiskHandler" in api/handlers.py
       * Added the proper urls in api/urls.py
       * Added 2 sample disks in fixtures
  16. 16 Feb, 2011 2 commits
  17. 11 Feb, 2011 1 commit
  18. 10 Feb, 2011 2 commits
  19. 08 Feb, 2011 1 commit
    • Vangelis Koukis's avatar
      Major fixes trying to integrate everything. · 0fc1df70
      Vangelis Koukis authored
      Most notable changes:
      * db/db_controller.py: Listens on 0mq, receives notifications from Ganeti, updates
        VM state in database calling methods of the VirtualMachine model.
      * Extended the VirtualMachine model:
        start_action() is to be called before submitting requests to Ganeti.
        process_backend_msg() is to be called whenever a new notification from Ganeti is received.
        The rsapi_state property returns the Rackspace API equivalent of the current state of the VM.
      * Added db/fixtures to provide initial data for the DB. *removed* the database.sqlite file.
        Any changes to the db schema must also be applied to db/fixtures/.
      * The project's name is "Synnefo", the product is called "Ocean". EVERYTHING in the code
        [package names, variables, table names, etc] gets named based on the "synnefo" convention.
      * Fixed various minor inconsistencies, no spaces after parentheses.