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. 02 Jul, 2014 1 commit
    • 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
  3. 23 Jun, 2014 2 commits
  4. 29 May, 2014 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Accept an empty image when using volumes · 91007bc4
      Christos Stavrakakis authored
      Accept an empty 'imageRef' attribute when creating a server with
      volumes. The attribute must always be present even with an empty value.
      In case the server's image is left blank, we use the source
      (image/snapshot) of the first volume. Also, if an image is specified
      both for the server and for the first volume, we check that the image is
      the same.
      91007bc4
  5. 14 Apr, 2014 1 commit
    • Vangelis Koukis's avatar
      Switch license to GPLv3 · 02071b96
      Vangelis Koukis authored
      According to the decision of the GRNET Board of Directors,
      switch license to GPLv3.
      
      This commit will be propagated to the release
      and master branches based on git flow, and the next
      release will be licensed as GPLv3.
      02071b96
  6. 31 Mar, 2014 2 commits
    • Christos Stavrakakis's avatar
      cyclades: Add --volume option to server-create cmd · a3bc4db2
      Christos Stavrakakis authored
      Extend 'server-create' management command with the '--volume' option,
      which can be used to specify which volumes to use or create for the new
      server.
      a3bc4db2
    • Christos Stavrakakis's avatar
      cyclades: Create servers with volumes · fc96f8c6
      Christos Stavrakakis authored
      Extend Cyclades POST /servers API endpoint to support specifying volumes
      when creating a server. The call is extended with the
      'block_device_mapping_v2' field that contains a list of dictionaries,
      each of which contains the following information about the devices that
      the server must have:
      
      * source_type: One of'image', 'snapshot', 'volume' or 'blank'
      * uuid: The UUID of the object that is specified by source_type (if
              source_type is not blank)
      * size: The size of the volume
      * delete_on_termination: Whether the volume will be preserved or
                               automaticaly deleted when the server is deleted
      
      If no volume is specified, then a volume is automatically created with
      the size of the flavor and with source the image that is specified in
      the 'imageRef' field of the API call.
      
      The follow restrictions apply:
      * Source_type can be other than 'blank', only if the disk template is
        ext_ or if the volume is created as a root volume of a server, so
        it will be filled with data by snf-image.
      * The root volume cannot be blank.
      * In order to use a volume, it must be in AVAILABLE status. This will
        never happen until detachable volumes are implemented. However, the
        user can "clone" a user volume either by creating a new volume from
        cinder and then using this new volume, or by taking a snapshot and then
        use the snapshot as a source.
      * The size field is required if the source is image, snapshot or blank.
        Also, the size of the volume must be equal or bigger from the source
        size (if any).
      
      Finally, move some code from 'servers' module to 'server_attachments'
      and 'commands' to avoid cyclic imports.
      fc96f8c6
  7. 17 Mar, 2014 1 commit
  8. 27 Feb, 2014 1 commit
  9. 29 Nov, 2013 1 commit
  10. 10 Nov, 2013 1 commit
    • Marios Kogias's avatar
      cyclades: snf-manage server-create --port · 0a1a8dc9
      Marios Kogias authored
      Use --port multiple times to configure server connections.
      Possible forms are:
      * --port network:<network_id>(,address=<ip_address>)
      * --port id:<port_id>
      * --port floatingip:<floatingip_id>.
      0a1a8dc9
  11. 05 Nov, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Fix default/forced server networking · 056eee6c
      Christos Stavrakakis authored
      Fix the default behaviour for networking of servers that are being
      created. There are two settings controlling this behaviour:
      
      * CYCLADES_DEFAULT_SERVER_NETWORKS: This setting contains list of
        networks to connect a newly created server to, if the user has not
        specified them explicitly in the POST /server API call. Each member of
        the list may be a network UUID, a tuple of network UUIDs,
        "SNF:ANY_PUBLIC_IPV4" [any public network with an IPv4 subnet
        defined], "SNF:ANY_PUBLIC_IPV6 [any public network with only an IPV6 subnet
        defined],  or "SNF:ANY_PUBLIC" [any public network].
      
        Access control and quota policy are enforced, just as if the user had
        specified the value of CYCLADES_DEFAULT_SERVER_NETWORKS in the content
        of the POST /call, after processing of "SNF:*" directives.
      
        Default value: ["SNF:ANY_PUBLIC"]
      
      * CYCLADES_FORCED_SERVER_NETWORKS: This setting contains a list of
        networks which every new server will be forced to connect to,
        regardless of the contents of the POST /servers call, or the value of
        CYCLADES_DEFAULT_SERVER_NETWORKS.  Its format is identical to that of
        CYCLADES_DEFAULT_SERVER_NETWORKS.
      
       No access control or quota policy are enforced.  The server will get
       all IPv4/IPv6 addresses needed to connect to the networks specified in
       CYCLADES_FORCED_SERVER_NETWORKS, regardless of the state of the
       floating IP pool of the user, and without allocating any floating IPs.
      
       Default value: ["SNF:ANY_PUBLIC_IPV6"]
      
      Also this commit changes how API handles requests that specify a public
      network without specifying a floating IP address: If the request does
      not contain the 'fixed_ip' attribute, the server will try to
      automatically use one of the free floating IP addresses of the user
      that are allocated from the specified network.
      056eee6c
  12. 02 Nov, 2013 1 commit
  13. 30 Oct, 2013 1 commit
  14. 16 Sep, 2013 1 commit
  15. 17 Jul, 2013 1 commit
  16. 08 Jul, 2013 1 commit
  17. 02 Jul, 2013 1 commit
  18. 16 May, 2013 1 commit
  19. 13 May, 2013 1 commit
  20. 30 Apr, 2013 1 commit
  21. 18 Feb, 2013 1 commit
  22. 14 Feb, 2013 1 commit
  23. 13 Feb, 2013 1 commit
  24. 09 Nov, 2012 2 commits
  25. 06 Nov, 2012 1 commit
    • Christos Stavrakakis's avatar
      Implement image-list and image-show commands · 4690a432
      Christos Stavrakakis authored
      Implement two new management commands for plankton.
      - image-list: lists public images or all images available
      to a user
      - image-show: displays information about a public image
      
      Also, this commit fixes a bug in server-show, when trying
      to display an image that has been deleted.
      4690a432
  26. 03 Nov, 2012 1 commit