snf_django: Use option groups in SynnefoCommand
Extend SynnefoCommand to use option groups to distinguish between commonand command-specific options, by overriding the 'create_parser' method.The command specific options must be declared in the'command_option_list' attribute of the SynnefoCommand. Also, we use a...
cyclades: Create common '-u/--user' option
Create 'cli_option' module, to contain the common definitions foroptions of Synnefo management commands.
Currently, it contains only the '--user' option definition which acceptsuser's UUID or email and annotates the command options with the...
snf_django: Properly chain `exclude' queries
Although chained filters, e.g. filter(p1).filter(p2), can be summed up asfilter(p1, p2), this is not the case with exclude. If you want to excludethose selected by p1 as well as those selected by p2, you need...
snf_django: Fix select_related in ListCommand
Pass all related fields in a single call, because select_related does notchain as expected (yet). See https://code.djangoproject.com/ticket/16855
Also pass prefetch_related in a uniform way.
snf_django: Fix bug in list commands
Fix bug in Synnefo ListCommand where you could not select to print onlythe user email columnd ('-o user.email').
snf_django: Add new filtering fuction
Add new 'filter_objects_results' function to apply filters, e.g. from--filter-by option to objects. Rename old 'parse_filters' function ,thatparsed filters to querytset arguments, to 'parse_queryset_filters.The new function is currently unused.
cyclades: Optimize server-list command
Optimize server-list command by prefetching related fields if needed.
snf_django: Fix typo in --output-format help text
django: Add a RemoveCommand class
cyclades: Update some snf-manage commands
cyclades: Verbal fixes on some snf-manage commands
cyclades: Command to export Cyclades statistics
Add new 'snf-manage stats-cyclades' management command to export basicstatistics about Cyclades, like number of servers, network and resourceutilization. The command can either export the statistics either in JSON...
snf_django: Impose ordering on operator parsing
Turn the dict of operators to a list to make sure a certain ordering ispreserved.
Merge branch 'feature-cyclades-networks' into develop
Conflicts: snf-cyclades-app/synnefo/api/management/commands/server-inspect.py snf-cyclades-app/synnefo/app_settings/urls.py snf-cyclades-app/synnefo/logic/backend.py snf-cyclades-app/synnefo/logic/backend_allocator.py...
snf-django: Optimize DB queries in ListCommand
Add options to use 'prefetch_related' and 'select_related' options ofDjango queries to optimize the DB queries.
django-lib: Use the new AstakosClient
cyclades: Fix output of network-inspect command
snf-django: PEP8 fixes
Fix stale import statements
Commit 7cfc0ce moved code from webproject to snf_django. This commitfixes some stale imports that skipped renaming.
snf-django: Move ListCommand to snf-django
snf-webproject contained the generic ListCommand, and because of this ithad a dependency from snf-django-lib. This commit moves this command fromsnf-webproject to snf-django-lib and removes this dependency. Also,...