summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Moves supported python runtimes from version 3.8 to 3.10"HEADmasterGhanshyam2023-05-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6abf69e194c9dac13d26bca3e7ac1f710f9e26a0. Keeping Python 3.10 in setup.cfg classifier. Reason for revert: Needed-By: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175 TC has been discussing about re-adding the python 3.8 testing in current master 2023.2 release testing. - https://meetings.opendev.org/meetings/tc/2023/tc.2023-04-25-18.00.log.html#l-191 - https://lists.openstack.org/pipermail/openstack-discuss/2023-April/033469.html While governance changes are under review, TC agreed to add py3.8 testing so that we do not see more project/lib dropping python 3.8 and make them uninstalable on python 3.8 - https://meetings.opendev.org/meetings/tc/2023/tc.2023-05-02-18.00.log.html#l-17 - https://review.opendev.org/c/openstack/governance/+/882165 Also adding py3.8 testing back in job https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175 Change-Id: Ib5b901f245cb65bbd9deee6e030ddb96fc7b8015
* Moves supported python runtimes from version 3.8 to 3.10Hervé Beraud2023-04-101-2/+2
| | | | | | | | Within 2023.2 python version 3.9 and 3.10 are the supported python runtimes [1]. [1] https: //review.opendev.org/c/openstack/governance/+/872232 Change-Id: Ibabaaf286ca4ce942908086e490929900ccf7c95
* Update master for stable/2023.1OpenStack Release Bot2023-02-242-0/+7
| | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/2023.1. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/2023.1. Sem-Ver: feature Change-Id: I8e979b65ca350f53b6eb795f5d2358c628268425
* Merge "Cleanup py27 support"Zuul2023-02-171-8/+0
|\
| * Cleanup py27 supportsongwenping2022-12-311-8/+0
| | | | | | | | | | | | | | | | This repo is now testing only with Python 3, so let's make a few cleanups: - Remove python 2.7 stanza from setup.py Change-Id: I82753bf268ebcc6fd701a56c64534a9cd3d5b4ae
* | Imported Translations from ZanataOpenStack Proposal Bot2023-01-281-2/+51
| | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: If528578c75c86ab560b19a53e32fca921c827878
* | tox - fix allowlist_external issues5.1.0Hervé Beraud2023-01-271-3/+3
|/ | | | Change-Id: I07d2126176d00acf361349fa6f8de6b34ae64a16
* Make the eventlet logging fix execution conditional5.0.2Rodolfo Alonso Hernandez2022-11-141-2/+3
| | | | | | | | | | | | | | | | | | | This patch changes the ``log.setup()`` signature to allow a kwarg that makes the eventlet logging fix conditional. Some libraries that import oslo.log, replace the logging locking handling with its own implementation. For example oslo.privsep replaces the logging handler with its own one [1], that allows the communication between the privileged daemon process and the service importing the library. This local handler clashes with the evenlet logging fix implemented in [2]. [1]https://github.com/openstack/oslo.privsep/blob/1020c6fbf54f93cad9fa36b97bcd9cf75549984a/oslo_privsep/daemon.py#L579 [2]https://review.opendev.org/c/openstack/oslo.log/+/852443 Partial-Bug: #1995514 Related-Bug: #1995091 Change-Id: I4bbcfe7db6d75188e61b9084cb02b2dd2aaa0c76
* Fix logging in eventlet native threads5.0.1Gorka Eguileor2022-08-085-0/+376
| | | | | | | | | | | | | | | | | | | | | | There is a bug in eventlet where logging within a native thread can lead to a deadlock situation: https://github.com/eventlet/eventlet/issues/432 When encountered with this issue some projects in OpenStack using oslo.log, eg. Cinder, resolve them by removing any logging withing native threads. There is actually a better approach. The Swift team came up with a solution a long time ago [1], and in this patch that fix is included as part of the setup method, but will only be run if the eventlet library has already been loaded. This patch adds the eventlet library as a testing dependency for the PipeMutext unit tests. [1]: https://opendev.org/openstack/swift/commit/69c715c505cf9e5df29dc1dff2fa1a4847471cb6 Closes-Bug: #1983863 Change-Id: Iac1b0891ae584ce4b95964e6cdc0ff2483a4e57d
* Merge "[Fix] init global_request_id if not in context"5.0.0Zuul2022-05-133-1/+18
|\
| * [Fix] init global_request_id if not in contextHervé Beraud2022-05-113-1/+18
| | | | | | | | | | | | | | | | Initialize by default the `global_request_id` if not passed in the given context to avoid error with logging. Change-Id: I6bd63c1d6a1331a4e47b923ccf6df50c930c8162 Closes-Bug: #1972974
* | Drop python3.6/3.7 support in testing runtimeHervé Beraud2022-05-051-3/+1
|/ | | | | | | | | | In Zed cycle testing runtime, we are targetting to drop the python 3.6/3.7 support, project started adding python 3.8 as minimum, example nova: - https://github.com/openstack/nova/blob/56b5aed08c6a3ed81b78dc216f0165ebfe3c3350/setup.cfg#L13 Change-Id: I46e2456b9931d215c97b15ac97b47a6977282584
* Merge "Log Global Request IDs by default"4.8.0Zuul2022-04-262-2/+7
|\
| * Log Global Request IDs by defaultTakashi Kajinami2022-04-252-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Global Request IDs were introduced a while ago[1] so that operators can trace processing of resources across multiple services more easily. Some services like Nova or Neutron have implemented this feature and a request made by these services have additional global request id in its context. However current default format doesn't include that new id and users need to update the log format parameter in each service to get this information recorded. This change updates the default log format so that the Global Request IDs can be more widely and easily used. [1] https://specs.openstack.org/openstack/oslo-specs/specs/pike/global-req-id.html Change-Id: I1adc9b29bb356ce56704c066b375b49374200d3c
* | Add system scope information to default user identity stringTakashi Kajinami2022-04-194-7/+18
|/ | | | | | | | | | | | As part of Secure RBAC work, support for system users(eg. system admin) is being added. However current default format does not include the system scope information so we can't determine whether the context is non-scoped or system-scoped. This change updates the default logging_user_identity_format so that system scope is logged by default. Change-Id: I7982cdb280599fb38362eb837cb527592267b91f
* Merge "Fix formatting of release list"Zuul2022-03-221-14/+14
|\
| * Fix formatting of release listPierre Riteau2022-02-071-14/+14
| | | | | | | | Change-Id: Ibd6deb5339129e8f4099bdb1fef48490a8bac093
* | Merge "Add Zed in versionutils"Zuul2022-03-221-0/+2
|\ \
| * | Add Zed in versionutilsGoutham Pacha Ravi2022-03-111-0/+2
| | | | | | | | | | | | | | | | | | | | | with these once could use versionutils.deprecated.ZED in config annotations and logs. Change-Id: I8d5ed01a4b4d1a544fe868c571a54dc96e8ae2f2
* | | Update CI to use unversioned jobs templateStephen Finucane2022-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of the migration of this project to the independent release model, we failed to notice that the job template was still tied to a specific release. We've now introduced a new unversioned job template, 'openstack-python3-jobs' [1], which was can and should use. Do this. [1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/ Change-Id: Id3cc1d93e18a172960b4c8ca7a7e52ebfd307842 Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/ Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* | | Add Python3 yoga unit teststushargite962022-03-021-1/+1
|/ / | | | | | | | | | | | | | | | | | | This patch updates the project template to use the Yoga project template to ensure unit testing is in place for all of the tested runtimes for yoga. For more please refer to [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Idda4215001b245322983d59507a38d19d1d322bd
* | Add Yoga to versionutils4.7.0Alan Bishop2022-02-051-0/+2
| | | | | | | | Change-Id: If1e846c79477cb0fc06d5702240e1dbb9f2c9c40
* | Use project when logging the user identityAlan Bishop2022-02-053-27/+22
|/ | | | | | | | | | The logging_user_identity_format option's default value is changed to reference the project instead of the tenant. This is necessary because I2fded6f3476df1fb8c4e042ef28ed8ccb7ab0737 removed the tenant argument from request contexts. Related-Bug: #1505827 Change-Id: Id6d4b6eaa2b96ba5bd53e8b2dae5d9eea13b25d9
* Update python testing classifierdengzhaosen2021-12-211-0/+1
| | | | | | | | | | | | | | Yoga testing runtime[1] has been updated to add py39 testing as voting. Unit tests update are handled by the job template change in openstack-zuul-job - https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286 this commit updates the classifier in setup.cfg file. [1] https://governance.openstack.org/tc/reference/runtimes/yoga.html Change-Id: Idab66b3046b54d4e963d987b528347262fb9aa4d
* Replace deprecated arguments of RequestContext4.6.1Takashi Kajinami2021-07-231-4/+4
| | | | | | | | | | | | | | | | The following arguments of the RequestContext class are deprecated since oslo.context 2.18[1]. user : renamed to user_id tenant : renamed to project_id domain : renamed to domain_id user_domain : renamed to user_domain_id project_domain: renamed to project_domain_id This change updates arguments used accordingly. [1] d78cf592e1e3e7aa0fc99bfdd655e82f5c44dfe3 Change-Id: I815790106e42ca3cb5b8b3cf98b065a27b9a520e
* Merge "Remove references to 'sys.version_info'"4.6.0Zuul2021-06-011-5/+2
|\
| * Remove references to 'sys.version_info'Jorhson Deng2021-04-271-5/+2
| | | | | | | | | | | | We support Python 3.6 as a minimum now, making these checks no-ops. Change-Id: Ifd84fe4d7282e93998dc37cab4adda6d99d4adc1
* | Merge "Ussuri+ is python3 only"Zuul2021-05-261-1/+1
|\ \
| * | Ussuri+ is python3 onlydengzhaosen2021-05-061-1/+1
| |/ | | | | | | | | | | update python to python3 Change-Id: I08e9b66e03c59af7f6600633aaa87d55fcd46a56
* | setup.cfg: Replace dashes with underscoressongwenping2021-04-301-4/+4
|/ | | | | | | | | | | | | | | | Setuptools v54.1.0 introduces a warning that the use of dash-separated options in 'setup.cfg' will not be supported in a future version [1]. Get ahead of the issue by replacing the dashes with underscores. Without this, we see 'UserWarning' messages like the following on new enough versions of setuptools: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb Change-Id: I19543673ddf80d93e28f5503b7672f64a6cecf2a
* Merge "Drop lower-constraints"4.5.0Zuul2021-04-162-63/+0
|\
| * Drop lower-constraintssongwenping2021-04-162-63/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lower-constraints is not a requirement of the OpenStack Python PTI [0] and there currently is a discussion on the mailing list [1] about dropping the test, with the oslo team already having done so [2]. The new dependency resolver in pip fails due to incompatible dependency versions in our lower-constraints file, meaning that we were never providing any real guarantees with it. To unblock the CI, I am disabling lower-constraints job for now, with the option to reenable it in case we fix the constraints, and based on the outcome of the mailing list discussions and consensus. [0]. https://governance.openstack.org/tc/reference/pti/python.html [1]. http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019672.html [2]. http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019659.html Change-Id: I04e49f005841eb341c2d53cbc469252c089d1ab5
* | Merge "Fix log_rotate_interval help text formatting"Zuul2021-04-161-1/+1
|\ \
| * | Fix log_rotate_interval help text formattingEric Harney2021-04-151-1/+1
| |/ | | | | | | | | | | | | Add a missing space, this currently generates "setto" in config files. Change-Id: I4086fcab1e96e9127d7fe084d887cf57c8f87828
* | Merge "remove unicode from code"Zuul2021-04-163-7/+7
|\ \ | |/ |/|
| * remove unicode from codexuanyandong2021-01-033-7/+7
| | | | | | | | Change-Id: I4e4e6fc55053e9d524620022af442f1313a97446
* | Merge "Add Xena to versionutils"Zuul2021-04-061-0/+2
|\ \
| * | Add Xena to versionutilsBen Nemec2021-01-191-0/+2
| | | | | | | | | | | | | | | | | | Adding warrior princess release to the list of releases. :-) Change-Id: I6bf6997899f6c95ed1074563164b82fce37f26f3
* | | Move flake8 as a pre-commit local target.Daniel Bengtsson2021-03-221-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal here is to avoid conflicts between flake8 and hacking version each 2 days. Inspired from nova's approach [1]. The flake8 version to install will be determined by hacking and requirements will stay aligned instead of relying on different versions. [1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35 [2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1 Change-Id: I9a16d80f361f223c4c5c8cdcf90e920abd89f679
* | | Merge "Use py3 as the default runtime for tox"Zuul2021-01-211-1/+1
|\ \ \ | |/ / |/| |
| * | Use py3 as the default runtime for toxHervé Beraud2020-11-041-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving on py3 as the default runtime for tox to avoid to update this at each new cycle. Wallaby support officially the following runtimes [1]: - Python 3.6 - Python 3.8 During Victoria Python 3.7 was used as the default runtime [2] however this version isn't longer officially supported. [1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby [2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria Change-Id: I4bad27f2daab336437ae7a85c79a4928b9fe894c
* | Merge "Use TOX_CONSTRAINTS_FILE"Zuul2021-01-141-3/+3
|\ \
| * | Use TOX_CONSTRAINTS_FILEHervé Beraud2020-11-041-3/+3
| |/ | | | | | | | | | | | | | | | | | | | | UPPER_CONSTRAINTS_FILE is old name and deprecated This allows to use upper-constraints file as more readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>. [1] https://review.opendev.org/#/c/722814/ [2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file Change-Id: Ic4b4627cf0bbd401c870f813f2a5884950c7cb6a
* | Dropping lower constraints testingHervé Beraud2020-12-181-1/+0
|/ | | | | | | | | | | | | We facing errors related to the new pip resolver, this topic was discussed on the ML and QA team proposed to to test lower-constraints [1]. I propose to drop this test because the complexity and recurring pain needed to maintain that now exceeds the benefits provided by this mechanismes. [1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html Change-Id: I339b18e533c75283c58409a2cdce001e4b5fbb18
* Imported Translations from ZanataOpenStack Proposal Bot2020-10-111-2/+28
| | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: Ic35ce5b2b13b0d8611d9ee222ec651d352a6831b
* Merge "Adding pre-commit"Zuul2020-09-225-1/+42
|\
| * Adding pre-commitHervé Beraud2020-09-085-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduced changes: - pre-commit config and rules. - Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks. - Applying fixes for pre-commit compliance in all code. Also commit hash will be used instead of version tags in pre-commit to prevend arbitrary code from running in developer's machines. pre-commit will be used to: - trailing whitespace; - Replaces or checks mixed line ending (mixed-line-ending); - Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker); - Checks that non-binary executables have a proper shebang (check-executables-have-shebangs); - Check for files that contain merge conflict strings (check-merge-conflict); - Check for debugger imports and py37+ breakpoint() calls in python source (debug-statements); - Attempts to load all yaml files to verify syntax (check-yaml); - Run flake8 checks (flake8) (local) For further details about tests please refer to: https://github.com/pre-commit/pre-commit-hooks Change-Id: I6663d5e0866e03f8eb8c0543d3e3e0bbfb2399ac Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* | Add Python3 wallaby unit testsOpenStack Release Bot2020-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for wallaby. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I7416f5611f80725280567c40a6c08f7a65df6152
* | Update master for stable/victoriaOpenStack Release Bot2020-09-112-0/+7
|/ | | | | | | | | | | | Add file to the reno documentation build to show release notes for stable/victoria. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/victoria. Change-Id: I59c55e7511840efe49cf08138b5837e3f1dfeeb3 Sem-Ver: feature
* Merge "Added uwsgi_name information into fluentFormatter event message"victoria-em4.4.0Zuul2020-08-061-0/+10
|\