1. 04 Dec, 2013 2 commits
  2. 02 Dec, 2013 3 commits
  3. 28 Nov, 2013 1 commit
  4. 27 Nov, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Change behaviour of servers fqdn · ddaf8b1d
      Christos Stavrakakis authored
      Change behaviour of 'CYCLADES_SERVERS_FQDN' setting:
        * If this setting is set to 'None', do not fall back to the public IP
          address of the machine.
        * Return the value of the setting even if the machine has no public
          IP address.
      ddaf8b1d
  5. 21 Nov, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Export Cyclades detailed stats from API · 2566bfd7
      Christos Stavrakakis authored
      Add '/admin/stats/detail' API endpoint to export basic statistics about
      Cyclades. Access to this view is only allowed to the users that belong
      to specific Astakos groups, as specified in the new setting
      'ADMIN_STATS_PERMITTED_GROUPS.' Also, added the new 'user_in_groups' API
      view decorator to snf_django that can be used for such checks.
      2566bfd7
  6. 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
  7. 29 Oct, 2013 1 commit
    • Ilias Tsitsimpis's avatar
      snf-cyclades-app: Use the new AstakosClient · 625bd291
      Ilias Tsitsimpis authored
      Change AstakosClient to use ASTAKOS_AUTH_URL as entry point to the
      Astakos service, instead of ASTAKOS_BASE_URL it was using until now.
      
      Remove ASTAKOS_BASE_URL from Cyclades settings, replace it with
      ASTAKOS_AUTH_URL. Modify Cyclades to determine ASTAKOS_ACCOUNT_URL and
      ASTAKOS_UI_URL with calls to astakosclient.
      625bd291
  8. 09 Oct, 2013 1 commit
  9. 01 Oct, 2013 1 commit
    • Christos Stavrakakis's avatar
      Allocate VMs based on enabled disk-templates · 3bf3920a
      Christos Stavrakakis authored
      Remove the ARCHIPELAGO_BACKENDS setting. Instead allocate VMs based on
      the disk-templates that are enabled and allowed in ipolicy for each
      backend. The command 'snf-manage backend-update-status' can be used to
      update the list of enabled disk templates for each backend.
      3bf3920a
  10. 07 Aug, 2013 2 commits
    • Christos Stavrakakis's avatar
      cyclades: extend VM info with 'port_forwarding' · 05d32a11
      Christos Stavrakakis authored
      Extend servers info API response with 'SNF:port_forwarding' attribute,
      describing port fowarding rules (DNAT) that are applied to vms. The
      description of such rules is done via the new CYCLADES_PORT_FORWARDING
      setting. This setting can be either a dictionary mapping to ports to
      tuples of (host, port), or a callable object that must return such a
      tuple.   The caller will pass to the callable the following positional
      arguments, in the following order:
      * server_id: The ID of the VM in the DB
      * ip_address: The IPv4 address of the public VM NIC
      * fqdn: The FQDN of the VM
      * user: The UUID of the owner of the VM
      05d32a11
    • Christos Stavrakakis's avatar
      cyclades: Extend servers info with fqdn attribute · 22948bca
      Christos Stavrakakis authored
      Extend the servers info API response with the 'SNF:fqdn' attribute,
      containg the vm's domain name in a DNS. This attribue is configurable by
      the 'CYCLADES_SERVERS_FQDN' setting. If this setting is set to None,
      then then the first public IPv4 or IPv6 address is returned.
      22948bca
  11. 24 Jul, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Set firewall profile per NIC · b35254cf
      Christos Stavrakakis authored
      Set firewall profile per NIC, because since Floating IPs an instance can
      have more than one NICs in a public network. Extend the API call to take
      the NIC index as argument, and modify the Ganeti instance tags to be
      formated with the NIC index.
      b35254cf
  12. 02 Jul, 2013 2 commits
  13. 13 Jun, 2013 3 commits
  14. 07 Jun, 2013 1 commit
  15. 03 Jun, 2013 2 commits
    • Georgios D. Tsoukalas's avatar
      f92e9fa9
    • Georgios D. Tsoukalas's avatar
      make synnefo URLs consistent and configurable · 79f2ca3b
      Georgios D. Tsoukalas authored
      https://service.deployment.vendor.tld/service-base/api-prefix/hard/path
      |___________________________________| |__________| |________| |_______|
                   BASE_HOST                  BASE_PATH    PREFIX    Hardcoded
      |_________________________________________________|
                   SERVICE_BASE_URL
      
      - Introduce <SERVICE>_BASE_URL setting, and <API>_PREFIX constants
        for all services. Extract BASE_HOST, BASE_PATH from the setting.
      
      - Use settings and constants to construct top-level patterns
        (base-path/api-prefix) in services' urls.py
      
      - Refactor/extend proxy() to be compatible with the above.
      
      - Change URLs passed around (ui, e-mails) to be compatible.
        (needs more work)
      
      Notes:
      
      This configuration REQUIRES that any rewriting and proxying on the
      front-end must eventually result in the application server (gunicorn)
      getting the original path of the request, otherwise the view-generated
      URLs will be different.
      
      Changes:
      - set top-level urlpatterns from <SERVICE>_BASE_URL
      - rename setting: APP_INSTALL_URL to CYCLADES_BASE_URL
      - rename setting: ASTAKOS_URL to ASTAKOS_BASE_URL everywhere
      - introduce setting: PITHOS_BASE_URL
      - update shipped .confs, quick install admin guide, upgrade guide
      - fix urls/views/reverse()/other that were broken
      - (more not listed)
      79f2ca3b
  16. 09 May, 2013 1 commit
  17. 08 May, 2013 1 commit
  18. 30 Apr, 2013 2 commits
  19. 15 Apr, 2013 1 commit
    • Christos Stavrakakis's avatar
      Improve settings related to ASTAKOS url · 134e03c2
      Christos Stavrakakis authored
      Rename 'PITHOS_AUTHENTICATION_URL' setting to 'ASTAKOS_URL'. Also remove
      'PITHOS_AUTHENTICATION_USERS' from docs (it was removed from code in
      commit 8df4fae).
      
      Modify 'ASTAKOS_URL' to point to the node hosting the Astakos service
      instead of im endpoint, i.e. rename from
      'accounts.example.org/im/authenticate' to 'accounts.example.org'.
      134e03c2
  20. 27 Mar, 2013 1 commit
  21. 26 Feb, 2013 1 commit
  22. 14 Feb, 2013 1 commit
    • Kostas Papadimitriou's avatar
      Delegate astakos user catalog call in cyclades · 755d3886
      Kostas Papadimitriou authored
      cyclades now serve a delegate view for the astakos /user_catalog api
      call. Cyclades UI app should use this endpoint to translate user uuids
      to display names.
      
      Astakos endpoint is configurable from the CYCALDES_USER_CATALOG_URL
      setting.
      755d3886
  23. 31 Jan, 2013 1 commit
  24. 11 Jan, 2013 1 commit
  25. 10 Dec, 2012 1 commit
  26. 04 Dec, 2012 1 commit
    • Dimitris Aragiorgis's avatar
      Introduce network flavors to replace network types · 9bbc33bd
      Dimitris Aragiorgis authored
      
      
      Add tags and mode to network db model. Replace existing type with
      flavor. Introduce 4 different flavors. Each flavor has mode, link,
      mac_prefix, tags. Supported flavors are CUSTOM, IP_LESS_ROUTED,
      MAC_FILTERED, PHYSICAL_VLAN and are hardcoded in db models.
      
      Introduce new function that returns flavor's mode, link, mac_prefix,
      tags.
      
      In settings only DEFAULT_ROUTING_TABLE, DEFAULT_BRIDGE and
      DEFAULT_MAC_PREFIX, DEFAULT_PRIVATE_BRIDGE exist.
      
      Introduce FIELD_POOL_MAP to map flavor fields to pool tables.
      
      Make snf-manage network-create command as flexible as possible. It is
      now able to create a network based on an existing flavor and overide
      defaults by passing mode, link, mac_prefix, tags option. Resource pools
      cannot be used by CUSTOM flavors. Currently MAC_FILTERED and
      PHYSICAL_VLAN use MacPrefixPoolTable for mac_prefix and BridgePoolTable
      for link accordingly and cannot be overriden.
      
      API blocks creation of public networks. Introduce new setting
      API_ENABLED_NETWORK_FLAVORS to indicate which flavors can the end-user
      use to create private networks.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      9bbc33bd
  27. 30 Nov, 2012 2 commits
  28. 27 Nov, 2012 1 commit
  29. 23 Nov, 2012 1 commit
  30. 06 Nov, 2012 1 commit