Handle astakos usage response in ui
override the hardcoded quotas if astakos response includes user usageinformation.
Variable name typo
Periodic update of user usage quotas
JS fix
call positionFooter after its definition
Merge branch 'devel-0.13' into latest-quota
Conflicts: snf-cyclades-app/synnefo/api/servers.py snf-cyclades-app/synnefo/logic/backend.py
Use img['checksum'] as origin disk param.
Use the img['checksum'], instead of img['backend_id'] as the origin diskparamater, as neede by the new archipelago code (and drop support for the oldone).
Fix variable scope bug in process_net_status
Do not allow creation of more than one pools
Do not allow creation of more than one Bridge or MacPrefix pool, sincewe can not handle them yet.
Migrate default settings to files under conf/
Migrate default settings to files under conf/ for everySynnefo component.
TODO: Obliterate snf-cyclades-app/synnefo/appt_settings/default/*and similar files. Make import of synnefo settings common throughout...
Add backend-id option to reconcile-servers
Make reconcile-servers perform reconciliation only for the specifiedbackend.
Import quotaholder settings only if needed
Import by default the quotas settings
reconciliation:avoid double asking Ganeti
Modify reconcile-servers to not communicate 2 times with Ganetito get the operstate and the NICs of the VMs. Merge this two onecall.
Modify backend-modify --drained and --offline args
Make backend-modify drained argument as --drained=True|False insteadof --drained and --no-drained. The same for offline.
Mark as drained newly added backends
Rename reconcile command to reconcile-servers
Rename `snf-manage reconcile` management command to `snf-managereconcile-servers`, to be consistent with `snf-managereconcile-networks`. Also, treat '--detect-all' option as defaultwhen no other '--detect-*' is specified.
Introduce network flavors to replace network types
Add tags and mode to network db model. Replace existing type withflavor. 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....
Migration files for network types
Implement quotas-init and quotas-verify
Implement quotas-init and quotas-verify management commands.- quotas-init sets quotas of Quotaholder to the state of quotas in Cyclades DB- quotas-verify detects incosistencies between quotas in Quotaholder and...
Merge branch 'ui-0.13' into devel-0.13
Fix metatada and personality of vmapi
Fix renamed setting
Fix quotaholder settings
Temporary fix for allocating archipelagos VMs
cyclades: authenticate to quotaholder with token
- initialize quotaholder client with the token from setting CYCLADES_QUOTAHOLDER_TOKEN
- rename setting USE_QUOTAHOLDER to CYCLADES_USE_QUOTAHOLDER
Fix typos
Merge handling of ext_<provider> disk templates
Use helper function for verifying personalities
Use CYCLADES_QUOTAHOLDER_URL
Merge branch 'origin/devel-0.13' into quota
Conflicts: snf-cyclades-app/synnefo/api/servers.py
Fix variable scope
Fix handling of firewallProfile action
Refs #3097
set quotaholder urls
- quotaholder base url is of the form 'http://host/quotaholder/v/'- cyclades setting name set to CYCLADES_QUOTAHOLDER_URL
Fix wrong setting
PUBLIC_ROUTED_USE_POOL has been renamed to PUBLIC_USE_POOL
Fix bugs from merging
Add USE_QUOTAHOLDER setting
Add setting indicating whether to use the Quotaholder service oruse the static limits.
Fix imports relative to quotas
Add migration file for quotaholderserial
Fix bug in images API
Use image_backend context manager to ensure that ImageBackend is alwaysclosed. list_images method did not close the ImageBackend, whichresulted in depletion of the Pithos backend connection pool.
Make Plankton API return all available images
Modify Plankton API, such that GET to /images/ retrieves a list ofavailable images that the authenticated user has access to. Thisincludes images owned by the user, images shared with the user andpublic images.
Update management command to display user images
Merge branch 'devel-0.12' into devel-0.13
Conflicts: snf-cyclades-app/synnefo/plankton/backend.py
Issue commission when deleting VM/Network
Issue commission to the Quotaholder when being notified from the Ganetibackend that a VM/Network has been deleted. Although the resource hasalready been deleting, we are interacting with the quotaholder in atwo step phase: issue commission and accept commission. It would be...
Fix quotaholder exception handling
Currently, QuotaholderHTTP returns CallError, with the call_errorattribute indicating the error.
Implement reconciliation for pending quotas
Remove transaction from update_network_state
Remove transaction decorator from update_network_state function, sincethis function is only called from process_network_status, which already runsinside a transaction.
Allocate resources from cyclades entity
Also fix commissioning key
Convert resource sizes in bytes
Rename disk to disk_size
Revert "Rename disk to disk_size"
This reverts commit 2d017fc046194d8316096c56d4a32cdf81ce5fcd.
update to use new quotaholder packaging api
Issue commissions when creating server/networks
Issue commissions to the Quotaholder when creating a VM or a Network.The VM/Network that is associated with the corresponding serial in DB.Also, the serial is marked as accepted because at the end of thetransaction the resource will be present in the DB. Even in case the...
Refactor some code to API create_server method
Create quotas module
Create quotas module, containing functions for interacting withthe Quotaholder service.
Reorder code
Create QuotaHolderSerial table
Add QuotaHolderSerial column to VM and Network
Correlate the VirtualMachine and Network models with a QuotaHolderSerialentry, holding the serial number returned by the QuotaHolder for thelast allocation for these resources.
Do not automatically update network state
Each modification in a BackendNetwork object, triggers an updateto the corresponding Network object. Until now this was done bythe BackendNetwork save() method. Now it is explicitly donefrom the backend pross_network_status.
Handle Pithos NotAllowedError
Merge branch 'devel-0.12'
Merge branch 'ui-0.12' into devel-0.12
Remove IGNORE_FLAVOR_DISK_SIZES setting
Use vmapi when creating servers
Use the vmapi when creating servers. Creete instance RAPI call takes theconfiguration url instead all the image parametere. The id and formatof the image are still passed, just for readability and debugging.
Also renamed params_url to config-url.
Fix vmapi BASE_URL
Remove nodeapi from app_settings
It survived from wrong merge conflict resolving.
Proper window.open use in ui
window.open method accepts specs in string format instead of objectwhich is not supported by all browsers. This fixes console window todisplay scrollbars using IE in small resolutions.
Propen window.open use in ui
Rename nodeapi to vmapi
vmapi improvements
Initial commit of the nodeapi application
Additional synnefo api to be used by internal synnefo services such assnf-image/ganeti etc.
Border fix for public network view
regression appeared from the grouped public network support.
VM creation signal
`synnefo.api.servers.server_created` signal has been created. The signalis send for each created server. The signal sender is the created vm andone argument named `created_vm_params` is passed to the connectedcallback functions.
snf-dispatcher: Update NICs only when needed
Do not remove and recreate the NICs of a VM when NICs have not changed.
Implement resizing of pools
Extend PoolManager to support extending and shrinking of Pools. Alsoadd extra option '--size' to pool-modify command.
Add function for pretty printing tables
Fix white space
Extend Plankton API with shared-images
Extend Plankton API, to support listing all non-public images thatare available to the user. This can be done by issuing a GET toshared-images/ and shared-images/detail.
Implement server-import management command
Implement management command for importing an existing Ganeti instanceinto Synnefo. The owner, flavor and image are specified by command linearguments. Importing will fail if the instance has NICs connected to...
Make amqp_puka get logger as argument
UI metadata view fix
proper check of existing meta keys
Update Changelog to include UI changes from 0.11
Merge branch 'ui-0.11' into devel-0.12
Force confirmation of untrusted image selection
ensure that user notes the untrusted image risks before he continues toflavor selection.
Handle empty images list in vm creation view
Prompt custom image guide reference if no images available
Handle unavailable hostname information in ui
fallback to ip address
SSH personality keys ownership fix
also send mode/owner/group for each user's authorized_keys
Check clustername when modifying backend
Add check for clustername when adding backend
Fix lectical in pool-modify
Lay styling stress on connect view warning message
Avoid double escaping of image metadata
image model get_meta already takes care of escaping the meta value
Support multiple image users in js models
methods that used to return user specific information modified to returnarrays of objects based on identified image users. Image space delimited`users` metadata key is now the primary point to identify existing image...
VM creation view improvement, Refs #3012
warn user against untrustworthy image owners
VM create view styles fix
fix max height and spacing of public keys list view
Fix HTTP code when adding NIC to inactive network
Add --filter-by option to *-list commands
Add --filter-by option to server-list, network-list and flavor-listmanagement commands. The value of this option is a comma-seperated listof key 'cond' val pairs and, when used, only the DB entries that satisfy all of...
Fix typo
Sort all API list_* responses