cyclades: Fix type error
cyclades: Common function to get object by ID
Create common helper function, for command line tools, to get an objectfrom DB by it's ID, and raise the appropriate command error if theobject does not exist or the ID is invalid.
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...
cyclades: Update snf-manage subnet-* commands
Fix error msg
cyclades: Allow deletion of ports from deleted VMs
Fix corner case where a port seems to be still attached to a VM althoughthe VM has already been deleted.
cyclades: Lock objects in modifying commands
cyclades: Handle invalid user input in neutron api
cyclades: Update subnet-inspect
cyclades: Replace ASTAKOS_BASE_URL
Replace ASTAKOS_BASE_URL with ASTAKOS_AUTH_URL.
cyclades: Update common.get_subnet()
cyclades: snf-manage floating-ip-state
snf-manage floating-ip-state <floating_ip_state>Find if a floating-ip is attached to a server or not.IPAddressLog now can contain multiple entries for the same ip.
cyclades: Fix some typos
cyclades: Do not print IP pool for IPv6 only nets
Do not print IP pool of Ganeti network in case the network is an IPv6only network. The Ganeti network has a dummy IPv5 subnet, just becauseit is needed. Only change this dummy subnet to /30 to reduce space in...
docs: Update admin-guide to reflect subnet changes
cyclades: Add snf-manage subnet-inspect
cyclades: Fix permissions when looking up ports
Look up of ports should check the port userid and not the networkuserid.
cyclades: Choose networks in server-create cmd
cyclades: Fix server-create and server-inspect
Fix output of server-inspect command. Also, add --wait option toserver-create command and pretty-print the newly created server.
cyclades: Fix stale references to moved function
cyclades: Common module for pretty-printing
Create common module for pretty-printing database objects. Currently itcontains only functions for pretty-printing networks and ports.
cyclades: Use existing IP when creating port
Extend port creation with the option to use an existing IPAddress. Thiswill be used to create a port with an existing Floating IP. Also, extendport-creata management command with the '--floating-ip' option.
cyclades: snf-manage floating-ip-release <address>
cyclades: Add get_subnet in management/common.py
cyclades: Add --action option in server-modify cmd
Add --action option in server modify command, to start, stop or rebootan instance.
cyclades: Move code for validating network values
Move code for network parameters validation from 'api' module to 'logic'.
cyclades: Refactor code relative to networks
Move code checks from network-create management command tologic/networks.py.
Also create common decorator for management commands to convert apifaults to command errors.
cyclades: Do not delete networks with floating IPs
Forbid network deletion in case the network has allocated floating IPs,no matter whether they are used by instances or not. Update'allocate_floating_ip' API method, to take exclusive lock on networkbefore reserving a floating IP, to avoid race condition between deleting...
cyclades: Move common code to seperate function
Move common between API method and management command for creating aserver to a separate function.
Move cloud faults to 'snf_django.lib.api.faults'
Gather all faults from all synnefo projects into common'snf_django.lib.api.faults'.
Move UserCache from cyclades.common to lib.astakos
Move UserCache from synnefo.management.common to synnefo.lib.astakos.Also, update ListCommand with 'astakos_url' and 'astakos_token' classattributes, which must be declared only when 'user_uuid_field' is used.
snf-manage: Accept Ganeti server/network names
Make management commands relevant with servers and networks to acceptas arguments their Ganeti names, besides their database ID.
For example if BACKEND_PREFIX_ID='snf-', they following two commands areboth valid:...
Move common code for mngmt commands to webproject
Move cyclades functions that are useful for all managament commands, likepprint_table or parse_filters, to snf-webproject.
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 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...
Improve server-list usability
Refs #3375
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.
Add type assertions in pprint_table args
Add assertions about the types of "table" and "headers" arguments.
Refs #3365
Fix TypeError in pprint_table
Convert all fields of table and headers to strings before counting theirlength or right-aligning them.
Validate all network-create parameters
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).
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.
Fixes relave to --uuids option
Pep8 fixes
Add --uuids option to server-list
Move exception handling in get_user()
Fix a pep8 error
Handle exceptions when using --filter-by
Handle exceptions in 'filter_results' (management commands helperfunctions used to implement --filter-by option).
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.
Add function for pretty printing tables
Check clustername when modifying backend
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...
Refactor code in management commands