Merge 'develop' into feature-projects
Needed for building devflow packages from feature-projects.
Add warning message for backend without networks
Remove devflow form build dependency
Remove version dependencies from snf- packages
Remove devtools and rename to devflow
Fix footer positioning javsacript handler
Improve javascript exception handling
Skip 'Script error' exceptions. Those exceptions get raised inFF/Safari/Chrome from scripts which location violates same-origin-policyof the document (e.g cloudbar.js).
Merge branch 'latest-quota' into develop
bring quotas, projects, astakos logins, pithos/RADOSinto the new synnefo development workflow
WIP commit for the devtools build system
Refactor network reconciliation
Fix public image handling
Helper api method to retrieve existing userids
Cyclades astakos migration helper command
Merge branch 'devel-0.13' into develop
Conflicts: snf-cyclades-app/synnefo/api/servers.py snf-cyclades-app/synnefo/logic/backend.py
Remove unused imports from tests
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 'master' into devel-0.13
Conflicts: snf-cyclades-app/synnefo/db/models.py snf-cyclades-app/synnefo/logic/management/commands/backend-modify.py
Refactor tests
Fix bug about networks and offline backends
Ignore offline backends when computing the state of the network, sinceno notification will be received from them. Also, create noBackendNetwork for an offline backend. This will be created byreconcilliation, when the backend gets online again.
Add more tests for db, logic and api
Fix wrong count of reserved pool entries
Padding should not be considered when counting unavailable entries.
Remove dummy function
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.
Properly configure plankton as an app
All django apps need a models.py file
Add basic tests for plankton
Fix bugs in models methods
Add more tests for db and logic
Refactor some test code
Misc minor bug fixes
Add object factories for most db models
Use 'factory_boy' library for creating Django ORM objects as test data.These factories can be used as fixtures replacement since they areeasier to write and maintain.
Include Pool tests to Django testsuite
Fix current db, logic and api tests
Fix handling of firewallProfile action
Refs #3097
Fix variable scope
Merge branch 'devel-0.13' into latest-quota
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
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
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.