Statistics
| Branch: | Tag: | Revision:

root / kamaki / clients / __init__.py @ b6afe2ec

History | View | Annotate | Download (20.3 kB)

# Date Author Comment
f0bddbda 01/29/2014 06:16 pm Stavros Sachtouris

Fix problems with unicode HTTP headers

0d3785a1 01/27/2014 01:07 pm Stavros Sachtouris

All URL-space params are now URL-encoded

Refs: #4986

05ecf3a3 01/09/2014 04:15 pm Stavros Sachtouris

Minor typo

61d579fb 12/11/2013 05:39 pm Stavros Sachtouris

Add self.poolsize in kamaki.clients.Client

a5b748c2 12/10/2013 03:36 pm Stavros Sachtouris

Fix Pithos calls unicode bug

a6a44506 11/29/2013 05:49 pm Stavros Sachtouris

Implement the "wait_for" and "wait_while" methods

Refs: #4624

6f2b87c1 11/28/2013 05:59 pm Stavros Sachtouris

Implement network wait

Refs: #4563

ec5d658f 11/19/2013 06:18 pm Stavros Sachtouris

Move thread control to threaded commands

Refs: #4616, #4617

Remove max_theads from config, move control to threaded commands as --threads
Set default MAX_THREADS to 1

85115c12 10/31/2013 02:29 pm Stavros Sachtouris

Log astakosclient in kamaki style

40ddc207 10/04/2013 05:28 pm Stavros Sachtouris

Add some documentation for cluster management

Refs: #4429

c2e8d493 10/04/2013 12:42 pm Stavros Sachtouris

Catch errors and notify user in a helpful manner

Refs: #4429

81c60832 10/03/2013 06:46 pm Stavros Sachtouris

Move cluster handling in server create/delete

Refs: #4429

fc79be92 10/01/2013 06:59 pm Stavros Sachtouris

Log a request before commiting it

7f85a914 09/27/2013 05:21 pm Stavros Sachtouris

Remove token from http body (can be switched on)

Refs: #4300

40b1ed91 09/10/2013 01:20 pm Stavros Sachtouris

Fix typos

25f0c0cf 09/09/2013 06:29 pm Stavros Sachtouris

Expand stream output to pithos print methods

fbb253e8 09/09/2013 06:18 pm Stavros Sachtouris

Add output stream to astakos print methods

38db356b 09/09/2013 03:15 pm Stavros Sachtouris

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...

64a3c0de 08/29/2013 01:24 pm Stavros Sachtouris

Make pid logging optional, logs are now readable

Refs: #4242

776b275c 08/05/2013 06:45 pm Stavros Sachtouris

Use multiformed ranges in kamaki pithos lib

Refs: #4059

Also, adjust corresponding unit and functional tests

b773795c 07/30/2013 12:51 pm Stavros Sachtouris

Make cyclades functional test code pretier

e3f01d64 06/26/2013 12:28 pm Stavros Sachtouris

Update the copyright dates everywhere

ec928235 06/18/2013 01:00 pm Stavros Sachtouris

Add a Connection Retry to Client + ResponseManager

Usage:
cl.XxxClient(...)
cl.CONNECTION_RETRY_LIMIT = 5
cl.<methods>

82903313 06/07/2013 04:44 pm Stavros Sachtouris

Make sure all url-params are url-encoded

Refs: #3956

201baa17 06/04/2013 02:03 pm Stavros Sachtouris

A. Hardcode the new kamaki config file

Refs: #3934

Breaks compatibility, implements a remotes-based config file

819311d3 06/03/2013 05:19 pm Stavros Sachtouris

Handle url proccessing even if url is unicode

Also, fix typos and default values for service configurations

528550d9 05/30/2013 04:35 pm Stavros Sachtouris

Enrich/rename astakos client calls with endpoints

Refs: #3874

Kamaki.clients.astakos.AstakosClient is now a high-level client lib that
offers access to token-authenticated astakos-aquired cached information.
Users who need an astakos client should use the snf-astakosclient instead....

545c6c29 05/22/2013 05:26 pm Stavros Sachtouris

Implement an optional json output 4 outputing cmds

Refs: #3732

c4d51ec9 05/10/2013 07:16 pm Stavros Sachtouris

Make kamaki.clients unware of kamaki.logger

use logging for getting the loggers

9dc724e5 05/10/2013 05:38 pm Stavros Sachtouris

Allow activation/deactivation of specific loggers

refs: #3715
Logger settings are not aborted and will be restored at deactivation

Also, remove all logger creation functionality from kamaki.clients
A file or stream logger should be created an the kamaki.clients caller side...

c4563114 05/10/2013 01:45 pm Stavros Sachtouris

