Extra columns are added to the kingbird
database to identify the job.
Hence there is no need of "name" argument in
"Sync template" feature.
Added test-cases for the same.
Change-Id: I6a412e550c3cd1ded7088af484dd92f6f2f79e39
At a single request more than one job is performing using
'Sync template' feature.
To identify all the jobs performed at a single request,
introduced 'name' argument in sync template feature.
'Sync list and Sync show' features formats are modified
for better understanding.
Added test-cases for the same.
Depends-On: <I5fb0e4619b20201585e5398013ba25219e24dc80>
Change-Id: I95c7662958d2e59f867d2f1b6e912a4fe9036550
Existing feature "sync create" is to sync single resource-type
to single target region i.e one resource off one resource-type
to one region.
Issue with "sync create":
Kingbird cannot sync more than one resource-type to multiple
target regions in a single request.
This commit from kingbird client is to enhance the existing
"sync create" job.
Working of sync template feature:
User have to provide a input file with .yaml or .yml or .json extension.
This input file should consists of
->resource-type
->resources
->source_region
->target_region.
Added testcases for the same.
Change-Id: I5fb0e4619b20201585e5398013ba25219e24dc80
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.
This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.
Change-Id: I2099c8dfe28986af4dcd0fe9f8772f7c204d5758
Currently, as per this commit https://review.openstack.org/#/c/500506/ plugin for
openstack cli should be available but it is not because there are
no entry points in setup.cfg in kb-client without
which binding between openstack client and openstack plugin
written in kb-client wont work.
Change-Id: I400ce4765e949536819796dad0cdbc85d3a440a5
Closes-Bug:#1723041
Currently, in kingbirdclient we are using insecure parameter for
token-based authentication but insecure parameter shouldnot be
used in token-based authentication.
Closes-Bug: #1718211
Change-Id: I322b26a3c8b2205d65c5788914a604f8dc667b96
Currently we donot have session parameter in kingbirdclient/api/v1/client.py
but we have it in kingbirdclient/api/client.py which is the root for kb-client.
This commit also enables usage of only session object to communicate
with Kingbird client.
Change-Id: Iff184840b0865d2b80aa0ba5f9deb4ad97cc24ba
Currently in kingbird-client there is NO support for
PROJECT_DOMAIN_NAME/USER_DOMAIN_NAME OR PROJECT_DOMAIN_ID/USER_DOMAIN_ID
but in the latest release of OpenStack,
there are options for the above-mentioned environment variables.
Added tests for the same and made README.rst better.
Closes-Bug: #1716364
Change-Id: I09625acafc0e3d43fd6008d3de930e98195d14f3
Added openstack plugin for Kingbird client that supports execution
of Kingbird commands with openstack client.
Change-Id: Ia164b4f5c9dbe388fe3d1cada38c3bc0af32c1e6
Currently we are using certain Keystone api's
which are deprecated in pike release
and the communication to keystone has to be occur
via session plugins.
Closes-Bug: #1712354
Change-Id: I17995b912011795e6d4445788951126552870098
Currently, python-kingbirdclient doesnt have the option
to list the active jobs.This change introduces a new option
to list the active jobs.
Added test-cases for the same.
Closes-Bug: #1694436
Change-Id: I8938cfa60558c1008614ae8a8472486c1896df34
1. What is the problem?
The older hacking library has a cap on pbr <2.0, which is causing
issues with the recent 2.0.0 release of pbr
2. What is the solution for the problem?
Hacking isn't kept in sync via the usual proposal bot updates so
update it manually to fix the pep8 gate.
Change-Id: If7969daaefef51f2ba906f5d7f79276cc2270bba
Signed-off-by: joehuang <joehuang@huawei.com>
"sync create" Sync Resources from One region to other.
"sync list" List Sync Jobs.
"sync show" List the details of a Sync Job.
"sync delete" Delete Sync Job(s) details from the database.
Add test-cases for the same.
Python-kingbirdclient is now a part of openstack/requirements.
https://review.openstack.org/#/c/428793/.
So updated tox.ini to pick requirements from openstack/requirements
directly rather than using install _ commands.
Also added tox_install.sh script
Closes-Bug: #1666453
Change-Id: I587070a7175ea0651def5630c2d9890a175feb0a
Python-kingbirdclient uses python requests and
it cannot send body along with the curl-request.
So removed the option of sending resources(body).
Made Kingbird-client compatible with Keystone_v2 and
Keystone_v3.
Change-Id: I9d7c0055d747245f76d1cbd1213ff74cb11d1faf
"quota detail" List the Detail limit for a tenant.
"quota sync" On Demand quota sync for a tenant.
"quota update" Update the quotas for a tenant.
"quota delete" Delete quota for a tenant.
Add test-cases for the same.
Change-Id: Icc018b7bb2e8f68c503c27184fa6390632d81ac6
"quota-class show" List the quotas for a quota class.
"quota-class update" Update quotas for a quota class.
"quota-class delete" Delete quotas for a quota-class.
Add test-cases for the same.
Depends-on: I7c3f809afcf65077701e320fc97135a3c21c7786
Change-Id: I182ef0d84d5fbcca2b443b14d8f4bd6d42735659
kingbird quota defaults list the default global quotas for a tenant.
Add test-case for the same.
Added profile related things.
Change-Id: I1a6b04fdf3ef7f7fa9aa61c8da9311c7e4c4a5f2
Created initial directory structure for KB commands to work.
Modify setup.cfg to add entry point.
Refactored shell.py to display help, bash-completion and
exceptions for invalid credentials.
Add testcases for the same.
Change-Id: I8d31aef2722c73572074754f7a608b720ce2f678
Use xx = [] for the parameter initial value, this parameter will
only be initialized at the first call, this is should be avoided.
Better choice is to set the initial value to None, then the
initialization time use xx= xx or None
more information:http://effbot.org/zone/default-values.htm
Change-Id: I9f61be1ba38901959d5c9201d41e2ce5911505e5
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.
Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.
Change-Id: I930f449689c18e0722f6f41d4dfb9e2d3027041c
- Added global CLI arguments
- Added translation
- Added exceptions
- Added basic client skeleton
- Added OpenStack common modules
- Added Kingbird http client
This commit adds common routines that will be used by the client.
The modules are generic and are used by other openstack clients
Change-Id: I54737e2a30f94fe935794f619bfbac5889b0a1b2
Remove old and unused constraints environments from tox.ini. Those
have never been used. Use standard environments as default list.
Enable use of constraints for all tox based jobs.
For more information about constraints see:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html
Change-Id: I3a39fb657d2f618b5686e7794df57316b0aa640b