1. 06 Nov, 2014 1 commit
    • 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
  2. 31 Oct, 2014 1 commit
  3. 08 Oct, 2014 1 commit
  4. 22 Sep, 2014 3 commits
  5. 18 Sep, 2014 4 commits
    • 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
  6. 13 Sep, 2014 1 commit
  7. 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
  8. 04 Sep, 2014 1 commit
  9. 01 Sep, 2014 2 commits
  10. 29 Aug, 2014 1 commit
  11. 25 Aug, 2014 1 commit
  12. 23 Aug, 2014 1 commit
  13. 07 Aug, 2014 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Fix small issues with snapshots · c677ddae
      Christos Stavrakakis authored
      * fix IndexError in snf-ganeti-event when processing an
        OP_INSTANCE_SNAPSHOT operation without defining --disk option.
      * fix TypeError in snf-dispatcher when processing an
        OP_INSTANCE_SNAPSHOT without snapshot information.
      
      Both issues are caused by using directly the 'gnt-instance snaspshot'
      command.
      c677ddae
  14. 05 Aug, 2014 3 commits
  15. 30 Jul, 2014 2 commits
  16. 15 Jul, 2014 3 commits
  17. 14 Jul, 2014 1 commit
  18. 09 Jul, 2014 1 commit
    • Stratos Psomadakis's avatar
      api: Add support for more types of (VM) console · 103f0eb5
      Stratos Psomadakis authored
      Modify the current 'console' action to support VNC WebSockets (requires
      snf-vncauthproxy=1.6). Also add support for the three OpenStack Compute
      console actions (VNC, RDP, Spice), supported by Nova. RDP (Hyper-V
      specific) and Spice currently return a '500 Not Implemented' cloud
      fault.
      103f0eb5
  19. 08 Jul, 2014 7 commits
  20. 02 Jul, 2014 2 commits
    • Dionysis Grigoropoulos's avatar
      cyclades: Bug fixes in volume related commands · 4e0e6580
      Dionysis Grigoropoulos authored
      * Add a check to both name length and disk template length in
      snf-manage volume-type-create.
      * Add a check for the metadata length of snapshots.
      * Add a generic try/except clause to handle Pithos responses.
      * Add --user/--public options in snapshot-show/image-show.
      * Add a boolean "snapshot" field in image-list.
      * Remove unused user agrument from backend.get_snapshot().
      * Remove --wait option from snapshot-create.
      * Various typo fixes.
      4e0e6580
    • Dionysis Grigoropoulos's avatar
      cyclades: Update snf-manage argument names · ddc98573
      Dionysis Grigoropoulos authored
      * Update various snf-manage commands to use --display-mails instead of
      --displayname.
      * Add --display-mails option in port-inspect.
      ddc98573