1. 05 Aug, 2014 2 commits
    • Christos Stavrakakis's avatar
      cyclades: Pass the size of volume's origin · 1716bb42
      Christos Stavrakakis authored
      ..to Archipelago, as 'origin_size' parameter.
      
      Currently, the volume object is annotated with the size of the origin,
      but this information is not stored in DB. This will have to be changed
      when Synnefo supports detachable volumes.
      1716bb42
    • Christos Stavrakakis's avatar
      cyclades: Fix issue with storing images · 55eafcab
      Christos Stavrakakis authored
      The 'get_or_create' method should be used only for the 'uuid' and
      'version' parameters.  Otherwise, any change of the image (e.g.
      location) would cause the creation of a new image which would result in
      integrity error.
      55eafcab
  2. 04 Aug, 2014 4 commits
  3. 01 Aug, 2014 7 commits
  4. 31 Jul, 2014 1 commit
  5. 30 Jul, 2014 4 commits
  6. 28 Jul, 2014 5 commits
  7. 24 Jul, 2014 6 commits
    • Sofia Papagiannaki's avatar
      pithos: Fix test · 68c9c34b
      Sofia Papagiannaki authored
      The specific test challenges the object upload
      by providing the object's hashmap instead of actual data
      while not all the respective blocks are previously
      uploaded to the storage (409 Conflict status).
      However, this test will fail if all the blocks
      are stored to the backend
      by preceding uploads / test executions.
      
      This commit changes the test in order to upload random data
      and, hence, it reduces the possibility of block collisions.
      68c9c34b
    • Sofia Papagiannaki's avatar
      pithos: Perform size checks during uploads · 305e8549
      Sofia Papagiannaki authored
      Verify the consistency between the declared size
      and the object's hashmap during uploads/object updates.
      305e8549
    • Sofia Papagiannaki's avatar
      pithos: Add missing index · 6652460a
      Sofia Papagiannaki authored
      Add index on column 'node' of the ''versions' table.
      
      closes grnet/synnefo#161
      6652460a
    • Alex Pyrgiotis's avatar
      astakos: Update user logic tests · e261008b
      Alex Pyrgiotis authored
      Update tests according to the changes in activation_backends.py
      
      closes grnet/synnefo#164
      e261008b
    • Alex Pyrgiotis's avatar
      astakos: update action logic · 9362b84c
      Alex Pyrgiotis authored
      The following changes are made to the way actions are validated:
      
      * accept: Accept only unmoderated or rejected users.
      * deactivate: Deactivate only moderated users. This includes inactive
        users, solely for the purpose of changing their deactivation reason.
      * send_verification_mail: Renew verification code and send it only to
        users with unverified mail.
      9362b84c
    • Giorgos Korfiatis's avatar
      astakos: Use bulk_create to speed up commissions · db464c6f
      Giorgos Korfiatis authored
      Update holdings and create provisions and log in bulk when issuing or
      resolving commissions to speed up the operation,
      db464c6f
  8. 23 Jul, 2014 1 commit
  9. 22 Jul, 2014 4 commits
  10. 18 Jul, 2014 4 commits
    • Sofia Papagiannaki's avatar
      pithos: Recover from DB integrity errors · 57977af7
      Sofia Papagiannaki authored
      In Pithos+ atomicity is forced on the container level.
      Hence, write operations in the account level can produce
      integrity errors.
      
      This commit handles these cases.
      
      In PostgreSQL, a transaction is aborted
      (and all the subsequent commands are ignored)
      if an integrity error occurs.
      
      Therefore, before performing an command
      that can produce an integrity error,
      a new savepoint is defined inside the transaction,
      and after the command execution is rollbacked or committed
      according to execution status.
      57977af7
    • Giorgos Korfiatis's avatar
      astakos: Add checks for quota limits · 992a2e3d
      Giorgos Korfiatis authored
      Check that total (project) quota limit is no less than member limit;
      and that both limits are not negative.
      992a2e3d
    • Dionysis Grigoropoulos's avatar
      astakos: Fix a unicode bug in user-add · a1134337
      Dionysis Grigoropoulos authored
      Fix a unicode bug in snf-manage user-add when the username contained
      non-ascii characters.
      a1134337
    • Dionysis Grigoropoulos's avatar
      cyclades: Validate VM metadata on create/update · 2411ad1d
      Dionysis Grigoropoulos authored
      * Check for VM max metadata items when updating/creating a single item.
      * Check the length of metadata items when updating metadata items.
      2411ad1d
  11. 16 Jul, 2014 2 commits