Add enumeration as optional for all list cmds
Refs: #3739
Cache container info request per upload session
Refs: #3735
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)
Refs: #3730
Implement purging a non-empty container
kamaki file purge <container> -F
will automatically empty a container before purging it
Refs: #3662
Expose image-unregister to cli and unittest it
Stop shell from destroying config instance
This caused warnings about preset variables
Globalize logger usage
Unsolved bug: redudant info in logfile
Make containerlimit set/get aware of 0==unlimited
containerlimit set -h will tell users to use 0 for unlimitedcontainerlimit get will print "unlimited" if received a 0 value
Alow uploading to container with limit 0
Container limit 0 means "unlimited"
Move addproperty from image to image compute
Fix typo with --config and --property args (#3658)
Fix mispeled import cyclades_cli --> cyclades
Make recursive upload non-default, rearange checks
Alloow recursive upload with RRearange pre-upload checks as shown bellow: check first if it is recursive & direcory- check if object exists or forced to overwrite- check container limit and used size...
Take into account container used bytes in upload
Before uploading, check if there is enough remaining space on containerremaning space = container limit - container used bytes
Prevent upload if uploads exceed container limit
Feature #3536
Implement a recursive upload
kamaki file upload <directory> <container>[:remote-dir]
where remote-dir either is a dir or does not exist
Add some client-side filters to image list
--owner=<uuid> : print only images with given owner
--name-prefix=
: print only images with name starting with <prefix> --name-suffix=<suffix> : print only images with name starting with <suffix> --name-like=<part> : print only images with name containing <part>...
Filter image listing results by owner
Introduce the --owner parameter to kamaki image list (was: image public)If given, only images of given owner will be pronted on console. This is aclient side filtering, as oposed to the other filters of the command.
Set a default network type when creating nets
Default type is MAX_FILTERED
Support #3514
Split file-quota semantics for account and contner
kamaki file quota --> only for accountkamaki file quota <container> --> kamaki file containerlimit get [container]
Support #3541
Rename file setquota to file containerlimit set
Also, do not allow user to set account quota
Apply uniform descriptions to all client commands
<GRNET name>/<OS name> API <actuall api> commands
e.g. Cyclades/Compute API server commandsor Pithos+/Storage API commands
Commands file names are named after the API they implement, not the command interface....
Update docs, rename kamaki.cli.commands/*
Documentation updates: reflect the changes in command groups astakos --> user, store --> file
File renaming: remove the _cli suffix from modules in kamaki.cli.commands
Feature #3566
Rename store command group to file
Rename command group astakos to user
The client is still called 'astakos', but the command group is now 'user'
Pametrize log file, make it globaly available
Kamaki logger module is now available to both cli and clients packagesUsers may set the log_file option in configuration file kamaki config set log_file ...
Support #3441
Return image details as headers, in image register
Feature #3512
Increase timeout in upload thread canceling
Make download canceling more responsive
This does not make download canceling faster, if anything, it makes it slowerbut probably more gracefull for end users. Instead of just waiting the threadsto finish, users now see messages that descibe the attempts made by kamaki to...
Make --public and --sharing to work in upload
Bug #3509
Fix typo in commands.errors (self-->this)
This typo caused undesired behavior when deleting a deleted network
Bug #3547
Allow users to set maximum thread limit
This is implemented as a configuration option in cliDevelopers may set it as kamaki.clients.Client.MAX_THREADS = <limit>
Adjust documentation acoordingly
Feature #3546
DISABLE config log options in interactive shell
to avoid kamaki failures due to logging problems
Allow config to switch some options on or off
- LOG_TOKEN: whether to log user token in http requests (default: off)- LOG_DATA: whether to log http body (send or secv - default: off)
config options: log_token=off, log_data=off
Remove invalid header values in image register
Cover image-compute command group in documentation
Create an image compute cmd group, make it work
- image compute group contains all Compute Image API commands, as oposed toPlankton API commands.
- definition of a kamaki cli command slightly changed: a command withsubcommands can have a class without being a command itself, as long as it has...
Ensure uniform runtime args in cli (feature #3456)
Merge branch 'feature-tests' into develop
Rename POOL_SIZE option to MAX_THREADS
Unittest poolsize option at clients.connection
Fix typo in list images help output
Merge branch 'develop' into feature-tests
Conflicts: kamaki/clients/connection/kamakicon.py
Support interaccount store operations (ftr. #3230)
Operations affected: copy and move
Seperate source client from destination client
Concerns store_copy operation and aims to clean up the code thatimplements the account-to-account copy
Allow Custom From-Account to pithos copy
Fix typo in cli.commands.astakos_cli.py
Was _main, changed to main
Merge branch 'develop' into feature-store
Allow non-ascii paramters on path2url
Replace calls of the form unicode(v) to the equivalent" '%s' % v
Uniform var names in store_copy/move
Adjust move to function like copy
Re-implement store-copy semantics (feature #3310)
Started some changes in pithos_cli copy
Not ready yet, just for buck up
Rename tests to livetest in kamaki.clients
Update documentation to reflect these changes
Make network-create --with-dhcp option a flag
Fix pep8 error
Fix bug in error reporting if service anavailable
Make store download more intuitive + debug
Use cases:- download <container> Illegal- download <container> --resume Download contests to .- download <container>:<directory> Illegal- download <container>:<directory> --recursive Download remote dir and contents to ....
Better error message when downld destin. exists
Fix pithos download_object typo range->range_str
Make DateArgument to return timestamp by default
Fix some more pep8 issues, more later
Fix pep8 compliance issues everywhere
Attempt to pep8-fix some source files
Adjust documentation, allow explicit account set
Use UUID when calling pithos client
In kamaki.clients.pithos context, the variable is still called accountOnly the callers change their behavior, as they should retrive theaccount by calling kamaki.clients.astakos.AstakosClient().term('uuid')Tests are also adjusted
Compact code and unittests for astakos client
Create a cached access api to Astakos >= 0.13
Merge branch 'develop' into feature-astakos
Conflicts: kamaki/cli/commands/astakos_cli.py kamaki/clients/tests.py
Let clients tests to use custom config files
Complete clients.cyclades unittests
Make astakos tests work with new test suite
Replace 'S if S else' with 'S or' in image_cli
Add new --[dst-]container info to documentation
download --resume can create new local files
Add : to all --container store-* commands
store-move to use --dst-container with : support
Add store-copy --dst-container with : support
Remove obsolete method check_range
Allow create/delete to operate on con:tainers
con:tainers are containers with : in their name
-R as resursive in store_download
Implement resursive download
Intuitive semantics to store-download
download to directory means multiple downloads with prefix
Total code reduction: ~25KiB of code
Fully adjust pithos_cli
Adjust up to store-download
Adjust up to store-overwrite
Adjust pithos_cli up to store_move
Fully adjust cyclades_cli
Adjust cyclades_cli up to create
Minor adjustments + apply to image_cli <=register
Apply changes to history_cli
Propagate changes to config_cli
Seperate error handling from main cli classes
So far tested in astakos only
Tide up error handling code in astakos
Format data size units, use it in quota commands
quota returns value in units (KiB, MiB, etc)new argument -b, --bytes to return value in bytessetquota can accept a unit string setquota 2.3GB
store-delete asks for permission
In cli.utils: new method ask_user prompts for permissionIn cli.commands.pithos_cli: store_delete/purge ask for permission they also feature a yes flag argument to avoid prompting
mage-public: remove params without values
Tide up _upload_missing_blocks code + progress chk
progress check in upload: don't let progress bar raise exceptions