* Update oslo.config from branch 'master'
to c290dd7fcf9142df49e7375d127e5845060ae6c7
- Merge "doc: Drop oslo.db.concurrency namespace"
- doc: Drop oslo.db.concurrency namespace
This is used by TpoolDbapiWrapper in oslo.db which is deprecated.
Change-Id: I1cb605a531c080296952ece3668c4002061e94fd
* Update oslo.config from branch 'master'
to cac8283414be20b94442690b83723d10e02a896c
- Merge "reno: Update master for unmaintained/xena"
- reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.
Change-Id: I39a334e0e59e5be0541d37de315fcbe87a37e213
* Update oslo.config from branch 'master'
to 46cc22b32777de54399d9d09a32f46c60e906e23
- Merge "reno: Update master for unmaintained/wallaby"
- reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.
Change-Id: Ief7f8fe010eeccc287da6a5bd64eea0594690765
* Update oslo.config from branch 'master'
to c2e728e756d4ca1f2a789bf98a605e5fd8b8a7ed
- Merge "reno: Update master for unmaintained/victoria"
- reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.
Change-Id: Ia08f46398484e07ad3a9b86f12aca5eea83ea185
* Update oslo.config from branch 'master'
to 4c767edd290c2c42143d5e85a29cd6341bbfc3e4
- Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.
Sem-Ver: feature
Change-Id: Icbe72daa765e51be572775538a25fd8a4e8b58c7
* Update oslo.config from branch 'master'
to 882adf8e4d0685ea3404067fa38066abec9bd5f6
- reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.
Change-Id: Ia5a36f66e06bcc64cd35aff57ce00809a31507c8
* Update oslo.config from branch 'master'
to f5c4096092c1f9da989e455f383499866faf4764
- Bump hacking (again)
The previous attempt did not update the version in pre commit config
so the old version is still used by pep8 target.
Change-Id: I62048df659f4bc35f714de824aadfe9306e81c71
* Update oslo.config from branch 'master'
to 42075a463875f609cb84df2b599a81d913ed6925
- Merge "Add choices parameter for IntOpt class"
- Add choices parameter for IntOpt class
Change-Id: Ic9e9a2fd7d1229616387a6a9d61f8a5b8f32829f
* Update oslo.config from branch 'master'
to d313d6d65ac88da58670dca8d15df545085c2866
- Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg
Change-Id: I2a368b66bf8bc82326f6a147cb6c73343e7726e5
* Update oslo.config from branch 'master'
to 2930db4892e06e97c441d68574bac0930175a16a
- Remove compatibility with Python < 3.8
... because this library now supports only Python 3.8 or newer
versions.
Change-Id: Ibb48af4c501946b62a244994ecea5bfcd998810c
* Update oslo.config from branch 'master'
to bfc32d5ad84fc6399f01660eb5be86d1b647ab94
- Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.
Sem-Ver: feature
Change-Id: I5c18449ccfcb4e3c0ecd333a6d772ca4a2303d44
* Update oslo.config from branch 'master'
to 28187da6d7b8eae39208e7cefbbc7da32ec3d3be
- Merge "Bump bandit and make oslo.config compatible with latest rules"
- Bump bandit and make oslo.config compatible with latest rules
Apply a timeout to requests calls to avoid uncontrolled
resource consumption (CWE400) [1].
[1] https://cwe.mitre.org/data/definitions/400.html
Change-Id: I9e3c1e5f98e2ecfb5564d8dbd608d19d4a66cfce
* Update oslo.config from branch 'master'
to 32d554906c56e5bd522b5affe19d54c8c4131a07
- Moves supported python runtimes from version 3.8 to 3.10
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: Ibd9c332ea54bc225887ceb60e77622432793726f
* Update oslo.config from branch 'master'
to 1654dcc91c5d5179c5b83d3c1ef5a2c18f655f4c
- Update master for stable/2023.1
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: I709b3871b07a1b5eeb711916d4af75dcbe06b78e
* Update oslo.config from branch 'master'
to 515daab81acccbea4015afc5c3c3316d88903a10
- Fix issues related to tox4
Change-Id: I7be9a22796f484df79f0f509a2cf4f47e3a00128
* Update oslo.config from branch 'master'
to 84478d83f87e9993625044de5cd8b4a18dfcaf5d
- Make tests backward compat with cliff' older versions
Change the assertion kind to support all versions of cliff.
The previous related fix 78098e6b18026ff9ef03a948b57348f02d42e13b
was only compatible with cliff>3.4.0.
Change-Id: I7ac27919b0d58929b4c975ebb308f33124a6060f
* Update oslo.config from branch 'master'
to c7cb79b40f8c1be270f04a6f650b500ba5343ca4
- Add Python3 antelope unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I032790c6e4a19bd5e0ef32e0f6f5d0372f43640a
* Update oslo.config from branch 'master'
to 19e1be556488223cd02a8707c758590fc6e1c270
- Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.
Sem-Ver: feature
Change-Id: I82608453f5edf65bbd8ab42ef1e5106f536142eb
* Update oslo.config from branch 'master'
to 7b838f5c31c3219d13661ec612d750e58683cbe6
- Disable a config test if ran under the root user
The `test_conf_file_permission_denied` is designed to test
if a config file can't be read due to missing file permissions.
However if we run unit tests with the root user we will beneficiat
from the root privileges and so this test will fails. This can
be reproduced by running `tox` with `sudo`.
These changes propose to skip this test if root privileges are
detected.
Closes-bug: #1983358
Change-Id: Idd124082265032c30f83242b612d002d7093aa61
* Update oslo.config from branch 'master'
to 78098e6b18026ff9ef03a948b57348f02d42e13b
- fix CLI mismatch in unit tests
Since cliff > 3.4.0 we can see mismatch errors with unit tests, this
patch fix this error.
Also this patch fix some issues with deprecation messages.
All these issues needs to be fixed together to unlock our gates.
Closes-bug: #1908934
Change-Id: I8396b4f3ba74a9ea023bff2e3027710f16a74af4
* Update oslo.config from branch 'master'
to 9eaae044534cbe015217019781c4c0d97f0402df
- Drop python3.6/3.7 support in testing runtime
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:
- 56b5aed08c/setup.cfg (L13)
Change-Id: I18f643d5a7b6283b72c0cd3caeadf0d14f6ed713
* Update oslo.config from branch 'master'
to c287b4abd2dc4a83cc0dc058ef4d3371fe182407
- Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: Ia9a793cf2f8eed8afc231aa32f7a0f12b3b2cec7
* Update oslo.config from branch 'master'
to 825591485620790bffc8809d37ee3f37d4ff0ef9
- Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.
Sem-Ver: feature
Change-Id: I64f5023e8f9f4c49d4d7d08b4ea339af4ac9a7a8
* Update oslo.config from branch 'master'
to 92216ffcca03903a0ede6302e66825d76aca3e7a
- Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I178e86fe8646c0c91b982670c5fd12264c1ee05d
* Update oslo.config from branch 'master'
to 9e82ae1179f0d6cca81c9f80b2f8ea1d3dd72219
- Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.
Sem-Ver: feature
Change-Id: I31fff76861e961754fef2d65a6938e6a028d702b
* Update oslo.config from branch 'master'
to 0c0b7456e9c3a7a2ab36e48da2f07c1231e19f0e
- setup.cfg: Replace dashes with underscores
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: Iceaa69d80eef75db5bac67463a59fd615ae0e895
* Update oslo.config from branch 'master'
to ee29107bcf116fa050fe720988ac6711c18ea931
- Merge "Replace deprecated UPPER_CONSTRAINTS_FILE variable"
- Replace deprecated UPPER_CONSTRAINTS_FILE variable
UPPER_CONSTRAINTS_FILE is old name and deprecated
[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
Change-Id: Ie7971577aeba299aaf9406fc97793d946342eaeb
* Update oslo.config from branch 'master'
to 88c831cfadfe99d6fa75d5dfcd5a871f7d8c7a38
- Fix tests for Python3.
Change-Id: Ifbf6f52a312929ac07154db8eeee976b0ab0d46a
* Update oslo.config from branch 'master'
to 1a7bd66a7179ca374e996e76f346def33787a21f
- Merge "config-generator yaml format doesn't work with i18n fields"
- config-generator yaml format doesn't work with i18n fields
This is because there's no yaml representer for i18n Messages object.
This patch aims to add this representer and allow the generation of
configurations using oslo.i18n strings.
One example of this is cinder.
Closes-bug: #1928582
Change-Id: I70ab87c9bed093cad883b6301b8a09753fc470d9
* Update oslo.config from branch 'master'
to 2e7b39e44349f775da5e89ba57b05c78790b3c90
- Merge "Ussuri+ is python3 only"
- Ussuri+ is python3 only
update python to python3
Change-Id: I83c8c9897678f8a0628987a071adda68062ac515
* Update oslo.config from branch 'master'
to 2cf531152d376d43c6589dec5667f640392cf056
- Merge "setup.cfg: Replace dashes with underscores"
- setup.cfg: Replace dashes with underscores
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: Icc9b9a3af1c8cf58b3a2b9626065cb2fcd074a42
* Update oslo.config from branch 'master'
to d8cf65ddc9b662c48c408d3bf34c28b7a7594694
- Merge "Add the version parameter."
- Add the version parameter.
Call the parent with the version parameter.
Change-Id: I20016e299077a7b678ecabceacb21cc0c7d306c8
* Update oslo.config from branch 'master'
to c879c836d90ce98e6167a0258720a06cd6aadda7
- Merge "Remove references to 'sys.version_info'"
- Remove references to 'sys.version_info'
We support Python 3.6 as a minimum now, making these checks no-ops.
Change-Id: I668c1bddba29a5e823734b1cad5116ba2fdb5f75
* Update oslo.config from branch 'master'
to 6e91dbb2d590fc1706243922c0ed71f6c2fcdf73
- Merge "Adding the missing HostDomain config option"
- Adding the missing HostDomain config option
The ``HostDomain`` config type have been added few months ago [1]
however the config option have been forgotten and this new type
isn't importable.
When we try to import this type without defining a new related cfg
option we get the following issue:
```
AttributeError: module 'oslo_config.cfg' has no attribute 'HostDomain'
```
These changes allow us to import this new type and allow us to use
it in our configs:
```
>>> from oslo_config import cfg
>>> foo = cfg.HostDomain('foo')
>>> foo.type.__call__("1")
...
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "~/oslo.config/oslo_config/types.py", line 893, in __call__
raise ValueError(
ValueError: 1 is not a valid host address
>>> foo.type.__call__("host_name")
'host_name'
```
Also properly initialize HostDomain because The HostDomain class wasn't
calling super in it's __init__() method, which resulted in the type_name not
being set properly for instances of that class.
[1] 6480356928
Change-Id: Ie947803f61ba0ef080018e0447de894a400d7975
Closes-Bug: 1924283
* Update oslo.config from branch 'master'
to 758775c07bc66db3ee6602ecaec53173e89c5acb
- Merge "tests: Add test for config file priority order"
- tests: Add test for config file priority order
This was documented in the docstring but we had nothing to assert it in
tests. Correct that gap.
Change-Id: I4002e7fe18c43eb5f9ba2eae16022d7da87f790d
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Update oslo.config from branch 'master'
to 117c75be7f92876529d27418073ad1c8720d55bc
- Fix formatting of release list
Change-Id: Id0b62cae0e8d738ae379ff63b379b770278e65f2
* Update oslo.config from branch 'master'
to 8b657ae9e31db07f0c4e7d719a16806716c9041a
- Merge "Add Python3 xena unit tests"
- Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.
See also the PTI in governance [1].
[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html
Change-Id: I2e13ad1b86ad303d07f446985e3bb159667c2c0c
* Update oslo.config from branch 'master'
to 47340851d1e6e076c59b3e72f789216454ea6dd2
- Merge "Update master for stable/wallaby"
- Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.
Sem-Ver: feature
Change-Id: Ieef544f34d5291ed300a14801d73e2419f9db0cf
* Update oslo.config from branch 'master'
to cfa256464e519468f227e676e2ca0829bf5c7e02
- Bump minimum version for PyYAML to 5.1
This addresses CVE-2017-18342. I doubt anyone is actually using an
old version of PyYAML with oslo.config at this point, but that means
it shouldn't hurt to bump the minimum either.
Change-Id: I4f440eb9511333ce70db4184857dcbcdd0ed1b97
Closes-Bug: 1839398
* Update oslo.config from branch 'master'
to 80d35d69d49b740288a3fefb016a117530c53cda
- Merge "Move zuul config file to root folder"
- Move zuul config file to root folder
Moving .zuul.d/project.yaml to .zuul.yaml as it is the only file in
that folder and to look similar to other oslo repos.
Change-Id: I787f57e57e5dd83d08dfaecca2405bf064c9f924
* Update oslo.config from branch 'master'
to 05b6a3333603595ef99131286b8ccbf1e48136f7
- inherit from object is not required for py3
Change-Id: I3f3b1dca78e2e9b2515231ccc6600b64f31039fb
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
* Update oslo.config from branch 'master'
to cefa4d47507acfd7a90f6a56b73b4795ba881a52
- Dropping lower constraints testing
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: I83e50eade2cf9924424d763421e464e559c16a08