Expose floatingip command group to CLI
Expose impemented floating IP methods
New commands:
floatingip list/create/delete/info/poolsserver ip attach/detach
Also, renamed the assoc/disassoc floating ip clients methods toattach/detach_floating_ip
Adjust unit/functional tests
Refs: #3964
Merge branch 'feature-adjust-docs' into develop
Remove links from simple listing
Add network examples
Add image registration examples
Complete the listing section
Add a Connection Retry to Client + ResponseManager
Usage:cl.XxxClient(...)cl.CONNECTION_RETRY_LIMIT = 5cl.<methods>
Remove forgoten debug message
Fix write recovery bug in kamaki.cli.config
write failed to recover config memory repr. after writing in disk
Refs: #4030
Create InvalidCloudNameError, raise it when needed
Make cloud prefix a global settings
Rename: scenarios-->examples, add first content
- configuration section, with clouds- Simple listing- Pithos advanced listing
Add seperator in item listing (unnamed)
Adjust list_sever_nics to recent server changes
Fix deprecated terms in documentation
Fix typo when getting metadata without key
Recover old token in case of authentication error
Prepare special local paths (like .) for pithos
Merge branch 'feature-floating-ips' into develop
Conflicts: Changelog
Merge branch 'feature-expose-astakosclient' into develop
Conflicts: kamaki/cli/commands/snf-astakos.py
Fix all minor typos and modifications in tests
Merge branch 'feature-cloud-renamings' into develop
Do not suggest ansicolors if colors == off
Refs: #3978
Fix typos in error messages and helps
Refs: #3979
Fix log level for expected command failures
Updagrade error message for multiple clouds
Use the default_cloud global option
Refs: #3934 #3979
Fix typo in method docs
Adjust livetests to cloud renamings
Change term "remote" to "cloud" when proper
Refs: #3934
Adjust docs to cover multiple clouds functionality
This commit server as a backup mostly, since the adjustments are not yetapplied to docs/commands and all docs/developers kamaki guides.
Update some of the documentation
this commit serves back-up purposes mostly
Document the Upgrade notes for v0.9
Fix PEP8 warning
Adjust all livetests to use cached astakos client
Adjust cached astakos client unit tests
Create mising func. tests 4 cached astakos client
Adjust astakos functional tests to novel features
Make sure all url-params are url-encoded
Refs: #3956
Merge branch 'feature-endpoints' into develop
Adjust help messages to configuration changes
Refs:#3934
Fix a PEP8 issue
Use os-specific path seperators in up/down-load -R
Refs: #3954
Adjust all command specs to multicloud/singleauth
Make sure user and history commands work fine
Adjust config cli commands to serve remotes
config set remote.smth.option value inserts option=value in remote smthconfig get remote.smth lists the contents (key=val) of remote smthconfig delete remote.smth.option deletes this specific option from the remote smth...
Decide a cloud term, use it if no cloud.url
Implement remotes support in Config and cli init
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 backImplement rescue_old_file to convert config files to v3.0...
Plan Config changes (rescue_old_file, translates)
rescue_old_file: mines info from old config file to use them in new filetranslates: remote "smth" --> 'remote': {'smth': ... global.{url, token} --> remote.default.{url, token} <command>.cli --> global.command_cli...
Implement Config.guess_version for config files
Implement the Config.guess_version method
A. Hardcode the new kamaki config file
Breaks compatibility, implements a remotes-based config file
Backwards compatibility for configuraiton file
Compatible with kamaki config files v2
user.url, file.url, compute.url and image.urlare now valid and of higher priority toastakos.url, pithos.url, cyclades.url, plankton.urlwhich are also valid
All these are ignored iff [global].auth_url is given
Fix typos in default and expected values
Handle url proccessing even if url is unicode
Also, fix typos and default values for service configurations
Fix typo in astakos client: version_id-->versionId
Adjust cached auth info reading to recent changes
Fix typos in user command flow
Apply servce.url options to cross-sercice calls
Refs: #3874
Let cross-service initializations to use explicit service endpoint urls ifthere 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
Use explicitely set services urls if no auth_url
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 attemptsto read the <service>.url option from the configuration file....
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:...
Get endpoint urls for all CLI operations
Use kamaki.clients.astakos.AstakosClient as a cached astakos client to getuser information and, most importantly, endpoints. Allow users to authenticatemultiple tokens on the same session. In every session there must be at most...
Create config file version 3
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....
Enrich/rename astakos client calls with endpoints
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....
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,...
Implement floating_ip(s)post/get/delete rest calls
Implement floating_ip_pools_get @compute/cyclades
Remove undesired logging in non-verbose mode
Differenciate cli logger from astakosclient logger
Wip snf-astakos, try-import it by default
Merge branch 'feature-osv2-compatibility' into develop
Expose some basix astakosclient methods to cli
Methods exposed:
get_user_info as authenticateget_uuid[s] as uuidget_username[s] as usernameget_quotas as quotasservices_get_uuid[s]/username[s]/quotas as service uuid/username/quotas
Adjust astakos authenticate to snf-0.14 url sheme
Setup a snf-astakos command set
Update config file version tag
Fix typo in kamak.cli.logger import
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
Add metadata management to image register
- validate image metadata format- read metadata from file- merge file-loaded metadata with runtimes- store metadata file on pithos, check existance, overwrite with f raise helpful error messages when there fail...
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
Fix typo in pithos upload output
Wait threads to finish in pithos append_object
Implement an optional json output 4 outputing cmds
Refs: #3732
Add json/optional output to astakos cmds
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
Update and enrich error messages in image register
Parse ivalid property file and guide users to correct itGuide users to pass valid container:path parameters
Refs:#3769
Print full and nice response in image register
Do not recalculate #blocks in upload_from_string
Refs: #3608
Make sure registered properties are unique
Refs: #3769
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...