Commit Graph

225 Commits

Author SHA1 Message Date
OpenDev Sysadmins 2abf1aa027 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:13 +00:00
Jenkins f64b899bc4 Merge "Modify Tempest to use Kingbird-client" into stable/pike 2017-07-19 16:31:42 +00:00
Jenkins cf34546fb4 Merge "Tempest tests for Image_Synchronization." into stable/pike 2017-07-19 16:31:18 +00:00
Dimitri Mazmanov 10481e600d Change default branch
Change-Id: I421cbf52e21b68a0ff4fb33652e1f6f40c82a372
2017-07-19 17:49:31 +02:00
Goutham Pratapa d9cedd6ce2 Tempest tests for Image_Synchronization.
Added Tempest testcases for Kingbird image_sync.
Added test_image_sync.py to resource_sync directory
which contains tempest testcases for image_sync.
Depends-on: I7fbeec5376dc3a2333a7cc9ad51108feb79a7b03
Implements: blueprint image-synchronization

Change-Id: I58b54eedd2956990991dc15a37cf0ff246341acb
(cherry picked from commit 47e1cd48a2)
2017-07-19 15:27:54 +00:00
Goutham Pratapa 8a4d4b2397 Modify Tempest to use Kingbird-client
Currently, Kingbird uses curl requests to run Tempest tests.
This commit replaces curl requests with kingbird clients for
Kingbird quota management and quota-class management.
Implements: blueprint kingbirdclient-tempest
Depends-on: I7fbeec5376dc3a2333a7cc9ad51108feb79a7b03

Change-Id: I69f3cd359846b75c767ddd1e3d3de69e1a015c13
(cherry picked from commit 3d0416d152)
2017-07-19 15:27:17 +00:00
Jenkins 6264342d2b Merge "Implement Image synchronization in Kingbird." 2017-07-19 14:50:58 +00:00
Goutham Pratapa ce3a2dae92 Implement Image synchronization in Kingbird.
Image-synchronization syncs multiple images from one region to
multiple target regions.
Currently the supported image disk_formats are Qcow2 and AMI.
If user triggers a request to sync AMI format image then Kingbird
syncs the dependent AKI and ARI images as well.
-Syncs the respective image's image-metadata as well.
-Verification of Dependent images is handled by glance_adapter.
-Modified sync_manager to keypair_sync_manager and made it an
independent entity.
-Created an independent Image Sync-manager which syncs images in
multiple target regions.
Added Test-cases for the same.
Depends-on: I316ff7e79afb0ea092eec2a4bf32a78c609198ab
Implements: blueprint image-synchronization

Change-Id: If207f803b67b5f5702117d377883b57101802c42
2017-07-18 12:19:13 +00:00
Jenkins 1736c7dec0 Merge "API validations for image synchronization." 2017-07-14 12:50:44 +00:00
Jenkins a492a661fd Merge "Modify Tempest tests of resource_management." 2017-07-07 12:52:01 +00:00
Goutham Pratapa 4d21be6947 API validations for image synchronization.
Added validation of source image
Added test cases for the same.

Depends-on: I66fbf4ab207a6615f8070d3a22ea7561e608dcd9
Depends-on: I022bd5b972aca159b4a8f6f88d201afa5c21ab8e

Partially Implements: blueprint image-synchronization

Change-Id: I316ff7e79afb0ea092eec2a4bf32a78c609198ab
2017-07-06 19:31:26 +05:30
Goutham Pratapa 3c2bc63a9f Modify Tempest tests of resource_management.
Currently, Kingbird uses curl requests to run Tempest tests
This commit replaces curl requests with kingbird python sdk
(python-kingbirdclient)for resource_management only.
Add kingbirdclient to the test-requriements.txt
Partially Implements: kingbirdclient-tempest
Change-Id: I7fbeec5376dc3a2333a7cc9ad51108feb79a7b03
2017-06-30 18:11:49 +05:30
Jenkins afe776b0f9 Merge "Create Glance driver for Kingbird." 2017-06-08 11:18:32 +00:00
Jenkins 26ee37310e Merge "Create keypairs in other regions using context." 2017-06-08 11:18:24 +00:00
OpenStack Proposal Bot c357203af5 Updated from global requirements
Change-Id: Idd2763c8a74338f91dc71f0a18deded7a5bc54d7
2017-06-05 12:43:03 +00:00
Jenkins ffc1884b0a Merge "Fix to show default class limits for a quota class" 2017-05-23 05:47:18 +00:00
Goutham Pratapa 72ed8e27f4 Create Glance driver for Kingbird.
create glance_v2 with api-version 2.
Change keystone_V3.py to return service endpoints.
Added test-cases for the same.
Depends-on: I1f34d54f72e115bb40a146bb733672c649602ef4
Partially Implements: blueprint Images synchronization

Change-Id: I022bd5b972aca159b4a8f6f88d201afa5c21ab8e
2017-05-22 15:40:54 +05:30
Goutham Pratapa 7e18bc10ea Create keypairs in other regions using context.
Currently, in Kingbird if a non-admin user sends a request to
sync keypairs from one region to other, the resources are
created with the nova client formed, using the admin credentials.

