Use explicitely set services urls if no auth_url
Refs: #3874
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....
Update changelog
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:...
Merge branch 'develop' into feature-endpoints
Fix pep8 warning
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...
Create config file version 3
Minimum config file:[global]token = <user token>
Changes:
- Only one field "cli" for user command specs, to map command groups to CLIs:
[cli] user = astakos file = pithos server = cyclades...
- Specify client services/apis and versions....
Merge commit '528550d929d5d30009016ae23b2a948d13fe8eb3' into develop
Conflicts: Changelog version
Enrich/rename astakos client calls with endpoints
Kamaki.clients.astakos.AstakosClient is now a high-level client lib thatoffers access to token-authenticated astakos-aquired cached information.Users who need an astakos client should use the snf-astakosclient instead....
Merge branch 'feature-osv2-compatibility' into release-0.9
Merge branch 'release-0.9' into feature-osv2-compatibility
Initialize version 0.10
Initialize kamaki v0.9rc1
Merge branch 'feature-expose-astakosclient' into develop
Merge branch 'feature-osv2-compatibility' into develop
Update Changelog for latest astakosclient cli
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
Update log about astakos authenticate adjustment
Adjust astakos authenticate to snf-0.14 url sheme
Setup a snf-astakos command set
Update config file version tag
Fix typo in kamak.cli.logger import
Rename meta-->metadata and remove values @CLI
Refs: #3633
Rename meta-->metadata and remove values @lib
- Meta-->metadata in some cases, according to the expected cyclades API- remove values level from requests and responses @ cyclades lib
Fix expected "public" header params in tests
Merge branch 'feature-image-meta-record-format' into develop
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...
Use _format_image_headers: image_register,get_meta
- Ensure uniform image meta output- Easy to apply the correct meta format
Refs: #3797
Restore thread-wait for append
Fix typo (permition --> permission)
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
Wait threads to finish in pithos append_object
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
Do not unpublish by default @ pithos rest calls
Refs: #3780
Merge branch 'feature-image-meta-record' into develop
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
Do not recalculate #blocks in upload_from_string
Refs: #3608
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
Merge branch 'feature-json-output' into feature-image-meta-record
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
Merge branch 'feature-updownload-fromto-string' into develop
Update changelog, unittests for upload_from_string
Functional test and debug for upload_from_string
Implement upload_from_string
Implemented with threads
Optimize download_to_string by using threads
Implement download_to_string in pithos client
The download_to_string method downloads a remote object from pithos into astring, which is then returned.
Also, implemented unit and functional tests. Changelog is updated
Merge branch 'bug-move-copy' into develop
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
Fix typo dst_path instead of ds_path
Refs: 3737
Merge branch 'feature-enumeration' into develop
Add enumeration as optional for all list cmds
Refs: #3739
Merge branch 'bug-shell-cmd-syntax' into develop
Restore 2nd level command sysntax in shell
Refs: #3736
Merge branch 'feature-cache-container-info' into develop
Upload Changelog for container info upload caching
Refs: #3735
Cache container info request per upload session
Update changelog for upload's container_info_cache
Refs: #3707
Adjust pithos livetest to use container_info_cache
Update unitest to include container_info_cache
Refs: 3707
Add a container_infor_cache param to upload_object
Each upload involves a request that retrieves block size and hash information.In higher level applications, this request is redudant after the first upload.This feature allows higher level operations to cache retrieved container info...
Merge branch 'feature-upload-returns' into develop
Update documentation for -l at file upload
Refs: #3730
Add a -l option to upload: list uploaded details
If the upload is successfull, if the -l or --details argument is present,kamaki lists all uploaded objects with all details returned by the server(e.g. object version, date of creation, etc)
Update changelog (pithos upload modification)
Refs: #3656
Update livetest for upload return modification
Modify upload methods to return created obj info
Methods affected: upload_object upload_object_unchunked upload_object_by_manifestation
unittests modified accordingly
Merge branch 'feature-empty-container' into develop
Update Changelog for #3662
Implement purging a non-empty container
kamaki file purge <container> -F
will automatically empty a container before purging it
Refs: #3662
Merge branch 'feature-image-unregister' into develop
Implement livetest for image unregister
Refs: #3728
Update Changelog for image unregister feature
Expose image-unregister to cli and unittest it
Implement image unregister in kamaki.clients
Merge branch 'feature-shell-arguments' into develop
Update Changelog
Allow runtime args when invoking interactive shell
Refs: #3716
Behavior After This:kamaki -XXX -YY ... parses -XXX -YYIf not recognized: syntax errorIf recognized, group them into shell args (e.g. -h) and command args (e.g. -d)Whenever a command is run in this shell instance, apply the command args...
Merge branch 'feature-cli-command-errors' into develop
Raise a descriptive error for misconfigured cmds
Refs: #3663
A command group that is declared in the config file is not supportedby valid command specification code or the specification code is notpointed at by <command>.cli configure variable
Log initial call arguments in first log
Merge branch 'feature-logging' into develop
Move logger module to kamaki.cli
Make kamaki.clients unware of kamaki.logger
use logging for getting the loggers
Stop shell from destroying config instance
This caused warnings about preset variables