Remove log redaduncy when logging in a file

9986e569 05/09/2013 07:06 pm Stavros Sachtouris

Globalize logger usage

Unsolved bug: redudant info in logfile

a5077876 05/09/2013 05:49 pm Stavros Sachtouris

Wipe logger add_file_logger

e9db8806 05/09/2013 04:45 pm Stavros Sachtouris

Expand logger to support stream logging, simplify

005d3f25 04/19/2013 01:21 pm Stavros Sachtouris

Connect request-response threads in logs

The connection between kamaki request attempt and httplib response was
logged, but the connection between httplib response and kamaki response
managment was not logged.

f47417e7 04/12/2013 01:14 pm Stavros Sachtouris

Pametrize log file, make it globaly available

Kamaki logger module is now available to both cli and clients packages
Users may set the log_file option in configuration file
kamaki config set log_file ...

Support #3441

a863029c 04/09/2013 12:40 pm Stavros Sachtouris

Add a NL to logs to make them more readable

5fdccdec 04/05/2013 04:24 pm Stavros Sachtouris

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

34b88989 04/05/2013 02:54 pm Stavros Sachtouris

Fix typos in logging mechanism

008a5db5 04/05/2013 12:26 pm Stavros Sachtouris

Move http response logging to ResponseManager

21871fb2 04/05/2013 12:15 pm Stavros Sachtouris

Move http request logging to RequestManager

f8eea8ec 04/04/2013 07:12 pm Stavros Sachtouris

Unittest ResponseManager

7fa5c263 04/04/2013 05:57 pm Stavros Sachtouris

Unittest kamaki.clients.RequestManager

c2b5da2f 04/04/2013 04:37 pm Stavros Sachtouris

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...

e8af27f4 03/26/2013 12:40 pm Stavros Sachtouris

Add a ClientError logger to kamaki.clients

42115b51 03/26/2013 12:23 pm Stavros Sachtouris

Move logger operations to a seperate file/pkg

2406db97 03/22/2013 07:06 pm Stavros Sachtouris