This commit fixes the internal issues and
creates keypairs for the same user based on the context object.
-Used Keystoneauth1 instead of keystoneclient
-Used loading to get session in order to communicate with other
openstack drivers in kingbird.

Modified test-cases for the same.
Closes-Bug: #1692012

Change-Id: I66fbf4ab207a6615f8070d3a22ea7561e608dcd9
2017-05-22 14:27:48 +05:30
Goutham Pratapa 3fc29899cb Add 'roles' parameter to the Context object.
Kingbird context object does not contain parameter 'roles'.
parameter 'roles' is essential as when kingbird communicates with other
openstack services through auth token.

Change-Id: I1f34d54f72e115bb40a146bb733672c649602ef4
2017-05-04 12:48:50 +05:30
Jenkins 219c034f56 Merge "Enable some tempest test cases" 2017-05-04 07:00:50 +00:00
joehuang 7bfcd6533e Enable some tempest test cases
Enable tempest test cases for quota management and resourece
management as example

Change-Id: I9f5f0be8cbef26a51d035e5829e225fe1cce2f7a
Signed-off-by: joehuang <joehuang@huawei.com>
2017-04-27 05:58:11 +00:00
Jenkins eac12147bd Merge "Support V1.1 for kingbird quota management." 2017-04-24 14:05:14 +00:00
Jenkins 8c66149601 Merge "Updated from global requirements" 2017-04-19 14:00:01 +00:00
Goutham Pratapa 0010e8d2b6 Fix to show default class limits for a quota class
Currently, Kingbird does not display the default limits
for a random class which is not an expected behavior.
This fix displays default resources and default limits
for any quota-class of kingbird.
Closes-Bug: #1684082

Change-Id: I1b8e3f1db79fd92531e05807547fcf7310be78f2
2017-04-19 17:01:23 +05:30
joehuang 0155d79498 Test multi-region environment
This patch is to debug and enbale multi-region test
environment

Change-Id: Id6bb3c0a875bf10b7a3453edc38f7fad6bb34f18
Signed-off-by: joehuang <joehuang@huawei.com>
2017-04-18 23:56:11 -04:00
OpenStack Proposal Bot f6004b8fbc Updated from global requirements
Change-Id: I91b3d220c71fe53a79be996f551cd488724229eb
2017-04-18 12:10:15 +00:00
Goutham Pratapa 8a453465bc Support V1.1 for kingbird quota management.
-Modified existing policy.json.
-Added enforcer.py to use policy.json and there by enforcing restrictions.
-Trimmed curl requests of version V1
-Added new working curl requests in Readme.rst
-Added quota-class management curl requests in "kingbird/api/controllers/v1/README.rst"

Partially Implements: blueprint kingbird-api-v2

Change-Id: I513a60b2cc643d6d7458cc955f135dce88637c47
2017-04-17 16:01:26 +05:30
joehuang 63f94de34a Add multi-region scripts for devstack based gate/check test job
Just like py27 gate/check test job enabled for each patch submitted
for review, devstack based multi-region gate/check test job can be
added to each patch too.

gate_hook.sh: the script to build two nodes two OpenStack regions
with Kingbird installed.

post_test_hook.sh: the script to execute test cases against prepared
multi-region with running Kingbird

These two scripts will take into effect only after the job configured
for Kingbird is merged: https://review.openstack.org/456479. So these
two scripts should be merged before the patch in project-config.

Note:
1. multi-region job alread begins to run in Tricircle project,
these two scripts are copied from Tricircle with Kingbird related
update.
2. plugin.sh was updated to register endpoint correctly, no need to
judge database now.

Change-Id: I126365cc8225dc73d758daf70b7efe7b1aafcb27
Signed-off-by: joehuang <joehuang@huawei.com>
2017-04-14 02:35:50 -04:00
Goutham Pratapa 7f89f08407 Move existing kingbird to V1 directory.
Currently kingbird api version is V1 and if the api version is
upgraded or changed to V2 it creates ambiguity because of the loose files
present in "api/controllers".So made changes to move entire
current code to V1 and made changes to existing tests to provide support
to new changes.

Change-Id: I07c19cac7eca111391a22b186949b26729d93414
2017-04-04 19:19:57 +05:30
Jenkins 923c9c140d Merge "Fix to show version information from root API." 2017-03-24 05:54:59 +00:00
Jenkins 2da4c582ae Merge "Replace six.iteritems() with .items()" 2017-03-24 05:09:55 +00:00
Goutham Pratapa 8e0acbdcc5 Fix to show version information from root API.
When the user hits http://serv_api:8118 instead of version information
kingbird returns 401 authentication.Introduced a new section
pecan configurations and pecan hooks to fix this error.
Added test-cases, made trivial changes for tempest tests and refactored
some code.

