Add --property to image list
Refs: #4220
Also, fix various bugs introduced by utils re-writtings
Unittest print_dict + print_list
Refs: #4058
Fix typos in floating ip methods (cli + lib)
rename floatingip --> ip in server + docs
Use multiformed ranges in kamaki pithos lib
Refs: #4059
Also, adjust corresponding unit and functional tests
Let argument.rangeArgument parse more ranges
Show user names in /file sharers
Refs: #4203
Add upload local image abilities to register
Refs: #4206
New register args:
--update-image-file=/local/path --no-progress-bar
Correct error message if file does not exist
Fix typos, decale kamai.cli.argument as package
Guess mimetype and use it in uploads
Refs: #4196
Ignore subdir section in file_list
Refs: Bug #4134
Use container:path format in register
Refs: #3778
Create CLI commands for astakos project API
Refs: #4155
Merge branch 'feature-test-argument' into develop
Update documentation for server resize
Refs: #4153
Expose resize_server as server_resize
Refs: 4153
Fix typo in error docs
Merge branch 'feature-test-command-tree' into develop
Fully test argument.Argument
Improve error message when image meta file exists
Spot and remove unused Command methods
Expose commission issue commands
Refs: #4115
Expose commission commands (astakos)
New commands: astakos_commission_*: pending, info, action, accept, reject, resolve
Also implement the CommaSeparatedListArgument structure
Expose more astakosclients methods (1to1)
New commands: astakores_resources/feedback/endpoints
Also, wrap astakosclient expositions with an error handling decorator
Update inline documentation for get->whoami rename
Rename user_get-->user_whoami
Fix user_list docs
Allow multiple tokens per cloud configuration
Refs: #3632
Implement user_get/set for session user
user_info --> user_getEach kamaki session has a session userThe user defined in the config file through cloud....tokenDuring the session, kamaki users may authenticate more users by tokensand switch between them with user_set command...
Implement user_info to show current user info
Implement a user_list to list cached shell users
Parse publicURL to fix astakos init, pretty quotas
Fix logger in snf-astakos commands
Add --wait 2 network_create/delete + upd Changelog
Refs: 3867
Make wait mechanism usble by more cyclades methods
Refs: #3867
Add a --wait option to various server commands
Commands affected: server_create/start/shutdown/reboot
Also, the wait functionality is now encapsulated in a _server_wait classThe server_wait command is just an implementation of this class.
Update the copyright dates everywhere
Restore history-run functionality
Expose floatingip command group to CLI
Expose impemented floating IP methods
New commands:
floatingip list/create/delete/info/poolsserver ip attach/detach
Also, renamed the assoc/disassoc floating ip clients methods toattach/detach_floating_ip
Remove links from simple listing
Add image registration examples
Complete the listing section
Fix deprecated terms in documentation
Recover old token in case of authentication error
Prepare special local paths (like .) for pithos
Merge branch 'feature-expose-astakosclient' into develop
Conflicts: kamaki/cli/commands/snf-astakos.py
Fix all minor typos and modifications in tests
Fix typos in error messages and helps
Refs: #3979
Fix log level for expected command failures
Change term "remote" to "cloud" when proper
Refs: #3934
Document the Upgrade notes for v0.9
Fix PEP8 warning
Merge branch 'feature-endpoints' into develop
Adjust help messages to configuration changes
Refs:#3934
Fix a PEP8 issue
Use os-specific path seperators in up/down-load -R
Refs: #3954
Adjust all command specs to multicloud/singleauth
Make sure user and history commands work fine
Adjust config cli commands to serve remotes
config set remote.smth.option value inserts option=value in remote smthconfig get remote.smth lists the contents (key=val) of remote smthconfig delete remote.smth.option deletes this specific option from the remote smth...
Decide a cloud term, use it if no cloud.url
A. Hardcode the new kamaki config file
Breaks compatibility, implements a remotes-based config file
Backwards compatibility for configuraiton file
Compatible with kamaki config files v2
user.url, file.url, compute.url and image.urlare now valid and of higher priority toastakos.url, pithos.url, cyclades.url, plankton.urlwhich are also valid
All these are ignored iff [global].auth_url is given
Fix typos in default and expected values
Handle url proccessing even if url is unicode
Also, fix typos and default values for service configurations
Fix typos in user command flow
Apply servce.url options to cross-sercice calls
Refs: #3874
Let cross-service initializations to use explicit service endpoint urls ifthere is no single authentication url.- In Image commands, there are calls that use astakos and pithos clients- In pithos there are calls that use astakos client
Use explicitely set services urls if no auth_url
In current configuration, kamaki checks for auth_url. If that fails,it raises an error. If it is not set, it prints a warning and attemptsto read the <service>.url option from the configuration file....
Implement --cloud arg to switch between clouds
Refs: #3913
Config file can (optionaly) contain:
[remotes] example = https://www.example.org/astakos/identity/v2.0/ old_version = https://www.example.org/astakos/identity/v1.0/ ...
Now, user can explicitely request for a remote cloud authentication URI:...
Get endpoint urls for all CLI operations
Use kamaki.clients.astakos.AstakosClient as a cached astakos client to getuser information and, most importantly, endpoints. Allow users to authenticatemultiple tokens on the same session. In every session there must be at most...
Remove undesired logging in non-verbose mode
Differenciate cli logger from astakosclient logger
Wip snf-astakos, try-import it by default
Expose some basix astakosclient methods to cli
Methods exposed:
get_user_info as authenticateget_uuid[s] as uuidget_username[s] as usernameget_quotas as quotasservices_get_uuid[s]/username[s]/quotas as service uuid/username/quotas
Setup a snf-astakos command set
Fix typo in kamak.cli.logger import
Rename meta-->metadata and remove values @CLI
Refs: #3633
Add metadata management to image register
- validate image metadata format- read metadata from file- merge file-loaded metadata with runtimes- store metadata file on pithos, check existance, overwrite with f raise helpful error messages when there fail...
Merge branch 'feature-json-output' into develop
Conflicts: Changelog kamaki/cli/commands/image.py
Also, take care of pep8 issues
Fix typo in pithos upload output
Implement an optional json output 4 outputing cmds
Refs: #3732
Add json/optional output to astakos cmds
Add json/optional responses to flavor/network cmds
Add json/optional outputs to server commands
Update and enrich error messages in image register
Parse ivalid property file and guide users to correct itGuide users to pass valid container:path parameters
Refs:#3769
Print full and nice response in image register
Make sure registered properties are unique
Refs: #3769
Store image properties after image registration
Log of changes:- Properties are stored in a remote file on Pithos+- File name is <image-file>.meta- Feature can be switched off with --no-property-file-upload- If remote property file exists, registration is aborted...
Optionaly load images properties from file
Update documentation to reflect changes in output
Refs: #3756
Apply option outputs to image commands + renames
- Add image.add_member missing content-length header- Rename image-[add|del]member commands to members-[add|delete]- Remove update option from image-register- In image-compute split properties to properties-list and properties-get...
Apply optional output to kamaki file commands
Apply the feature wherever is applicableGeneralize the feature by moving the corresponding code to _command_init
Update file operations and their output
Refs: #3756 #3732
- Add optional output for file methods: mkdir, touch, create, move, create, copy, move, append, delete, purge, info, meta, upload - Transliterate permissions and metadata methods to apear as get/set/delete...
Add output to file copy/move
Also, kamaki.clients.pithos.copy/move_object returns response headers
Add output support to create methods
In kamaki.clients-------------------- storage.create_directory returns response headers- implement pithos.create_container
In kamaki.cli.pithos-------------------- add flag --with_output for optional output...
Add json formated output for file list
- Implement a print_json auxiliary method in kamaki.cli.utils- Add a (j, --json) flag to file list When -j or --json flag is on, only json is printed
Allow copy of deleted objects by refering to older
Also disallow moving deleted objects by version The later was implemented byaccident, due to the symetry between move and copy
Refs: #3737