From 513bbc6abebba5b977e998aa9d7f94f539bf1f01 Mon Sep 17 00:00:00 2001 From: ZhijunWei Date: Fri, 28 Dec 2018 23:03:56 +0800 Subject: [PATCH] Update git submodules * Update python-keystoneclient from branch 'master' - Update hacking version 1. update hacking version to latest 2. fix pep8 failed Change-Id: Iecc112206633a7e771c5e45547c573d74cce6f67 - Merge "Change openstack-dev to openstack-discuss" - Change openstack-dev to openstack-discuss Mailinglists have been updated. Openstack-discuss replaces openstack-dev. Change-Id: Ia14ecbd5f6051b9e391cd2ed0cfbde14913813bf - Add Python 3.6 classifier to setup.cfg Change-Id: Idd26135eb12bfa4acaed9f42f0a5d6ad9492c7fc - Merge "Fix keystoneclient-devstack-functional job" - Merge "Add release notes for return-request-id-to-caller" - Merge "Add return-request-id-to-caller function(v3/contrib)" - Add release notes for return-request-id-to-caller Change-Id: I6a9b5ec4f2a82c87f9819f5195f72540a13573b8 Co-authored-by: Ankit Agrawal Implements: blueprint return-request-id-to-caller - Fix keystoneclient-devstack-functional job The keystoneclient-devstack-functional job works fine when being run against this repo, but fails when running against the keystone repo because of conflicts within the tools/test-setup.sh script there. Do our own definition of the job to make sure that we always run tox against the correct repo. Also base the job on devstack-minimal to avoid installing more serviced than needed. Change-Id: Ie4c03de48a3b7f2fb3967a185486c6fb0d6e0a5f - Merge "Add py36 tox environment" - Use python3 for functional tests Switch to python3 for the tox basepython and for the devstack setup for functional tests to fulfill the python3-first goal[1]. We still have unit test coverage for python2. [1] https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: If82196ce6a2fffe6a43bb59077c6bdd712276958 - Make the functional test voting These tests are stable, so make them voting. Change-Id: I6fad63b342639937566d55f400db63eefdd23a1b - Add py36 tox environment We already run python3.6 unit tests in CI. Add the py36 environment to the tox file so that developers with python3.6 available locally can opt into running that version too. Change-Id: I28e96e5922b73f270b0e77fff91e4343ad06a852 - Convert functional tests to Zuulv3 Use the devstack-tox-functional-consumer job as a parent job to allow us to remove the custom playbooks and devstack hooks. Change-Id: Ide6e6da3cbb479b5149fb44f0ef392dc80202910 - Add return-request-id-to-caller function(v3/contrib) Added return-request-id-to-caller function tovresources and resource managers in the following files. * keystoneclient/v3/contrib/simple_cert.py * keystoneclient/v3/contrib/endpoint_policy.py * keystoneclient/v3/contrib/oauth1/access_tokens.py * keystoneclient/v3/contrib/oauth1/request_tokens.py Adding request-id to below V3 contrib API's is covered in base patch [1] but this patch is specifically for V3 API's so covered their test cases in this patch. * keystoneclient/v3/contrib/endpoint_filter.py * keystoneclient/v3/contrib/federation/identity_providers.py * keystoneclient/v3/contrib/federation/mappings.py * keystoneclient/v3/contrib/federation/protocols.py * keystoneclient/v3/contrib/federation/service_providers.py The methods in the resource class and resource manager return a 'base.Response' class that has 'request_ids' property. The caller can get request ids of the callee via that property. [1] https://review.openstack.org/#/c/329913 Change-Id: I5f90c31020e0dd672a160c7b587f41ba8f2b596c Co-authored-by: Dinesh Bhor Co-authored-by: Ankit Agrawal Co-authored-by: Neha Alhat Implements: blueprint return-request-id-to-caller - Merge "Don't quote {posargs} in tox.ini" - Merge "Update IdentityProviderManager docstring" - Merge "Add return-request-id-to-caller function(v3)" - Merge "Add Response class to return request-id to caller" - Don't quote {posargs} in tox.ini Quotes around {posargs} cause the entire string to be combined into one arg that gets passed to stestr. This prevents passing multiple args (e.g. '--concurrency=16 some-regex') Change-Id: Ie0b56212cad8d9756c2043a4483c607101491a14 - Merge "Import legacy keystoneclient-dsvm-functional" - Merge "Use templates for cover and lower-constraints" - Merge "Deprecate region enabled parameter" - Deprecate region enabled parameter We don't check for "enabled" in the region anywhere thus deprecating it from the create() and update calls of the v3/region.py. We dont use it in schema [1] as well as [2]. [1] https://github.com/openstack/keystone/blob/master/keystone/catalog/schema.py#L34 [2] https://github.com/openstack/keystone/blob/master/keystone/catalog/backends/sql.py#L33-L49 Change-Id: I0257d5d42916e3b4d008e592d54eeeebec591633 Partial-Bug: #1615076 - Import legacy keystoneclient-dsvm-functional Import Zuul v2 legacy job so that it can be modified and converted to v3 in-repo. Change-Id: Ia1a0efa0591d0e37e22a8cac24b72af63604f087 - Use templates for cover and lower-constraints Use openstack-tox-cover template, this runs the cover job as non-voting in the check queue only. Use openstack-lower-constraints-jobs template Remove jobs that are part of the templates. Change-Id: I53c95dfd73679653099df83400e18f9ba5c1def7 - Merge "Update reno for stable/rocky" - add lib-forward-testing-python3 test job This is a mechanically generated patch to add a functional test job running under Python 3 as part of the python3-first goal. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: I50cd4bef7aae2792f38333fe019d0ec1b7fb2736 Story: #2002586 Task: #24304 - add python 3.6 unit test job This is a mechanically generated patch to add a unit test job running under Python 3.6 as part of the python3-first goal. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: Id84bb8e0e754b6eb20f85f0a0c1c7416bb9664c8 Story: #2002586 Task: #24304 - switch documentation job to new PTI This is a mechanically generated patch to switch the documentation jobs to use the new PTI versions of the jobs as part of the python3-first goal. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: I33d8721a9fd6ef8b2daa542f9e51dc36cd69dbac Story: #2002586 Task: #24304 - import zuul job settings from project-config This is a mechanically generated patch to complete step 1 of moving the zuul job settings out of project-config and into each project repository. Because there will be a separate patch on each branch, the branch specifiers for branch-specific jobs have been removed. Because this patch is generated by a script, there may be some cosmetic changes to the layout of the YAML file(s) as the contents are normalized. See the python3-first goal document for details: https://governance.openstack.org/tc/goals/stein/python3-first.html Change-Id: I93c27562e47fe34b6ec9a2886347c4f224163eca Story: #2002586 Task: #24304 - Merge "fix misspelling of 'default'" - fix misspelling of 'default' Change-Id: I12ffcf28d05655f1f60038dcf1c42e43a516978e - Update reno for stable/rocky Change-Id: I5a190d6ee3b55355611f1f431f165ee54207a548 - refactor the getid method in keystoneclient/base.py Refer to a merged commit. https://review.openstack.org/#/c/588983/ TrivialFix Change-Id: Ie3a02843e35382dd24230e91534b6ed72846957d - Merge "Switch to stestr" - Switch to stestr According to Openstack summit session [1], stestr is maintained project to which all Openstack projects should migrate. Let's switch to stestr as other projects have already moved to it. [1] https://etherpad.openstack.org/p/YVR-python-pti Change-Id: I6484b605b1a7b8bcc4589170d2645f7cb0ca66f6 - Add release note link in README Change-Id: I5b9b9c31d58f0e5411d03d9f27991c97f3ad3980 - Merge "Add support for project-specific limits" - Merge "Add support for registered limits" - Update IdentityProviderManager docstring Change-Id: Ie386caf4fc9ad660581558406cd72fafc391379d Closes-Bug: #1763475 - Merge "Remove PyPI downloads" - Merge "fix a typo in docstring" - Add support for project-specific limits Thsi commit adds client support for managing limits in keystone. bp unified-limits Change-Id: I33251dbd4d3bfaf178ca86a2f5d564ac94879dd2 - Add support for registered limits This change add client support for creating, reading, updating, and deleting registered limits. A subsequent patch will do the same for project-specific limits. bp unified-limits Depends-On: https://review.openstack.org/#/c/569741/ Change-Id: I6b5d106d08af53c2ad41ed3f799e9e71d370c6dd - Merge "fix tox python3 overrides" - Fix python3 test compat Python3 test requirement means that the unicode type does not exist instead we use six.unicode to get `unicode` in py27 and `str` in python3. Change-Id: I2cbf2e63a9d93c232b6928acf002a45b7fbcec8e - fix tox python3 overrides We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: I0637976fc3097ff5052e38cf8a9afc7a3330034f Depends-On: I2cbf2e63a9d93c232b6928acf002a45b7fbcec8e Signed-off-by: Doug Hellmann - Remove PyPI downloads According to official site, https://packaging.python.org/guides/analyzing-pypi-package-downloads/ PyPI package download statistics is no longer maintained and thus should be removed. Change-Id: Ib43759f6e7edc55f13a2466a7c6098cca883df39 - fix a typo in docstring Change-Id: I56e9c3b03ed85c1c6031390b835d678c43e51e17 - Trivial: Update pypi url to new url Pypi url changed from [1] to [2] [1] https://pypi.python.org/pypi/ [2] https://pypi.org/project/ Change-Id: I5d7b250d0281883b91e80c83fd0af352b8846b43 - add lower-constraints job Create a tox environment for running the unit tests against the lower bounds of the dependencies. Create a lower-constraints.txt to be used to enforce the lower bounds in those tests. Add openstack-tox-lower-constraints job to the zuul configuration. See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html for more details. Change-Id: I27d40ced965e35f5edcb1200faa5d1693cc12544 Depends-On: https://review.openstack.org/555034 Signed-off-by: Doug Hellmann - Add return-request-id-to-caller function(v3) Added return-request-id-to-caller function to resources and resource managers in the following files. * keystoneclient/v3/projects.py The methods in the resource class and resource manager return a wrapper class that has 'request_ids' property. The caller can get request ids of the callee via the property. NOTE: Remaining resources from the V3 package are already covered in the base patch: https://review.openstack.org/#/c/329913/ Change-Id: I0133d51cfadc02e2dd926b8b0419b2e1dd0fa92a Co-authored-by: Ankit Agrawal Co-authored-by: Dinesh Bhor Implements: blueprint return-request-id-to-caller - Add Response class to return request-id to caller This change is required to return 'request_id' from client to log request_id mappings of cross-project requests. Instantiating class 'keystoneclient.v3.client.Client' using 'include_metadata=True' will cause manager response to return a new 'Response' class instead of just the data. This 'Response' class is going to have additional metadata properties available like 'request_ids' and the original data will be available as property 'data' to it. This change is backward compatible since user has to set a new parameter 'include_metadata=True' to client in order to get the request_id returned. Co-author: Dinesh Bhor Partially Implements: blueprint return-request-id-to-caller Change-Id: Ibefaa484158ff08bfcacc1e2802d87fc26fd76a5 - Updated from global requirements Change-Id: Ied4043ac0a30e78804875cbbe6e22724d164073a - Merge "Updated from global requirements" - Updated from global requirements Change-Id: I50a3011c302fb5568da8f57e2f5c354d1afb3a94 - Update links in README Change the outdated links to the latest links in README Change-Id: I19a9ece589e8412bf1dc31742c22ae8ae31acc79 - Updated from global requirements Change-Id: I881fca9b06f551fd26b37fdb43502a71da8ffec8 - Merge "Override find function in project" - Override find function in project This change overrides the base find functionality within project in order to encode tags to a base string. Change-Id: I4599b8a4dafcb9d4178c973eb48a8ad3a7d292f5 - Update reno for stable/queens Change-Id: Ib9f2444a91679930a42f980eab22d32241e57302 - Merge "Add CRUD support for application credentials" - Merge "Add system role functionality" - Add system role functionality This commit adds the necessary bits to be able to use system role assignments from python-keystoneclient. bp system-scope Change-Id: Iecbcbf020a15f2bec777334c648d4477f89f3b2c - Add CRUD support for application credentials Add support for creating, reading, and deleting application credentials. Application credentials do not support updating. Keystoneclient does not handle authentication with application credentials. This is done in keystoneauth. Additional work will be needed in python-openstackclient to support both CRUD and auth for application credentials. bp application credentials Change-Id: I21214238deac2c45f2f2d666287c2ae106955ab1 - Updated from global requirements Change-Id: I748fadaececc4c5fe67ab6d671f13ce4ea964049 I44f2950a092bc03bdd0a9976242689a8f198b07a I5f4dccaef48902bb4a5e6eab304c76cc5dbb258d - Merge "Add project tags to keystoneclient" - Add project tags to keystoneclient Adds the client functionality for the following project tag calls: - Create a project tag on a project - Check if a project tag exists on a project - List project tags on a project - Modify project tags on a project - Delete a specific project tag on a project - Delete all project tags on a project Co-Authored-By: Jess Egler Co-Authored-By: Rohan Arora Co-Authored-By: Tin Lam Partially Implements: bp project-tags Change-Id: I486b2969ae0aa2638842d842fb8b0955cc086d25 - Merge "Create doc/requirements.txt" - Create doc/requirements.txt For compliance with the Project Testing Interface as described in: https://governance.openstack.org/tc/reference/project-testing-interface.html Refer to: http://lists.openstack.org/pipermail/openstack-dev/2017-November/124815.html Change-Id: Iaa1530f19049883fc9fbce66f1fcc82ded559a07 - Updated from global requirements Change-Id: I772af1795f877b6cd8f9bb4bbe1cb3d76a9d02e3 - Merge "Updated from global requirements" - Updated from global requirements Change-Id: Ie46206cb91bc9f34b5c30d5eba4e14a14e513dd6 - 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: Iee9939776d5552b818aec5cab0b8c2a1133f74b9 - Handle UTC+00:00 in datetime strings In some cases, the following: datetime.datetime.now(tz=iso8601.iso8601.UTC).tzinfo.tzname() returns: 'UTC+00:00' rather than: 'UTC' resulting in strings that look like: 2013-03-04T12:00:01.000000UTC+00:00 That is just flatly invalid. The code here accounts for a tzname of "UTC" and normalizes to to being a trailing Z as-per the ISO 8601 spec, but it does not account for UTC+00:00. Add support for that so that we don't produce invalid date strings. Most of this can be avoided by replacing use of this function with the isoformat method of datetime instead. datetime.datetime.now(tz=iso8601.iso8601.UTC).isoformat() Produces 2013-03-04T12:00:01.000000+00:00 Which while different from 2013-03-04T12:00:01.000000Z is still a valid iso8601 string. Change-Id: I52ca7561abee158285c2c98ba63d84c62e12360f - Merge "Remove functional tests for v2.0 API" - Merge "Updated from global requirements" - Remove setting of version/release from releasenotes Release notes are version independent, so remove version/release values. We've found that projects now require the service package to be installed in order to build release notes, and this is entirely due to the current convention of pulling in the version information. Release notes should not need installation in order to build, so this unnecessary version setting needs to be removed. This is needed for new release notes publishing, see I56909152975f731a9d2c21b2825b972195e48ee8 and the discussion starting at http://lists.openstack.org/pipermail/openstack-dev/2017-November/124480.html . Change-Id: If5da4725a9c896543f5c7d5212871b9f14afddab - Updated from global requirements Change-Id: I1a61cb7ddd1de429f2402f9da315c4b5b6cdee39 - Remove functional tests for v2.0 API Change-Id: I207b716e47893931e79e3758abc2bd879917f340 - Updated from global requirements Change-Id: I5e41a20ceb8c97a7e35ce0088a81cf5ef73d8e5d - Use generic user for both zuul v2 and v3 Zuul v2 uses 'jenkins' as user, but Zuul v3 uses 'zuul'. Using $USER solves it for both cases. Change-Id: I42cfcd4d8dee2ff3a99e42a5a64f3c38163972b8 - Updated from global requirements Change-Id: I1a8ced90154ed726c877385721754686974becc1 --- python-keystoneclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-keystoneclient b/python-keystoneclient index b29f478f28..3f6f14d4fe 160000 --- a/python-keystoneclient +++ b/python-keystoneclient @@ -1 +1 @@ -Subproject commit b29f478f28c4989156cfe87392cbd308e3f55c1e +Subproject commit 3f6f14d4fe8231c72756e88c1dd1a6fa34c1d724