History | View | Annotate | Download (17.7 kB)
Log astakosclient in kamaki style
Add some documentation for cluster management
Refs: #4429
Catch errors and notify user in a helpful manner
Move cluster handling in server create/delete
Log a request before commiting it
Remove token from http body (can be switched on)
Refs: #4300
Fix typos
Expand stream output to pithos print methods
Add output stream to astakos print methods
Restore backwards compatibility for image register
Refs: Bug #4276
New format:
/image register Name container:path/to/image
Old format:
/image register Name pithos://user-uuid/container/path/to/image
Now, the old format is also recognized. It is planed to be depricated in a...
Make pid logging optional, logs are now readable
Refs: #4242
Use multiformed ranges in kamaki pithos lib
Refs: #4059
Also, adjust corresponding unit and functional tests
Make cyclades functional test code pretier
Update the copyright dates everywhere
Add a Connection Retry to Client + ResponseManager
Usage:cl.XxxClient(...)cl.CONNECTION_RETRY_LIMIT = 5cl.<methods>
Make sure all url-params are url-encoded
Refs: #3956
A. Hardcode the new kamaki config file
Refs: #3934
Breaks compatibility, implements a remotes-based config file
Handle url proccessing even if url is unicode
Also, fix typos and default values for service configurations
Enrich/rename astakos client calls with endpoints
Refs: #3874
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....
Implement an optional json output 4 outputing cmds
Refs: #3732
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...
Remove log redaduncy when logging in a file
Globalize logger usage
Unsolved bug: redudant info in logfile
Wipe logger add_file_logger
Expand logger to support stream logging, simplify
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.
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
Add a NL to logs to make them more readable
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
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...
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
Re-allow empty paths to clients.Client.request
Unittest full kamaki.clients.Client
Remove unused method set_default_headers
Unittest kamaki.clients.Client._raise_for_status
Unittest kamaki.clients.Client._watch_thread_limit
Unittest kamaki.clients ClientError
Rename POOL_SIZE option to MAX_THREADS
Start creating a kamaki.clients unittest set
Tests are packaged as kamaki.clients.testAs an example, the astakos authenticate method test has been implemented
Merge branch 'develop' into feature-tests
Add / at the end of images path (plankton)
This bug was produced after changes in path4url, where a trailing / is nowalways removed
Fix url quoting with non-ascii (closes bug #3256)
Conflicts: kamaki/clients/connection/__init__.py kamaki/clients/connection/kamakicon.py
Allow non-ascii paramters on path2url
Replace calls of the form unicode(v) to the equivalent" '%s' % v
Implement a basic test_request for clients.Client
Rename HTTPConnection/Response classes
kamaki.clients.connection.HTTPConnection/Response abstract class are renamedto kamaki.clients.connection.KamakiConnection/Response to avoid confusion w.httplib.HTTPConnection/Response classes
URL-encode requests
Fix some more pep8 issues, more later
Fix pep8 compliance issues everywhere
Attempt to pep8-fix some source files
pre-connection debug info
Add include option to control conn-content print
More retries, dynamic upload thread limit
Even the slightest progress causes upload to retryif 502 client error is received, # of threads are limited to current thread
Handle thread failures in download
If some threads fail for some reason, download re-tries 2 more times,provided there is some progress
Handle connection errors, allow special handling
Showcase: server_info catche/manage clienterror that wasa connection error
Introduce warning logger
Fix unwanted error-detail inheritance bug
Trace errors in cli.commands mechanism-not prpgtd
Track and log errors at connection and clients mod
Unittest parallel server creation
Thread limit can be set by user
Gradual thread inc/decrease in up/download
Thread inc/decrease is now generic for all clients that might need itwith the method _watch_thread_limit
Algorithm: set a small thread limit and when reached wait for active threads tofinish. Measure avg time. If avg time decreases, increase thread limit...
Extract json-encoded error info in clients
A little bit more error handling
Handle json-formated server error responses
Propagate error handling corrections up to CLIs
Restore verbose and debug functionality in clients
Modernize clients and clients.connection error hdl
Error handling reform start from connection
Fix unresolved httplib request url - path issue
minor unitest fixes
Make all source pep8 compliant
Propagate failed connection to server
Merge branch 'master' of https://code.grnet.gr/git/kamaki
Conflicts: kamaki/__init__.py kamaki/cli.py kamaki/clients/__init__.py kamaki/clients/astakos.py kamaki/clients/compute.py kamaki/clients/cyclades.py kamaki/clients/image.py kamaki/clients/pithos.py...
unittest image set/list_members
unittest image register (basic functionality)
Astakos: minor config bug, introduce unittesting
list/disconnect nics by network at clients lib
Clean up forgoten HTTPRequest imports
Remove relative imports from all pkgs, fix astakos
astakos imports an anused (and soon deprecated) module
Handle connection.close in repeated requests
Voodo-fix mysterious header-destroying request bug
Greenlet/thread safe header/param requests
Requests can now distinguish between "global" headers/paramsand thread-specific.
Minor bugfixes
Implement kamakicon, use it
kamakicon: an httplib/ObjectPool based connection class
Use connection pool after redesigning http connect
HTTPRequestsXxx objects now use connection poolingAtually, connections are not pooled, but responses are.
Implementation of connection pooling with httplib not ready yet
Pooling tested in uploads
Handle requests exceptions
Reset headers and params at every request
Minor bigfixes in error handling
Major changes in client, fixed setup
Seperate Client to Client and HTTPConnectionThe later is put in a separate package kamaki.client.connectionIt manages headers, params, method, url and data of a connectionbut the actuall http connection is not implemented at this...