Stavros Sachtouris [Tue, 18 Jun 2013 10:00:40 +0000 (13:00 +0300)]
Add a Connection Retry to Client + ResponseManager
Usage:
cl.XxxClient(...)
cl.CONNECTION_RETRY_LIMIT = 5
cl.<methods>
Stavros Sachtouris [Tue, 18 Jun 2013 08:58:33 +0000 (11:58 +0300)]
Remove forgoten debug message
Stavros Sachtouris [Tue, 18 Jun 2013 08:54:00 +0000 (11:54 +0300)]
Fix write recovery bug in kamaki.cli.config
write failed to recover config memory repr. after writing in disk
Refs: #4030
Stavros Sachtouris [Tue, 18 Jun 2013 07:58:12 +0000 (10:58 +0300)]
Merge branch 'feature-check-cloud-name' into develop
Stavros Sachtouris [Tue, 18 Jun 2013 07:57:13 +0000 (10:57 +0300)]
Create InvalidCloudNameError, raise it when needed
Refs: #4030
Stavros Sachtouris [Mon, 17 Jun 2013 15:37:04 +0000 (18:37 +0300)]
Make cloud prefix a global settings
Refs: #4030
Stavros Sachtouris [Mon, 17 Jun 2013 13:34:54 +0000 (16:34 +0300)]
Rename: scenarios-->examples, add first content
- configuration section, with clouds
- Simple listing
- Pithos advanced listing
Stavros Sachtouris [Mon, 17 Jun 2013 09:51:00 +0000 (12:51 +0300)]
Add a new section "Scenarios" in documentation
Stavros Sachtouris [Mon, 17 Jun 2013 09:15:33 +0000 (12:15 +0300)]
Merge branch 'develop' into feature-adjust-docs
Stavros Sachtouris [Mon, 17 Jun 2013 09:14:22 +0000 (12:14 +0300)]
Add seperator in item listing (unnamed)
Stavros Sachtouris [Mon, 17 Jun 2013 07:58:53 +0000 (10:58 +0300)]
Adjust list_sever_nics to recent server changes
Stavros Sachtouris [Fri, 14 Jun 2013 14:52:34 +0000 (17:52 +0300)]
Merge branch 'feature-adjust-docs' into develop
Stavros Sachtouris [Fri, 14 Jun 2013 14:51:40 +0000 (17:51 +0300)]
Fix deprecated terms in documentation
Stavros Sachtouris [Fri, 14 Jun 2013 11:06:24 +0000 (14:06 +0300)]
Merge branch 'develop' into feature-adjust-docs
Stavros Sachtouris [Fri, 14 Jun 2013 10:38:17 +0000 (13:38 +0300)]
Fix typo when getting metadata without key
Stavros Sachtouris [Fri, 14 Jun 2013 09:55:07 +0000 (12:55 +0300)]
Merge branch 'develop' into feature-adjust-docs
Stavros Sachtouris [Fri, 14 Jun 2013 09:53:32 +0000 (12:53 +0300)]
Recover old token in case of authentication error
Stavros Sachtouris [Fri, 14 Jun 2013 08:25:26 +0000 (11:25 +0300)]
Prepare special local paths (like .) for pithos
Stavros Sachtouris [Thu, 13 Jun 2013 15:46:04 +0000 (18:46 +0300)]
Merge branch 'feature-floating-ips' into develop
Conflicts:
Changelog
Stavros Sachtouris [Thu, 13 Jun 2013 15:44:29 +0000 (18:44 +0300)]
Merge branch 'feature-expose-astakosclient' into develop
Conflicts:
kamaki/cli/commands/snf-astakos.py
Stavros Sachtouris [Thu, 13 Jun 2013 15:38:51 +0000 (18:38 +0300)]
Merge branch 'feature-adjust-functional-tests' into develop
Stavros Sachtouris [Thu, 13 Jun 2013 15:37:40 +0000 (18:37 +0300)]
Fix all minor typos and modifications in tests
Stavros Sachtouris [Wed, 12 Jun 2013 14:55:27 +0000 (17:55 +0300)]
Merge branch 'develop' into feature-adjust-functional-tests
Stavros Sachtouris [Wed, 12 Jun 2013 14:42:42 +0000 (17:42 +0300)]
Merge branch 'feature-cloud-renamings' into develop
Stavros Sachtouris [Wed, 12 Jun 2013 14:40:17 +0000 (17:40 +0300)]
Merge branch 'feature-adjust-docs' into develop
Stavros Sachtouris [Wed, 12 Jun 2013 14:32:05 +0000 (17:32 +0300)]
Do not suggest ansicolors if colors == off
Refs: #3978
Stavros Sachtouris [Wed, 12 Jun 2013 14:17:32 +0000 (17:17 +0300)]
Fix typos in error messages and helps
Refs: #3979
Stavros Sachtouris [Wed, 12 Jun 2013 14:13:03 +0000 (17:13 +0300)]
Fix log level for expected command failures
Stavros Sachtouris [Wed, 12 Jun 2013 14:00:21 +0000 (17:00 +0300)]
Updagrade error message for multiple clouds
Refs: #3979
Stavros Sachtouris [Wed, 12 Jun 2013 13:55:20 +0000 (16:55 +0300)]
Use the default_cloud global option
Refs: #3934 #3979
Stavros Sachtouris [Wed, 12 Jun 2013 13:22:02 +0000 (16:22 +0300)]
Merge branch 'develop' into feature-cloud-renamings
Stavros Sachtouris [Wed, 12 Jun 2013 13:14:59 +0000 (16:14 +0300)]
Fix typo in method docs
Stavros Sachtouris [Wed, 12 Jun 2013 12:49:40 +0000 (15:49 +0300)]
Adjust livetests to cloud renamings
Stavros Sachtouris [Wed, 12 Jun 2013 12:34:54 +0000 (15:34 +0300)]
Merge branch 'develop' into feature-adjust-docs
Stavros Sachtouris [Wed, 12 Jun 2013 12:31:49 +0000 (15:31 +0300)]
Merge branch 'feature-cloud-renamings' into develop
Stavros Sachtouris [Wed, 12 Jun 2013 12:02:30 +0000 (15:02 +0300)]
Change term "remote" to "cloud" when proper
Refs: #3934
Stavros Sachtouris [Wed, 12 Jun 2013 08:43:26 +0000 (11:43 +0300)]
Merge branch 'feature-adjust-docs' into develop
Stavros Sachtouris [Tue, 11 Jun 2013 16:27:46 +0000 (19:27 +0300)]
Adjust docs to cover multiple clouds functionality
This commit server as a backup mostly, since the adjustments are not yet
applied to docs/commands and all docs/developers kamaki guides.
Stavros Sachtouris [Mon, 10 Jun 2013 15:11:00 +0000 (18:11 +0300)]
Update some of the documentation
this commit serves back-up purposes mostly
Stavros Sachtouris [Mon, 10 Jun 2013 13:06:14 +0000 (16:06 +0300)]
Reset Upgrade notes for the upcoming version 0.10
Stavros Sachtouris [Mon, 10 Jun 2013 13:04:52 +0000 (16:04 +0300)]
Merge branch 'feature-adjust-docs' into develop
Stavros Sachtouris [Mon, 10 Jun 2013 13:03:46 +0000 (16:03 +0300)]
Document the Upgrade notes for v0.9
Stavros Sachtouris [Mon, 10 Jun 2013 12:11:25 +0000 (15:11 +0300)]
Fix PEP8 warning
Stavros Sachtouris [Mon, 10 Jun 2013 11:59:33 +0000 (14:59 +0300)]
Merge branch 'feature-adjust-functional-tests' into develop
Stavros Sachtouris [Mon, 10 Jun 2013 11:57:31 +0000 (14:57 +0300)]
Adjust all livetests to use cached astakos client
Refs: #3964
Stavros Sachtouris [Mon, 10 Jun 2013 10:07:27 +0000 (13:07 +0300)]
Adjust cached astakos client unit tests
Refs: #3964
Stavros Sachtouris [Mon, 10 Jun 2013 09:53:59 +0000 (12:53 +0300)]
Create mising func. tests 4 cached astakos client
Refs: #3964
Stavros Sachtouris [Mon, 10 Jun 2013 08:54:09 +0000 (11:54 +0300)]
Adjust astakos functional tests to novel features
Refs: #3964
Stavros Sachtouris [Fri, 7 Jun 2013 13:39:04 +0000 (16:39 +0300)]
Make sure all url-params are url-encoded
Refs: #3956
Stavros Sachtouris [Fri, 7 Jun 2013 12:42:33 +0000 (15:42 +0300)]
Merge branch 'feature-endpoints' into develop
Stavros Sachtouris [Fri, 7 Jun 2013 12:41:00 +0000 (15:41 +0300)]
Adjust help messages to configuration changes
Refs:#3934
Stavros Sachtouris [Fri, 7 Jun 2013 11:25:00 +0000 (14:25 +0300)]
Merge branch 'feature-endpoints' into develop
Stavros Sachtouris [Fri, 7 Jun 2013 11:24:25 +0000 (14:24 +0300)]
Fix a PEP8 issue
Stavros Sachtouris [Fri, 7 Jun 2013 09:58:28 +0000 (12:58 +0300)]
Use os-specific path seperators in up/down-load -R
Refs: #3954
Stavros Sachtouris [Thu, 6 Jun 2013 14:29:43 +0000 (17:29 +0300)]
Adjust all command specs to multicloud/singleauth
Refs: #3934
Stavros Sachtouris [Thu, 6 Jun 2013 11:20:47 +0000 (14:20 +0300)]
Make sure user and history commands work fine
Refs: #3934
Stavros Sachtouris [Thu, 6 Jun 2013 10:32:19 +0000 (13:32 +0300)]
Adjust config cli commands to serve remotes
Refs: #3934
config set remote.smth.option value
inserts option=value in remote smth
config get remote.smth
lists the contents (key=val) of remote smth
config delete remote.smth.option
deletes this specific option from the remote smth
config delete remote.smth
completely erased the remote smth
Stavros Sachtouris [Wed, 5 Jun 2013 16:00:38 +0000 (19:00 +0300)]
Decide a cloud term, use it if no cloud.url
Refs: #3934
Stavros Sachtouris [Wed, 5 Jun 2013 12:43:50 +0000 (15:43 +0300)]
Implement remotes support in Config and cli init
Refs: #3934
In Config:
Simplify guess_version heuristics (check if the following exist:
global.url/token, remote-defaults)
Trasnlate files 'remote "name"' to 3-level dict and back
Implement rescue_old_file to convert config files to v3.0
In kamaki.cli:
Implement method _check_config_version
Stavros Sachtouris [Tue, 4 Jun 2013 15:44:49 +0000 (18:44 +0300)]
Plan Config changes (rescue_old_file, translates)
Refs: #3934
rescue_old_file: mines info from old config file to use them in new file
translates:
remote "smth" --> 'remote': {'smth': ...
global.{url, token} --> remote.default.{url, token}
<command>.cli --> global.command_cli
some commands are maped to other names, e.g. pithos --> file
<command>.url --> remote.defailt.<command>_url
Stavros Sachtouris [Tue, 4 Jun 2013 15:11:50 +0000 (18:11 +0300)]
Implement Config.guess_version for config files
Stavros Sachtouris [Tue, 4 Jun 2013 15:11:02 +0000 (18:11 +0300)]
Implement the Config.guess_version method
Stavros Sachtouris [Tue, 4 Jun 2013 11:03:34 +0000 (14:03 +0300)]
A. Hardcode the new kamaki config file
Refs: #3934
Breaks compatibility, implements a remotes-based config file
Stavros Sachtouris [Tue, 4 Jun 2013 09:30:32 +0000 (12:30 +0300)]
Backwards compatibility for configuraiton file
Compatible with kamaki config files v2
user.url, file.url, compute.url and image.url
are now valid and of higher priority to
astakos.url, pithos.url, cyclades.url, plankton.url
which are also valid
All these are ignored iff [global].auth_url is given
Stavros Sachtouris [Mon, 3 Jun 2013 16:51:48 +0000 (19:51 +0300)]
Merge branch 'feature-endpoints' into develop
Stavros Sachtouris [Mon, 3 Jun 2013 14:29:43 +0000 (17:29 +0300)]
Fix typos in default and expected values
Stavros Sachtouris [Mon, 3 Jun 2013 14:18:28 +0000 (17:18 +0300)]
Handle url proccessing even if url is unicode
Also, fix typos and default values for service configurations
Stavros Sachtouris [Mon, 3 Jun 2013 13:49:03 +0000 (16:49 +0300)]
Fix typo in astakos client: version_id-->versionId
Stavros Sachtouris [Mon, 3 Jun 2013 13:06:04 +0000 (16:06 +0300)]
Adjust cached auth info reading to recent changes
Stavros Sachtouris [Mon, 3 Jun 2013 12:15:45 +0000 (15:15 +0300)]
Merge branch 'feature-endpoints' into develop
Stavros Sachtouris [Mon, 3 Jun 2013 12:14:59 +0000 (15:14 +0300)]
Fix typos in user command flow
Stavros Sachtouris [Mon, 3 Jun 2013 11:58:51 +0000 (14:58 +0300)]
Update changelog to reflect recent changes
Stavros Sachtouris [Mon, 3 Jun 2013 11:57:53 +0000 (14:57 +0300)]
Merge branch 'feature-endpoints' into develop
Stavros Sachtouris [Mon, 3 Jun 2013 11:37:26 +0000 (14:37 +0300)]
Apply servce.url options to cross-sercice calls
Refs: #3874
Let cross-service initializations to use explicit service endpoint urls if
there is no single authentication url.
- In Image commands, there are calls that use astakos and pithos clients
- In pithos there are calls that use astakos client
Stavros Sachtouris [Mon, 3 Jun 2013 11:22:58 +0000 (14:22 +0300)]
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 attempts
to read the <service>.url option from the configuration file.
Service urls: astakos.url, pithos.url, cyclades.url, plankton.url
Stavros Sachtouris [Mon, 3 Jun 2013 10:01:41 +0000 (13:01 +0300)]
Update changelog
Stavros Sachtouris [Mon, 3 Jun 2013 09:58:34 +0000 (12:58 +0300)]
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:
kamaki --cloud=<remote>
Stavros Sachtouris [Fri, 31 May 2013 14:56:30 +0000 (17:56 +0300)]
Merge branch 'develop' into feature-endpoints
Stavros Sachtouris [Fri, 31 May 2013 14:55:41 +0000 (17:55 +0300)]
Fix pep8 warning
Stavros Sachtouris [Fri, 31 May 2013 14:37:37 +0000 (17:37 +0300)]
Get endpoint urls for all CLI operations
Refs: #3874
Use kamaki.clients.astakos.AstakosClient as a cached astakos client to get
user information and, most importantly, endpoints. Allow users to authenticate
multiple tokens on the same session. In every session there must be at most
one authentication per user/token.
Major change: top kamaki.cli.commands class now contains a base_auth field
with the cached authenticating client. All urls are drained from this field.
Stavros Sachtouris [Fri, 31 May 2013 10:29:18 +0000 (13:29 +0300)]
Create config file version 3
Refs: #3874
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.
General format:
[client]
type = <service>
version = <api version>
Example:
[cyclades]
type = compute
version = v2.0
Stavros Sachtouris [Fri, 31 May 2013 07:58:27 +0000 (10:58 +0300)]
Merge commit '
528550d929d5d30009016ae23b2a948d13fe8eb3' into develop
Conflicts:
Changelog
version
Stavros Sachtouris [Thu, 30 May 2013 13:35:02 +0000 (16:35 +0300)]
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.
Usage:
astakos_cache = AstakosClient(<astakos/base/url/with/identity/api>)
astakos_cache.authenticate(<token>)
user_info = astakos_cache.user_info()
compute_endpoints = astakos_cache.get_service_endpoints('compute', 'v2')
Major changes:
Modify ReST call from /im/authenticate to /tokens
New methods as AstakosClient instance cache accessors:
get_services
get_service_details
get_service_endpoints
Method renaiming for existing AstakosClient instance cache accessors:
info --> user_info
user --> list_users
Stavros Sachtouris [Wed, 29 May 2013 15:01:43 +0000 (18:01 +0300)]
Merge branch 'feature-osv2-compatibility' into release-0.9
Stavros Sachtouris [Wed, 29 May 2013 15:00:47 +0000 (18:00 +0300)]
Merge branch 'release-0.9' into feature-osv2-compatibility
Stavros Sachtouris [Wed, 29 May 2013 14:41:04 +0000 (17:41 +0300)]
Impleent floating ip methods @compute/cyclades
Refs: #3862
New methods introduced and unit-tested:
ComputeRestClient: floating_ip_pools_get, floating_ips_get/post/delete
CycladesRestClient: floating_ip_pools_get, floating_ips_get/post/delete
ComputeClient: get_floating_ip_pools, get_floating_ips,
alloc/get_delete_floating_ip
CycladesClient: get_floating_ip_pools, get_floating_ips,
alloc/get_delete_floating_ip, dis/assoc_floating_ip_to_server
Stavros Sachtouris [Wed, 29 May 2013 11:25:58 +0000 (14:25 +0300)]
Implement floating_ip(s)post/get/delete rest calls
Refs: #3862
Stavros Sachtouris [Wed, 29 May 2013 10:28:55 +0000 (13:28 +0300)]
Merge branch 'develop' into feature-floating-ips
Stavros Sachtouris [Wed, 29 May 2013 10:28:19 +0000 (13:28 +0300)]
Initialize version 0.10
Stavros Sachtouris [Wed, 29 May 2013 10:25:26 +0000 (13:25 +0300)]
Implement floating_ip_pools_get @compute/cyclades
Refs: #3862
Stavros Sachtouris [Wed, 29 May 2013 07:55:04 +0000 (10:55 +0300)]
Remove undesired logging in non-verbose mode
Stavros Sachtouris [Tue, 28 May 2013 15:03:06 +0000 (18:03 +0300)]
Differenciate cli logger from astakosclient logger
Stavros Sachtouris [Tue, 28 May 2013 14:50:58 +0000 (17:50 +0300)]
Wip snf-astakos, try-import it by default
Stavros Sachtouris [Tue, 28 May 2013 08:48:51 +0000 (11:48 +0300)]
Initialize kamaki v0.9rc1
Stavros Sachtouris [Tue, 28 May 2013 08:45:36 +0000 (11:45 +0300)]
Merge branch 'feature-expose-astakosclient' into develop
Stavros Sachtouris [Tue, 28 May 2013 08:45:25 +0000 (11:45 +0300)]
Merge branch 'feature-osv2-compatibility' into develop
Stavros Sachtouris [Mon, 27 May 2013 14:11:46 +0000 (17:11 +0300)]
Update Changelog for latest astakosclient cli
Stavros Sachtouris [Mon, 27 May 2013 14:07:40 +0000 (17:07 +0300)]
Expose some basix astakosclient methods to cli
Methods exposed:
get_user_info as authenticate
get_uuid[s] as uuid
get_username[s] as username
get_quotas as quotas
services_get_uuid[s]/username[s]/quotas as service uuid/username/quotas
Stavros Sachtouris [Mon, 27 May 2013 12:37:24 +0000 (15:37 +0300)]
Update log about astakos authenticate adjustment
Stavros Sachtouris [Mon, 27 May 2013 12:35:22 +0000 (15:35 +0300)]
Adjust astakos authenticate to snf-0.14 url sheme