Disable token logging (synnefo bug #3480)

f09da8c8 03/22/2013 06:55 pm Stavros Sachtouris

Add logging to file functionality (#3441)

61ca0ecd 03/22/2013 04:44 pm Stavros Sachtouris

Create get_logger, add_logger methods in clients

7cac95a7 03/21/2013 06:37 pm Stavros Sachtouris

Re-allow empty paths to clients.Client.request

6a6175c0 03/21/2013 05:48 pm Stavros Sachtouris

Unittest full kamaki.clients.Client

2e247767 03/21/2013 03:24 pm Stavros Sachtouris

Remove unused method set_default_headers

5dde4c83 03/21/2013 02:04 pm Stavros Sachtouris

Unittest kamaki.clients.Client._raise_for_status

9c6c3d69 03/20/2013 06:49 pm Stavros Sachtouris

Unittest kamaki.clients.Client._watch_thread_limit

f4de4c91 03/20/2013 03:58 pm Stavros Sachtouris

Unittest kamaki.clients ClientError

16b0afe6 03/11/2013 03:56 pm Stavros Sachtouris

Rename POOL_SIZE option to MAX_THREADS

c1004a00 02/27/2013 06:06 pm Stavros Sachtouris

Start creating a kamaki.clients unittest set

Tests are packaged as kamaki.clients.test
As an example, the astakos authenticate method test has been implemented

1d389648 02/27/2013 03:43 pm Stavros Sachtouris

Merge branch 'develop' into feature-tests

dd7461ac 02/27/2013 03:13 pm Stavros Sachtouris

Add / at the end of images path (plankton)

This bug was produced after changes in path4url, where a trailing / is now
always removed

4de960c7 02/26/2013 03:22 pm Stavros Sachtouris

Fix url quoting with non-ascii (closes bug #3256)

622a12fe 02/26/2013 12:24 pm Stavros Sachtouris

Merge branch 'develop' into feature-tests

Conflicts:
kamaki/clients/connection/__init__.py
kamaki/clients/connection/kamakicon.py

a517ff50 02/26/2013 12:19 pm Stavros Sachtouris

Allow non-ascii paramters on path2url

Replace calls of the form unicode(v) to the equivalent" '%s' % v

a037fd61 02/22/2013 02:00 pm Stavros Sachtouris

Implement a basic test_request for clients.Client

b2c5b650 02/18/2013 11:49 am Stavros Sachtouris

Rename HTTPConnection/Response classes

kamaki.clients.connection.HTTPConnection/Response abstract class are renamed
to kamaki.clients.connection.KamakiConnection/Response to avoid confusion w.
httplib.HTTPConnection/Response classes

fce31e83 02/12/2013 03:41 pm Stavros Sachtouris

URL-encode requests

2005b18e 02/11/2013 05:42 pm Stavros Sachtouris

Fix some more pep8 issues, more later

24ff0a35 02/11/2013 05:19 pm Stavros Sachtouris

Fix pep8 compliance issues everywhere

de73876b 02/08/2013 07:25 pm Stavros Sachtouris

Attempt to pep8-fix some source files

a40e152f 01/17/2013 02:51 pm Stavros Sachtouris

pre-connection debug info

1a3c18fd 01/17/2013 01:32 pm Stavros Sachtouris

Add include option to control conn-content print

16c895db 01/14/2013 04:22 pm Stavros Sachtouris

More retries, dynamic upload thread limit

Even the slightest progress causes upload to retry
if 502 client error is received, # of threads are limited to current thread

7644c38e 01/14/2013 03:39 pm Stavros Sachtouris

Handle thread failures in download

If some threads fail for some reason, download re-tries 2 more times,
provided there is some progress

67469d65 01/04/2013 04:30 pm Stavros Sachtouris

Handle connection errors, allow special handling

Showcase: server_info catche/manage clienterror that was
a connection error

db8d1766 12/17/2012 06:44 pm Stavros Sachtouris

Introduce warning logger

4f989909 12/10/2012 04:14 pm Stavros Sachtouris

Fix unwanted error-detail inheritance bug

6069b53b 12/07/2012 04:05 pm Stavros Sachtouris

Trace errors in cli.commands mechanism-not prpgtd

1f417830 12/07/2012 02:49 pm Stavros Sachtouris

Track and log errors at connection and clients mod

2b74ab4a 11/19/2012 06:23 pm Stavros Sachtouris

Unittest parallel server creation

cccff590 11/16/2012 06:17 pm Stavros Sachtouris

Thread limit can be set by user

cad39033 11/16/2012 05:31 pm Stavros Sachtouris

Gradual thread inc/decrease in up/download

Thread inc/decrease is now generic for all clients that might need it
with the method _watch_thread_limit

Algorithm: set a small thread limit and when reached wait for active threads to
finish. Measure avg time. If avg time decreases, increase thread limit...

062b1d0a 11/09/2012 01:44 pm Stavros Sachtouris

Extract json-encoded error info in clients

7966ffb8 11/06/2012 07:58 pm Stavros Sachtouris

A little bit more error handling

de4f08ef 11/06/2012 07:44 pm Stavros Sachtouris

Handle json-formated server error responses

0238c167 11/06/2012 07:08 pm Stavros Sachtouris

Propagate error handling corrections up to CLIs

bcb51856 11/06/2012 04:49 pm Stavros Sachtouris

Restore verbose and debug functionality in clients

7e5415a4 11/06/2012 04:34 pm Stavros Sachtouris

Modernize clients and clients.connection error hdl

d5eeabc0 11/05/2012 07:38 pm Stavros Sachtouris

Error handling reform start from connection

7d91734c 11/05/2012 07:05 pm Stavros Sachtouris

Fix unresolved httplib request url - path issue

minor unitest fixes

3dabe5d2 11/02/2012 01:16 pm Stavros Sachtouris

Make all source pep8 compliant

f8b42e99 10/31/2012 03:28 pm Stavros Sachtouris

Propagate failed connection to server

68da89ac 10/31/2012 11:50 am Stavros Sachtouris

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...

8ecbb5e8 10/30/2012 05:37 pm Stavros Sachtouris

unittest image set/list_members

adb1dde9 10/30/2012 04:23 pm Stavros Sachtouris

unittest image register (basic functionality)

b9d07587 10/30/2012 01:25 pm Stavros Sachtouris

Astakos: minor config bug, introduce unittesting

a34888b4 10/29/2012 01:31 pm Stavros Sachtouris

list/disconnect nics by network at clients lib

0fc54992 10/26/2012 04:35 pm Stavros Sachtouris

Clean up forgoten HTTPRequest imports

c270fe96 10/26/2012 04:18 pm Stavros Sachtouris

Remove relative imports from all pkgs, fix astakos

astakos imports an anused (and soon deprecated) module

6ce9fc72 10/25/2012 07:37 pm Stavros Sachtouris

Handle connection.close in repeated requests

1785ad41 09/18/2012 03:55 pm Stavros Sachtouris

Voodo-fix mysterious header-destroying request bug

9a7efb0d 09/18/2012 12:11 pm Stavros Sachtouris

Greenlet/thread safe header/param requests

Requests can now distinguish between "global" headers/params
and thread-specific.