Commit Graph

43 Commits

Author SHA1 Message Date
OpenDev Sysadmins 2e0509dee4 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:51:37 +00:00
mounikasreeram 7667932ab8 Revert Add name argument to Sync template feature.
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
2018-01-25 14:05:56 +05:30
Zuul 87687bc662 Merge "Add 'name' argument to 'Sync template' feature." 2017-12-29 08:58:00 +00:00
Zuul 491d800a15 Merge "Add Sync template feature to KB-client." 2017-12-28 10:01:01 +00:00
mounikasreeram e3e5ba85ab Add 'name' argument to 'Sync template' feature.
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
2017-12-12 12:18:40 +05:30
mounikasreeram 90d71c0749 Add Sync template feature to KB-client.
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
2017-12-08 10:19:34 +05:30
Andreas Jaeger 4582c2f310 Avoid tox_install.sh for constraints support
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
2017-12-02 17:01:36 +00:00
Goutham Pratapa 78c3169c4a Fix Openstack Plugin issues for KB-commands.
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
2017-10-12 18:06:08 +05:30
GouthamPratapa 2126e83d43 Remove "insecure" in token-based authentication.
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
2017-09-20 16:46:41 +05:30
GouthamPratapa 078b0eed0d Add session parameter in api/client.py
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
2017-09-18 14:15:13 +05:30
GouthamPratapa 3c6a972c86 Add support for PROJECT_DOMAIN_ID, USER_DOMAIN_ID.
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
2017-09-11 15:29:35 +05:30
Jyothi Saroja bf641ae368 Openstack plugin for Kingbird client
Added openstack plugin for Kingbird client that supports execution
of Kingbird commands with openstack client.

Change-Id: Ia164b4f5c9dbe388fe3d1cada38c3bc0af32c1e6
2017-09-04 16:25:17 +05:30
Goutham Pratapa 5a1dfd23f8 Usage of Keystone plugins in Kingbirdclient.
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
2017-08-22 19:24:01 +05:30
Goutham Pratapa 7fdb84c9c6 Add --active parameter to kingbird sync list.
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
2017-05-30 19:00:27 +05:30
OpenStack Proposal Bot d0e23eac23 Updated from global requirements
Change-Id: Ie5a7a94e05e770812357c7a4f0e3bb71fdfc0205
2017-03-13 19:41:14 +00:00
Jenkins 767895effe Merge "[Fix gate]Update to a newer hacking library" 2017-03-13 00:58:04 +00:00
joehuang 5d5dcf5ede [Fix gate]Update to a newer hacking library
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>
2017-03-09 06:48:33 +00:00
OpenStack Proposal Bot 2d71102e22 Updated from global requirements
Change-Id: I4250bf0e9b0a216e929361b9f80d87a42c2b45a0
2017-03-08 12:56:45 +00:00
Goutham Pratapa b31dedd552 Implement Resource_sync commands for KB
"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
2017-03-06 16:22:34 +00:00
Goutham Pratapa ec51bdb8da Remove "--resources" option for "quota delete".
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
2017-01-23 13:35:57 +05:30
Goutham Pratapa af6959c68f Implement quota-management commands for KB.
"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
2017-01-16 17:25:06 +05:30
Goutham Pratapa 3333a3c6be Implement quota-class management commands for KB.
"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
2017-01-05 10:44:20 +00:00
Goutham Pratapa f57144cfcb Implement quota show command for KB
kingbird quota show lists the global limits for a tenant.
Add test-case for the same

Change-Id: I7c3f809afcf65077701e320fc97135a3c21c7786
2017-01-02 10:00:13 +00:00
OpenStack Proposal Bot 7429c1e479 Updated from global requirements
Change-Id: I90e4068d8d99d35b240f41e2485381436215b398
2016-12-02 17:17:44 +00:00
Goutham Pratapa 450695bd30 Implement quota defaults command for KB
kingbird quota defaults list the default global quotas for a tenant.
Add test-case for the same.
Added profile related things.

Change-Id: I1a6b04fdf3ef7f7fa9aa61c8da9311c7e4c4a5f2
2016-11-28 17:38:41 +05:30
OpenStack Proposal Bot 516b739613 Updated from global requirements
Change-Id: Ic3a5968e4b7c7333fe7a61849c16e4c2baa1c33a
2016-11-22 14:01:06 +00:00
Goutham Pratapa fda1462d75 Add entry points for kb client
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
2016-11-22 13:41:47 +05:30
lilintan f6e549f9be Set the initial value to None
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
2016-11-02 12:02:21 +00:00
OpenStack Proposal Bot 61da81dbf9 Updated from global requirements
Change-Id: Ic89d17a854ffabe79021d69c0c849049f82d9278
2016-10-19 04:29:55 +00:00
Jenkins 23556b7a27 Merge "Enable release notes translation" 2016-10-07 13:22:15 +00:00
Andreas Jaeger 80ceff1a7d Enable release notes translation
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
2016-10-06 20:50:29 +02:00
OpenStack Proposal Bot 1ccca935ff Updated from global requirements
Change-Id: Iecda6c6f46a9d8fbac13d648a2aca507cd03424d
2016-10-02 20:34:43 +00:00
Dimitri Mazmanov 10a96948fc Add common layer for the client
- 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
2016-09-08 10:57:01 +02:00
Jenkins 6e612d499e Merge "Updated from global requirements" 2016-09-08 07:41:59 +00:00
OpenStack Proposal Bot 8ff7b987c4 Updated from global requirements
Change-Id: I4a9104117b9b345b6fa1ae1b6dadb6b7100bfe26
2016-09-01 18:50:15 +00:00
Andreas Jaeger 5d8caf6c7d Cleanup tox.ini, enable constraints
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
2016-08-26 16:49:55 +02:00
OpenStack Proposal Bot dd20c51161 Updated from global requirements
Change-Id: Ia287b7672991fcb401e46e400fbb5070f0a895d7
2016-07-29 02:34:40 +00:00
OpenStack Proposal Bot 954225e212 Updated from global requirements
Change-Id: I4d46cef310aaa477d3cb03fa9612a4b4c271307f
2016-07-13 17:21:57 +00:00
Jenkins fb63858348 Merge "Update client test configuration" 2016-07-13 14:10:36 +00:00
Dimitri Mazmanov f565660d52 Update client test configuration
- Added run_tests.sh script that triggers testr
- Changed tox configuration
- Changed setup configuration

Change-Id: Ia0f83050755f51f1df6ee0acc46f02da95fa5cbd
2016-07-12 14:10:38 +02:00
OpenStack Proposal Bot ffe44caef2 Updated from global requirements
Change-Id: I6c03317b593e8a780da6b2d010ba81ff7df43f9f
2016-07-09 19:26:45 +00:00
Dimitri Mazmanov 7bcd5892b3 Initial kingbirdclient commit
Generated a structure using cookiecutter. Configured the project.

Change-Id: If5829bb0563faf89fa0d765fcaeaa8884f897094
2016-07-07 14:09:12 +02:00
OpenStack Project Creator 4b50af1b1a Added .gitreview 2016-07-07 08:33:25 +00:00