Those are remnants from the oslo-incubator times. Also, oslo.messaging
deprecated [1] transport aliases since 5.2.0+ that is the minimal
version supported for stable/newton. The patch that bumped the minimal
version for Designate landed 3 months+ ago, so we can proceed ripping
those aliases from the code base.
[1] I314cefa5fb1803fa7e21e3e34300e5ced31bba89
Change-Id: I46142df6ecae24eb4e7b6892b946ef131ae66bc7
Closes-Bug: #1424728
This commit is to fix the failing py27 and py35.
The issue is it raised webtest.api error and keyerror is
asserted until now.
Change-Id: Ie4f30b8204bfd039f81a49b57b11836fa8200017
The parameters “admin_user_domain_name” and
“admin_project_domain_name” are added to
establish a Keystone session in Kingbird with
Devstack Queens release.
Change-Id: I6953cbc5e76e21e274bfd8a652b91dd8f6441104
The sync template feature in kingbird is to sync multiple
resource types to multiple regions.We can sync the same
resource_type more than once and in any order.
Added test-cases and tempest test-cases for the same.
Closes-Bug: #1748172
Change-Id: I01fd628ef8ed34363facc21c39e66908c4f383ac
The tempest test-cases for "resource management" are provided to
check the actual scenario of sync operation.
Added tempest test-cases for “flavor sync” and “Sync template” features.
The tempest test-cases for "quota management" are changed
due to the bug raised in “quota show” feature.
Depends-On: <I3ef8d8e707d586b25f286a61b723a1bd067191bc>
Change-Id: I1c1825eb52ebdaa00e1e61bb5468a9cb8561f0fb
"Sync template" feature is introduced in kingbird to
sync multiple resource_types to multiple regions
at a single request.
This feature is changed based on the
Commit ID : 69223a78f9.
Depends-On: <I4aa422546a2949438328c8fe47e89f3079e2eb65>
Change-Id: I3ef8d8e707d586b25f286a61b723a1bd067191bc
Currently in Kingbird there is no id for each resource which is being synced
into multiple regions. But with the help of this resource_sync_id user can
keep a track of all the resource which are binded to a given sync job.
Remaining changes are to enhance kingbird.
Added Test cases for the same.
Change-Id: I4aa422546a2949438328c8fe47e89f3079e2eb65
In tempest test-case "test_keypair_sync_with_force_true" the
main intention is to test resource_sync with force TRUE which will
evetually delete the existing resources and then recreate if
the resources are already present.
Closes-Bug: #1743690
Change-Id: I422b03be34755adcf96a922bbbb79e070ab291da
We had a provision to sync the flavor from one region
to other regions.
This commit is to sync the flavor with “ephemeral”
property from the source region to target regions
in kingbird.
Change-Id: I16e4e88956696c33b77593b4902d558ca22f1fe2
Quota show feature will display the updated quota values.
This feature is enhanced by displaying the default quota
values as well as updated values as in.
The size of the resource column in database is increased
for better usage.
Change-Id: I814bd45a634342104c190f4437cae265ea3bb0f1
Closes-Bug:1740823
Closes-Bug:1742906
"Sync show":
Existing "sync show" feature displays the details
of only one job-identifier but when "Sync template"
feature comes into picture,there will be multiple
job-identifiers present for a single job request.
This commit is to display the details of multiple job-identifiers.
"Sync list":
Interface of "Sync list" feature is changed for better understanding.
Added test-cases for the same.
Depends-On: <Iaa8e9568f97581f74e688d15a11c7e7fd832e019>
Change-Id: Id85a51f5c13ba1b3c90b75c6820da5d1e443c398
This commit from kingbird server is to enhance the existing "sync create" job.
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 issue is solved by "sync template" feature.
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.
Change-Id: Iaa8e9568f97581f74e688d15a11c7e7fd832e019
Flavor Synchronization sync multiple flavors from one region to
multiple target regions.
Only admin can perform flavor-sync.Currently, when a user requests to
sync a flavor kingbird syncs extra specs of the source resource.
Added Test-cases for the same.
Implements:blueprint resource-syncing
Change-Id: Id289cf93bb9c30ea699223e232025285a29042de
Initial commit for flavor synchronization.
Performs some basic validations like
-Check whether the flavor is present in source-region.
-Check whether the access to sync flavor is restricted only to admin.
-Added test-cases for the same.
Partially Implements: resource-syncing
Change-Id: Ieca068aec981b0db6ffc4f4d563b021342c58d60
In Kingbird there are few api calls which are deprecated in
Pike release.This Fix is to address this issue.
Closes-bug: #1712036
Change-Id: I605e3fabe8063999457bb67545029e83a33fee0c
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
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
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
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
Enable tempest test cases for quota management and resourece
management as example
Change-Id: I9f5f0be8cbef26a51d035e5829e225fe1cce2f7a
Signed-off-by: joehuang <joehuang@huawei.com>
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
This patch is to debug and enbale multi-region test
environment
Change-Id: Id6bb3c0a875bf10b7a3453edc38f7fad6bb34f18
Signed-off-by: joehuang <joehuang@huawei.com>
-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
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>
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
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
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
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
Currently while listing the sync_jobs.Kingbird doesnt display
the parameter (created_at) and source_region in the job_details.
Change-Id: I4814f8039dfc080dc340a15c94d0292e57604e1b
Kingbird has two bug fixes 1652747,1654569 cause tempest failures,
This commit provides fix for the same.
Depends-on: I6fd74f63cde69c8a21d3e347cea206fc629e7c36
Change-Id: I7ea8a4f14b68f4f9d0a81379d9207063811e3ce6