1. 02 Dec, 2013 1 commit
  2. 29 Nov, 2013 1 commit
  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 2 commits
    • Kostas Papadimitriou's avatar
      ui: Remove UI_VM_HOSTNAME_FORMAT setting · f00910dd
      Kostas Papadimitriou authored
      no longer needed since compute api responses contain the fqdn vm attribute.
      
      Setting ``UI_NO_FQDN_MESSAGE`` setting added. Setting value will be displayed
      when fqdn vm attribute is empty.
      f00910dd
    • 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. 11 Nov, 2013 1 commit
    • Christos Stavrakakis's avatar
      cyclades: Retry failed instance creation · 4e3b9527
      Christos Stavrakakis authored
      Handle special case where an OP_INSTANCE_CREATE job which uses the
      opportunistic locking feature fails. This failure is probably due to the
      fact that all nodes may be already locked. In this case, make
      snf-dispatcher retry the failed job with opportunistic locking turned
      off. Also, make snf-ganeti-eventd include in the message the input of
      the failed job.
      
      Finally, add setting 'GANETI_USE_OPPORTUNISTIC_LOCKING' to turn on/off
      the use of opportunistic locking feature.
      4e3b9527
  7. 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
  8. 29 Oct, 2013 2 commits
  9. 09 Oct, 2013 1 commit
  10. 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
  11. 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
  12. 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
  13. 16 Jul, 2013 1 commit
  14. 11 Jul, 2013 2 commits
  15. 02 Jul, 2013 2 commits
  16. 19 Jun, 2013 1 commit
  17. 13 Jun, 2013 4 commits
  18. 07 Jun, 2013 1 commit
  19. 06 Jun, 2013 1 commit
  20. 03 Jun, 2013 4 commits
    • Giorgos Korfiatis's avatar
      cyclades: Remove obsolete delegate · 7b5aebe0
      Giorgos Korfiatis authored
      Also remove setting UI_ACCOUNTS_API_URL
      7b5aebe0
    • Kostas Papadimitriou's avatar
      astakos: Update references to astakos urls · 50ddae69
      Kostas Papadimitriou authored
      /im/ renamed to /ui/.
      Updated all references in default settings, documentation and constants.
      50ddae69
    • Kostas Papadimitriou's avatar
      cyclades ui: Clean up ui url settings · 0e3f5c1b
      Kostas Papadimitriou authored
      - Removed most url's from ui conf file. Default values are dynamically set based
        on other settings (CYCLADES_BASE_URL, ASTAKOS_BASE_URL etc.). We still do
        service lookups to be able to change urls in *extraordinary* deployments.
      - Moved url settings in ui.settings module
      0e3f5c1b
    • 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
  21. 23 May, 2013 1 commit
  22. 22 May, 2013 1 commit
  23. 21 May, 2013 2 commits
    • Sofia Papagiannaki's avatar
      astakos: move get_menu service under astakos im services · 774408bd
      Sofia Papagiannaki authored
      get_menu is used only by astakos cloudbar:
      it should not be under astakos api services
      774408bd
    • Christos Stavrakakis's avatar
      cyclades: Sypport backends with Xen hypervisor · 8bcc0f5f
      Christos Stavrakakis authored
      Support Ganeti backends with Xen hypervisor:
      * Extend 'Backend' model with the 'hypervisor' attribute, which
        currently can be 'kvm' or 'xen'. Use 'kvm' as default value to
        easy database migration. Also add the corresponding schema migration.
      * Do not use hotplug at Xen backends, since it is not
        implemented.
      * Support different 'hvparams' for Xen and KVM backends. Update
        GANETI_CREATEINSTNACE_KWARGS setting to hold 'hvparams' for both
        Xen and KVM.
      * When getting instance console, check 'serial_console' hvparam only
        for Xen instances.
      
      Refs #3772
      8bcc0f5f
  24. 10 May, 2013 1 commit
  25. 02 May, 2013 1 commit
    • Kostas Papadimitriou's avatar
      cyclades ui: Expose and use the new astakos quota api · 88da7a1c
      Kostas Papadimitriou authored
      - Removed /userdata/quota view in respect of astakos quotas api delegate
        views served in the same urls used by astakos api (/astakos/api/quotas,
        /astakos/api/resources). Base url is configurable using the
        UI_ACCOUNTS_API_URL (defaults to /astakos/api).
      - Refactored quotas js client to use backbone Collection/Model
        mechanisms.
      - Refresh quotas using the common api update mechanism used by vms and
        networks (deprecated UI_QUOTAS_UPDATE_INTERVAL setting)
      - Extended main view initialization steps to include quotas/resources
        loading before the initial layout renedring
      88da7a1c
  26. 30 Apr, 2013 3 commits
    • Christos Stavrakakis's avatar
      cyclades: Remove obsolete code for static quotas · bdaaef8c
      Christos Stavrakakis authored
      Remove the following obsolete settings, since their usage is covered
      by Quotaholder:
      - MAX_VMS_PER_USER
      - MAX_NETWORKS_PER_USER
      - VMS_USER_QUOTA
      - NETWORKS_USER_QUOTA
      
      Also remove 'cyclades-export-quota' management command.
      bdaaef8c
    • Christos Stavrakakis's avatar
      Cyclades: remove all quotaholder settings · 47413b6e
      Christos Stavrakakis authored
      Remove from cyclades all settings that were relative with Quotaholder.
      Remove CYCLADES_USE_QUOTAHOLDER settings, since Cyclades can not work
      any more without quotas.
      Remove CYCLADES_QUOTAHOLDER_URL and CYCLADES_QUOTAHOLDER_TOKEN since
      Quotaholder is merged with Astakos.
      47413b6e
    • Christos Stavrakakis's avatar
      cyclades: remove redundant settings · 54b52bfc
      Christos Stavrakakis authored
      Remove 'CYCLADES_USER_CATALOG_URL' and 'CYCLADES_USER_FEEDBACK_URL'
      settings, since both of them can be derived from 'ASTAKOS_URL' setting.
      54b52bfc