Implement floating_ip_pools_get @compute/cyclades
Refs: #3862
Adjust astakos authenticate to snf-0.14 url sheme
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
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
Wait threads to finish in pithos append_object
Implement an optional json output 4 outputing cmds
Refs: #3732
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
Do not recalculate #blocks in upload_from_string
Refs: #3608
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...
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...
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
Adjust pithos livetest to use container_info_cache
Refs: #3707
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...
Update livetest for upload return modification
Refs: #3656
Modify upload methods to return created obj info
Methods affected: upload_object upload_object_unchunked upload_object_by_manifestation
unittests modified accordingly
Implement livetest for image unregister
Refs: #3728
Expose image-unregister to cli and unittest it
Implement image unregister in kamaki.clients
Make kamaki.clients unware of kamaki.logger
use logging for getting the loggers
Allow activation/deactivation of specific loggers
refs: #3715Logger settings are not aborted and will be restored at deactivation
Also, remove all logger creation functionality from kamaki.clientsA file or stream logger should be created an the kamaki.clients caller side...
Merge branch 'feature-logging' into develop
Remove log redaduncy when logging in a file
Globalize logger usage
Unsolved bug: redudant info in logfile
Wipe logger add_file_logger
Fix typo in _create_or_get_missing_hashes call
Honour if_(none_)match even if all blocks are up
Refs: bug #3708
Expand logger to support stream logging, simplify
Adjust expected values in fanctional client tests
Connect request-response threads in logs
The connection between kamaki request attempt and httplib response waslogged, but the connection between httplib response and kamaki responsemanagment was not logged.
Update docs to use the term Synnefo where needed
In some cases, the term 'GRNET development team' was replaced with 'Synnefo' or'Synnefo development team'
Add some parameters to storage.list_object
:param limit: (int) The amount of results requested
:param marker: (str) Return containers with name lexicographically after marker
:param prefix: (str) Return objects starting with prefix
:param format: (str) reply format can be json or xml (default:json)...
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
Fix astakos client functional test
Use 'user.token' instead of 'astakos.token'
Remove quotaholder from kamaki
This affects the cli:- remove the quotaholder commands set- remove the commissioning system (automatic command retrieval)
This affevts the clients:- remove the quotaholder client- remove the clients commissioning system...
Rename store command group to file
Feature #3566
Rename command group astakos to user
The client is still called 'astakos', but the command group is now 'user'
Add if-etag-match to pithos client upload
Merge branch 'feature-store' into develop
Add option to fail upload if remote file exists
The if-none-match header option with '*' is used in that case.This is exposed as 'if_not_exist' in PithosClient.upload_object
Feature #3574
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
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
Stop create_server from crushing by a faulty image
If the image is missing the (os, users) metadata, the create_server methodused to crush anexpectingly
Add a NL to logs to make them more readable
Fix typo in using download progress bar
Minimize requeests whn dnlding same block
If a file has multiple same blocks, download one of them and copy it to localfile locations
fixbug 3555: blcks missing if same to other blcks
Create a livetest that catches bug #3555
A boring file is a file with at least two same blocksKamaki fails to download more than 1 same blocks, therefore the downloadedfile is corruptedThis test fixes the bug
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
Fix typos in logging mechanism
Move http response logging to ResponseManager
Move http request logging to RequestManager
Wip kamaki.clients.test.py
Unittest ResponseManager
Unittest kamaki.clients.RequestManager
Redesign http connection module
Merge everything to kamaki.clients
Remove multiple hierarchies of connection classes (== abandon support for alternative connection methods, e.g. for requests from pypi)
New connection classes are- RequestManager- ResponseManager...
Remove testing code
Remove invalid header values in image register
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...
Add a ClientError logger to kamaki.clients
Move logger operations to a seperate file/pkg
Disable token logging (synnefo bug #3480)
Add logging to file functionality (#3441)
Create get_logger, add_logger methods in clients
Apply a simple naming convention for unit tests
Naming convention:
Actual functionality:
In package kamaki.clients.pkg there is class C containing a method MTest it in a package kamaki.clients.pkg.test, with a class C + a method test_MCommand line run:...
Re-allow empty paths to clients.Client.request
Unittest full kamaki.clients.Client
Remove unused method set_default_headers
Unittest kamaki.clients.Client.set_param
Unittest kamaki.clients.Client.set_header
Unittest kamaki.clients.Client._raise_for_status
Unittest kamaki.clients.Client._watch_thread_limit
Initialize a kamaki.clients.Client unittest
Onluy instatiation is tested so far
Finetest kamaki.clients.SilentEvent
Unittest kamaki.clients ClientError
Merge kamaki.clients.connection.test with clients
Report total # of tests and failures in bulk tests
Complete clients.utils unittests
Setup unittests for clients.utils methods
Methods tested so far: _matches, filter_in, filter_out
Unittest PithosRest.object_delete and its over
Unittest PithosRest.obejct_post