Update setup.py for every snf-* component
UI create vm errors fix
never forget to pass vm create callback arguments
pool context manager, http pool AssertionError fix
Refs #3492
- Introduce a generic PooledObject class to act both as a context manager for getting and putting back an object from a pool.
- Implement a class PooledHTTPConnection(PooledObject) as a sublcass of the one in (1)...
Display additional vm backend info in helpdesk app
Refs #3452
Typo fix
Trigger user quota updates on sepcific ui api calls
- We force user quota information to be updated after the completion of vm/network create/destroy actions.
Fix bug in uses_commission decorator
Distinquish between exceptions in the decorated function and exceptionsin accepting/rejecting the commissions. The first one determines whetherserials should be accepted or rejected, while the second one is an error...
Fix plankton shared_from image listing
Commit 469d099 introduced a typo which caused /plankton/shared_images/to raise an UnboundLocalError.
Fix available ram options in vm create view
typo fix that caused unavailable ram options due to user quota limits tostill be shown as selectable values.
flavor-create: warn if flavor is deleted
Improve performance of cyclades-usage-verify
Get quotaholder holdings for all users in one call, to speed upexecution of 'snf-manage cyclades-usage-verify'.
UI loading view improvements
Refs #3396Refs #3397
- Use separate loading messages for each action to avoid confusion caused due to aynchronous progress- Enforce resolving of unknown machine image ids before the main view gets rendered.
UI auth client fix
Fix early check for existing cookie contents
UI. Always extract user info from current cookie contents
Refs #3460
Token value set in api action/request is always retrieved from thecurrent cookie contents. When cookie contents change is detected uiredirects user to log in.
Cookie changes are detected each time the app tries to use the user...
Helpdesk tests update
- Include suspend/release suspension tests- Mock astakos displayname/uuid resolving methods- Update fixtures with user uuids- Test vmid lookup
Helpdesk logging improvements
Refs #3454
Allow user to search by vm id in helpdesk app
Refs #3453
VM lookup is triggered when search query matches the following patterns
- vm<id>- vm-<id>
UI create machine improvements
- Display remaining resources- Predefined flavors display fix
Disable flavor options that exceed user quota
respect current user quota in flavor options display
New ui quota helper class
also updated ui views to use the new class
Improve ui userquota response
include all available information as retrieved from astakos response
Cyclades UI machine create view improvement
- widen up view- prettier (no scroll) compact flavor list style, when flavor options are too many to display in a single row
Improve memory choices display in vm create view
Apply human readable (MB, GB) conversion
Add --dry-run option to flavor-create
Add --dry-run option to flavor-create management command. Also, do notcrash if flavor already exists.
Refs #3366
Fix+move HTTP quotaholder client in synnefo.lib
Allow per-service configuration of the (http) quotaholder client.Kamaki is no longer needed in service (or ganeti) nodes,because the client has been moved to snf-common.
Also fix the default quotaholder settings for pithos backend to be disabled...
Bypass commissioning for orphan networks
Cyclades public networks do not have an owner, and since can not usethe commissioning system. Also, make snf-dispatcher instead of failingfor networks without userid to just a log a warning. This does not apply for...
Fix bugs in UserCache
Fix an infinite loop bug in UserCache.fetch_names(), and correct the*-list commands to only call fetch_names(), when invoked with the--displayname option.
Fix log string format
Fix print alignment for snf-mange cmds
pprint_table misbehaved when handling unicode 'strings', breaking thealignment of the output of several snf-manage cmds, and raising aunicode encode exception, when printing non 'ascii' unicode strings.
Calculate correctly the max column width by applying len() directly to...
Add negative caching in ImageCache
Refs #3375
Improve server-list usability
Improve perf for snf-manage cyclades commands
When the snf-manage {server, network}-list commands are invoked with the--displayname option, batch the UUID-to-displayname requests to astakos,instead of issuing a request for each (unique) UUID.
Correctly instantiate pithos backend pool
Plankton should explicitly pass quotaholder related args to the pithosbackend pool constructor (after the feature of deregistering imageswithout deleting them is implemented, plankton should only passquotaholder_enable=false to the constructor)....
pep8 fixes
Cyclades feedback email fixes
- Include user uuid and email as user info
Helpdesk app fixes
- Do not use autocomplete feature (usernames are now stored in astakos db)- Translate provided username to retrieve user uuid- UI: Display network operstate in as badge. Hide deleted vms in nics lists.
Add type assertions in pprint_table args
Add assertions about the types of "table" and "headers" arguments.
Refs #3365
Fix default example urls in deb config files
Fix TypeError in pprint_table
Convert all fields of table and headers to strings before counting theirlength or right-aligning them.
fix and better document quota export/import
Merge branch 'feature-docs-devflow' into release-0.13
Make docs (devflow) version-'aware'
Update cyclades api settings and conf files
Rename synnefo.local -> example.synnefo.org
As determined by a spontaneous committee, based on
- .local is used
- 'example' strongly hints to configuration action
- synnefo.org is under control.
Validate all network-create parameters
reconciliation: handle missing network from db
Continue reconciliation even if an orphan network is missing from DB.
Fix bug: Detect malformed network subnet
Fix bug in Cyclades network API. API should raise BadRequest ifspecified network subnet is invalid. Also, do not allow subnets withhost bits set (like 10.0.0.1/28).
Fix typo
Fix testcase-mock
Mocked get_image_dict should contain checksum, needed by archipelago
Fix BridgePoolTable testcase
Add plankton test
Add test for malformed filter when listing images.
Remove unused function delete_to_login_service
Don't use CYCLADES_USER_CATALOG_URL in snf-manage
Replace CYCLADES_USER_CATALOG_URL with ASTAKOS_URL.replace() insnf-manage cmds that use it. CYCLADES_ASTAKOS_SERVICE_TOKEN(/user_catalogs) cannot be used with CYCLADES_ASTAKOS_SERVICE_TOKEN./service/api/user_catalogs should be used instead.
Add --uuids option to snf-manage cmds
Fixes relave to --uuids option
Pep8 fixes
Add --uuids option to server-list
Move exception handling in get_user()
Fix a pep8 error
Remove stale import
Remove 'snf-admin' and 'snf-cloud' tools
Remove unused setting file
Cyclades astakos migration command fixes
- Rename to cyclades-astakos-migrate-013- Handle invalid uuids- Some code cleanup
Override get_owner method for glance model object
to properly handle unknown owner entries
Delegate astakos user catalog call in cyclades
cyclades now serve a delegate view for the astakos /user_catalog apicall. Cyclades UI app should use this endpoint to translate user uuidsto display names.
Astakos endpoint is configurable from the CYCALDES_USER_CATALOG_URL...
Translate image owner uuid -> display name in UI
UI uses the introduced /user_catalog api to translate uuids to displaynames when necessary.
minor fix and rename to cyclades-reset-usage
minor fixes and rename to cyclades-usage-verify
rename to cyclades-reconcile-commissions
Synnnefo ui fallback route
include a default route to redirect to index to catch arbitrary urlfragments.
ui compatibility: translate uuids to display names
correct quotaholder exception imports
userquota to handle null request.user
Fix whitespace, Licence
Re-implement select_for_update
Previous implementation of 'select_for_update' method was based on anattribute of the 'ForUpdateManager'. However, the model manager is sharedbetween all threads, which lead to race conditions. This commitreimplements 'select_for_update', by making it return a custom QuerySet...
Totally remove password from create_instance
Never pass password as an 'osparam' to Ganeti. Always use the vmapi,even for VMs created with server-create management command.
Fix bug in PoolTable
Catch correct exception
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
Add details to OverLimit exception
Handle exceptions when using --filter-by
Handle exceptions in 'filter_results' (management commands helperfunctions used to implement --filter-by option).
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.
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.