Closes-Bug: #1673383
Change-Id: Ic87b078a73bd0505b309f099cffdfb7ee31ba8e3
2017-03-23 12:23:33 +05:30
XieYingYun d194bf597b Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: Icba5a60fff276b85e0c5df8b638d525f073faa2e
2017-03-21 20:45:47 +08:00
OpenStack Proposal Bot e5dfc05067 Updated from global requirements
Change-Id: I0dacb8fe3d323e241c06236c1cbac1b215268d2a
2017-03-16 18:13:47 +00:00
OpenStack Proposal Bot 0fe6ad5981 Updated from global requirements
Change-Id: I81872e0dfc26e42b7fa2f9ecb0253a21f4f30348
2017-03-15 05:11:46 +00:00
WangBinbin b86e7a0609 Replace six.iteritems() with .items()
we should avoid using six.iteritems to achieve iterators.
We can use dict.items instead, as it will return iterators in PY3 as well.
And dict.items/keys will be more readable.

In py2, the performance about list should be negligible

Change-Id: I972b6eb73620eea0cae8b1e0ed9df5f80213bf3d
2017-03-14 05:49:13 +08:00
Goutham Pratapa fce80a3991 Fix issues related to delete quota-class
Currently Kingbird doesnot raise any exception if there
is no class in DB with the specified name.
With this change we can fix this.
Refactored some part of the code and added test-cases for the same.

Closes-Bug: #1587363
Change-Id: I0953c95459de31e223ec1ef658b76b3ab9d16ea8
2017-03-01 10:33:48 +00:00
OpenStack Proposal Bot 75cc997137 Updated from global requirements
Change-Id: I9253cd59cadfe048bfb3c2a427a7c3602f6637a2
2017-02-28 23:18:26 +00:00
Goutham Pratapa 2f161b0ae6 Change display output while listing sync_jobs
Currently while listing the sync_jobs.Kingbird doesnt display
the parameter (created_at) and source_region in the job_details.

Change-Id: I4814f8039dfc080dc340a15c94d0292e57604e1b
2017-02-17 17:15:50 +05:30
joehuang 955c5a7933 Update installation guide and usage guide
Currently the oslo.messaging has update its configuration to use
transport_url for message bus configuration, and openstack endpoint
creation aslo has new strutucture, need to update the installation
guide to make it work in new release.

python-kingbirdclient was introduced, so the usage
guide is updated to use python-kingbirdclient. The new feature
key pair synchronization is also included in the usage guide.

Change-Id: I725da3a8dbb83109130473d9bc86381303d2c174
Signed-off-by: joehuang <joehuang@huawei.com>
2017-02-16 10:00:30 +00:00
OpenStack Proposal Bot c305c058f2 Updated from global requirements
Change-Id: Id90154a7a63ebb59af591d04a6a3d1af5581e0ce
2017-02-13 15:12:58 +00:00
Goutham Pratapa acf83a3df8 Tempest testcases to support new bug fixes
Kingbird has two bug fixes 1652747,1654569 cause tempest failures,
This commit provides fix for the same.

Depends-on: I6fd74f63cde69c8a21d3e347cea206fc629e7c36

Change-Id: I7ea8a4f14b68f4f9d0a81379d9207063811e3ce6
2017-02-13 11:13:11 +00:00
Jenkins 5fec5dd49d Merge "Tempest testcases for Keypair_sync" 2017-02-13 11:12:43 +00:00
Goutham Pratapa f399336e28 Tempest testcases for Keypair_sync
Added Tempest testcases for Kingbird keypair_sync.
Added resource_management directory to Kingbird tempest
which contains tempest testcases for keypair_sync.

Change-Id: I6fd74f63cde69c8a21d3e347cea206fc629e7c36
2017-02-13 09:59:36 +05:30
OpenStack Proposal Bot 1779bc76f5 Updated from global requirements
Change-Id: I80c60f0bd1d0b2d5cd0b52a5f2bf79f4936312bb
2017-02-11 17:43:27 +00:00
Goutham Pratapa b4433b60c7 Implement Keypair sync for Kingbird
Keypair_sync syncs multiple keypairs from one region to another region.
Add test-case for the same.

Partially Depends on: Iba1c789715aa7c7d00a7a2ec23a449c72a757ac1

closes-Bug: 1640162

Change-Id: I42ed749f8e2c91740249735d32ef8494e50f17f8
2017-02-10 10:13:58 +05:30
ubuntu ac58c2a3e4 Migration_Scripts for Resource_sync.
Create two tables sync_job and resource_sync.
Sync_job contains job details of which id is the primary-key.
id is taken as a foreign-key and is also a part of composite primary key
along with Resource,Region off the resource_sync table.
Also created the api-calls with which interaction between the
application and the database occurs.
Added Test_cases for the same.

Change-Id: Iba1c789715aa7c7d00a7a2ec23a449c72a757ac1
2017-02-09 12:33:56 +05:30
OpenStack Proposal Bot d3cf6a46eb Updated from global requirements
Change-Id: I927b17c327145e0b7662cb49f72d942b7731dd69
2017-01-24 19:52:34 +00:00
Jenkins 4e3c6a7ea5 Merge "Restrict & validate KB-tenants to view own quotas" 2017-01-23 11:04:09 +00:00
OpenStack Proposal Bot 5836a94a54 Updated from global requirements
Change-Id: I42f45beaa1960831697e9609485e238b4e475acb
2017-01-21 14:55:37 +00:00