Make server-create work with vmapi and archipelago
Fix bug in DummyQuotaholderClient
DummyQuotaholderClient should count only positive commissions.
Fix bug in networks create
re-raise the exception after rolling back transaction
Fix reconciliation for building VMs
Since commit 482c645, a VM exists in the Cyclades DB before thecorresponding job is enqueued in the Ganeti backend. Therefore, there isa corner case, where Cyclades can not enqueue the job to Ganeti andCyclades crashes before deleting the VM from the DB, which results in a...
Fix transaction handling when creating server
Better handling of transactions when creating a server. Commit thecreation of VM in DB, before enqueuing the job to the Ganeti backend.If communication with Ganeti fails, then the VM is deleted from the DB....
Remove unused module
Remove mac2eui64 dependency
Import mac2eui64 code which is already shipped under util/mac2eui64 insteadof shipping it as a seperate script.
Fix pep8 issues
Fixes to setup.py
Update author/maintainer name/email of all synnefo projects. Also fixshort description and some whitespace issues.
Fix pep8 warnings
Fix string replace in 'weekly stats' js
Fix string replace in 'weekly stats' js to work with both the old stats urls andthe new snf-stats-app urls.
Fix bug in network reconciliation
Fix bug in network reconciliation caused by wrong variable scope.
pep8 fixes
Add disk_template to Flavor name
Add command for exporting cyclades quota
Add 'cyclades-export-quota' management command, for exporting to a fileVMS_PER_USER and NETWORKS_PER_USER settings, in a format expected by theastakos management command 'user-set-initial-quota'.
Handle transaction manually when creating network
When creating private networks, commit the transaction before sendingthe job to all Ganeti backends. If communication with all Ganetibackends is included in the transaction, notifications from backendsmay be received before the Network entry is created in the DB.
Fix image 'backend_id' for archipelago
Archipelago needs as disk origin, the hashmap of the imageinstead of its url in the backend.
Add missing setting files to conf/
Rename ARCHIPELAGOS to ARCHIPELAGO
Rename ARCHIPELAGOS_BACKENDS setting to ARCHIPELAGO_BACKEND.
Filter out deleted vms/networks
Do not count deleted VMs and Networks when getting holdingsfrom the Cyclades DB.
cyclades: import quotaholder exceptions from kamaki
Because this is where the quotaholder client exceptions come from.
Do not automatically update version files
Do not automatically update version files from setup.py. From nowon, version files are updated using 'update_version.py' script and'devflow'.
Also removed autopkg.conf and created devflow.conf configuration file.
Merge branch 'feature-projects' into develop
Expose /user_catalogs service api call
Change migration scripts to use this instead of the user api call
Change feedback & user_catalogs astakos && pithos api calls
plankton: Handle correctly request filters
Make sure that when listing public images plankton verifies thatsize_max and size_min req filters are integers, and return a BadRequest response otherwise.
Fix progress messages handling
proper handling of missing `messages` key progress messages.
Merge 'develop' into feature-projects
Needed for building devflow packages from feature-projects.
Network field type has been renamed to flavor
Fix typo bug in reconcile ip pools
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