1. 06 Nov, 2014 2 commits
    • Christos Stavrakakis's avatar
      Set required umask for snf-manage commands · 2b9213a6
      Christos Stavrakakis authored
      In order to communicate with Archipelago, Pithos backend needs to create
      named pipes (under '/var/run/shm/posixfd') that can be read/written by the
      group that Archipelago is running. This is achieved by using 'setgid' in the
      specified directory combined with a proper 'umask'. For Gunicorn workers, the
      umask is set by gunicorn-hooks. However, snf-manage commands did not set the
      needed umask which resulted in wrong permissions.
      
      This commits includes an ugly workaround to bypass this issue by setting
      the needed umask in 'SynnefoManagementUtility' for subcommands that are
      handling images, snapshots and files and for subcommands that define
      the 'umask' class attribute.
      2b9213a6
    • Christos Stavrakakis's avatar
      cyclades: Remove hard coded state · 6df3d40a
      Christos Stavrakakis authored
      6df3d40a
  2. 05 Nov, 2014 1 commit
  3. 04 Nov, 2014 1 commit
  4. 31 Oct, 2014 1 commit
  5. 20 Oct, 2014 1 commit
  6. 13 Oct, 2014 1 commit
  7. 08 Oct, 2014 3 commits
  8. 02 Oct, 2014 1 commit
  9. 29 Sep, 2014 1 commit
  10. 26 Sep, 2014 1 commit
  11. 24 Sep, 2014 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Fix bug in DB migration · c84f2de1
      Christos Stavrakakis authored
      Fix bug in migration 0102 which saves in the 'subnet_ids' column of the
      network object the IDs of all subnets that are associated with this
      network. A typo in this migration resulted in the 'subnet_ids' field to
      contain the id of the network. Also, provide a DB migration to fix this
      issue for those that have already installed 0.16rc1.
      c84f2de1
  12. 22 Sep, 2014 4 commits
  13. 18 Sep, 2014 6 commits
    • Christos Stavrakakis's avatar
      56794b5d
    • Christos Stavrakakis's avatar
      cyclades: Get images of all users · 47f09c6e
      Christos Stavrakakis authored
      Make reconciliation and snf-manage {image, snapshot}-list commands, to
      pass the 'check_permissions' argument to 'get_domain_objects' method of
      PithosBackend in order to retrieve the images and snapshots of all
      users, ignoring the user permission check.
      
      Refs grnet/synnefo#231
      47f09c6e
    • Christos Stavrakakis's avatar
      cyclades: Fix PEP8 issues · c8f25d6f
      Christos Stavrakakis authored
      c8f25d6f
    • Christos Stavrakakis's avatar
      cyclades: Reconciliation for stale snapshots · e73389ce
      Christos Stavrakakis authored
      Extend 'reconcile-servers' command to perform reconciliation for
      snapshots, which can occur if the Ganeti job failed but the
      corresponding message from eventd has never been processed. In order to
      make reconciliation possible, Cyclades store a special metadata on the
      snapshot that contains the Ganeti ID and the job ID that will create the
      snapshot.
      
      Closes grnet/synnefo#231
      e73389ce
    • Christos Stavrakakis's avatar
      cyclades: Update snapshot based on Ganeti job · 64ebc698
      Christos Stavrakakis authored
      Make Cyclades update the state of a snapshot in Pithos DB based on
      the result of the corresponding Ganeti job. This is required to be
      performed by Cyclades, because Pithos has no way to know whether an
      unavailable snapshot will ever by completed or not (e.g. the Ganeti
      job failed or it still has not completed).
      
      Refs grnet/synnefo#231
      64ebc698
    • Ilias Tsitsimpis's avatar
      astakosclient: Human readable details message · 3a4db0d3
      Ilias Tsitsimpis authored
      In case of QuotaLimit exception, fill 'details' with a human readable
      message and put the actual JSON response in the 'response' variable.
      Synnefo UI shows the 'details' field of an exception to the user so it
      has to be human readable.
      3a4db0d3
  14. 15 Sep, 2014 2 commits
  15. 13 Sep, 2014 1 commit
  16. 12 Sep, 2014 3 commits
    • Christos Stavrakakis's avatar
      cyclades: Invalidate snapshots when job fails · 0d1b405d
      Christos Stavrakakis authored
      Make Cyclades invalidate snapshots in case of failure to submit the job
      to Ganeti, or when the job fails. In either case invalidation is
      performed by marking...
      TODO: Add states sto API
      
      fixes grnet/synnefo#231
      0d1b405d
    • Christos Stavrakakis's avatar
      cyclades: Fix snapshots of attached volumes · 63c066a1
      Christos Stavrakakis authored
      Fix major bug when taking snapshots of non-root volumes. The custom
      'SnapshotInstance' method of 'GanetiRAPIClient' always took a snapshot
      of the root volume (index=0) of an instance, ignoring the volume that
      the user requested. This resulted in always taking a snapshot of the
      root volume which in many cases did not fail.
      63c066a1
    • Christos Stavrakakis's avatar
      cyclades: Fix type error · 38e733e4
      Christos Stavrakakis authored
      together with some PEP8 issues.
      38e733e4
  17. 08 Sep, 2014 1 commit
  18. 04 Sep, 2014 1 commit
  19. 03 Sep, 2014 1 commit
  20. 01 Sep, 2014 5 commits
  21. 29 Aug, 2014 2 commits