- 04 Jun, 2021 1 commit
-
-
David Vallee Delisle authored
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 (cherry picked from commit e5fc313e) (cherry picked from commit de1dbeed)
-
- 19 May, 2021 2 commits
-
-
Hervé Beraud authored
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] https://opendev.org/openstack/oslo.config/commit/6480356928c9ae6169ea1e5a5b5f1df3d6e0dc75 Change-Id: Ie947803f61ba0ef080018e0447de894a400d7975 Closes-Bug: 1924283 (cherry picked from commit 1074937e) -
likui authored
[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html Co-Authored-By:
Moisés Guimarães de Medeiros <moguimar@redhat.com> Change-Id: I407b2c9bc6e9c1cd5b070a1cdca7c0eabe19b0ca (cherry picked from commit 50723fa8)
-
- 03 Nov, 2020 1 commit
-
-
Zuul authored
-
- 23 Oct, 2020 1 commit
-
-
Hervé Beraud authored
HostDomain is like HostAddress with the support of _ character - RFC1033 openstack services are failing to start when a hostname with underscore _ is provided. Example: ``` overcloud-novacompute_edge1-0.internalapi.localdomain overcloud-novacompute_edge1-0.internalapi ``` Nova use `HostAddressOpt` to define `live_migration_inbound_addr`, and if a hostname with underscore is present in the config file then the service fail to start. Example: ``` /etc/nova/nova.conf live_migration_inbound_addr = overcloud-novacompute_edge1-0.internalapi.localdomain ``` FQDN is a domain name that specifies its exact location in the tree hierarchy of the Domain Name System (DNS). Underscore are allowed by RFC1033 [1][2][3]. Indeed, while a hostname may not contain other characters, such as the underscore character (_), other DNS names may contain the underscore.[1][2]. Systems such as DomainKeys and service records use the underscore. These changes allow us to use underscore with the `HostDomain`. [1] https://www.ietf.org/rfc/rfc1912.txt [2] https://www.ietf.org/rfc/rfc1033.txt [3] http://domainkeys.sourceforge.net/underscore.html Co-authored-by:
Daniel Bengtsson <dbengt@redhat.com> Change-Id: I0a0670207f96a987996d329e5efa9a5eb2ce000c Closes-Bug: #1892044 (cherry picked from commit 64803569)
-
- 22 Sep, 2020 1 commit
-
-
Stephen Finucane authored
This is necessary to enable parallel builds. As noted in the Sphinx docs [1], this method has the following function: Merge in data regarding docnames from a different domaindata inventory (coming from a subprocess in parallel builds). Given how simple the datatypes we're storing are, this is pretty easy to implement. [1] https://www.sphinx-doc.org/en/master/extdev/domainapi.html#sphinx.domains.Domain.merge_domaindata Change-Id: I46c7903b159f99c68896a4c3c4d20daef848f9c2 Signed-off-by:
Stephen Finucane <sfinucan@redhat.com> Closes-Bug: #1895162 (cherry picked from commit 01f63b87)
-
- 11 Sep, 2020 2 commits
-
-
OpenStack Release Bot authored
Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/victoria branch, tests will continue to use the upper-constraints list on master. Change-Id: I38cd3eb1cb289f6214f1b17c071a6611615a03eb
-
OpenStack Release Bot authored
Change-Id: Ibfb0e4deb7206c11e78854528de802293a16a9fb
-
- 24 Jul, 2020 1 commit
-
-
Moisés Guimarães de Medeiros authored
This patch bumps bandit allowed version to >=1.6.0,<1.7.0 in order to avoid the errors detailed here https://github.com/PyCQA/bandit/pull/393 Change-Id: Iec3897279cf81f951225f463450c6a1efd028b0b Signed-off-by:
Moisés Guimarães de Medeiros <moguimar@redhat.com>
-
- 23 Jul, 2020 1 commit
-
-
yatinkarel authored
stevedore has switched to importlib_metadata[1] and this breaked unit test as the test relied on internal implementation of it. Instead we should switch to mock NamedExtensionManager that's what called by oslo_config. [1] https://review.opendev.org/#/c/739306/ Closes-Bug: #1888208 Change-Id: Ic4b990a387d875a351c9f8e7eaaef726734ff305
-
- 05 Jul, 2020 1 commit
-
-
Doug Hellmann authored
Importing pkg_resources scans all of the installed modules for data that won't be used. Switch to using importlib.metdata, which more efficiently loads the metadata for a package. Change-Id: Idd2a0d0026fef9296172c9995b428ea43a746483 Signed-off-by:Doug Hellmann <doug@doughellmann.com>
-
- 01 Jul, 2020 1 commit
-
-
Zuul authored
-
- 09 Jun, 2020 1 commit
-
-
Sean McGinnis authored
This updates lower constraints to versions that will work with py38 so that when we move to running on focal nodes, which has py38 as its default py3 runtime, the lower-constraints job will continue to pass. It also cleans out some secondary requirements that are no longer needed due to our direct dependencies being updated. Linters are removed that are kept in the global requirements blacklist as those are not version tracked and are not relevant for our lower-constraints unit test runs. Change-Id: Ied58e8aeb700c15354f1c040b2623f498d636061 Signed-off-by:Sean McGinnis <sean.mcginnis@gmail.com>
-
- 08 Jun, 2020 1 commit
-
-
Zuul authored
-
- 04 Jun, 2020 1 commit
-
-
melissaml authored
New theme of docs respects pygments_style. more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html Change-Id: I88f448ac7fc7fb72187eb7bdad5bf19f327d8641
-
- 27 May, 2020 1 commit
-
-
Stephen Finucane authored
These are used when declaring an option with a custom type. There's no reason they shouldn't be handled and indeed they are albeit with an ugly warning. Resolve this by making this handling explicit. Change-Id: Ib7a6f26496cf19777b020c12998e953e9aae4601 Signed-off-by:Stephen Finucane <sfinucan@redhat.com> Closes-bug: #1880852
-
- 26 May, 2020 1 commit
-
-
Zuul authored
-
- 25 May, 2020 2 commits
- 22 May, 2020 2 commits
- 19 May, 2020 2 commits
-
-
Sean McGinnis authored
This raises hacking to a newer version, fixes a few issues the newer version uncovered, and removes the cap for flake8 to allow that version to be controlled by the hacking constraints. Change-Id: Ie550119322bca3c217e4a74eca789f156cfa7e2c Signed-off-by:Sean McGinnis <sean.mcginnis@gmail.com>
-
Zuul authored
-
- 16 May, 2020 1 commit
-
-
jacky06 authored
Python modules related to coding style checks (listed in blacklist.txt in openstack/requirements repo) are dropped from lower-constraints.txt as they are not actually used in tests (other than pep8). more info: https://github.com/openstack/requirements/blob/master/blacklist.txt Change-Id: If14b70ceb1642ba3b81385a49fb0686be7628a2d
-
- 14 May, 2020 1 commit
-
-
Zuul authored
-
- 12 May, 2020 1 commit
-
-
Sean McGinnis authored
The 3.8.0 version introduces some checks that cause failures with the current code. To avoid that, this caps flake8 to a version that had been tested withouth errors so hacking does not pull in a newer version. We will likely want to raise hacking to 3.x and drop this cap, but to make it easy to backport to stable branches, taking this approach first. Change-Id: I2a539263e8cfc7d15243d78e20b70b8ed763b8fd Signed-off-by:Sean McGinnis <sean.mcginnis@gmail.com>
-
- 04 May, 2020 4 commits
-
-
Zuul authored
-
Zuul authored
-
Hervé Beraud authored
Related to: - https://review.opendev.org/#/c/723044/ - https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html Change-Id: I52f370b5f1b2b956f7482139d9b4877cce502a98
-
caoyuan authored
it should be removed in https://review.opendev.org/#/c/687355/ but missing Change-Id: I45351e5913801982e93bd386ffb6d6a8845f03e6
-
- 01 May, 2020 2 commits
-
-
Stephen Finucane authored
oslo config code treat treats the '$' as a special character and it needs to be delimited when using within a string. There are two ways of doing this, '$$' or '\$'. We document the former but not the latter. Fix this. Change-Id: I37cdf31ba1c2924779a46b1a2eeabb66c46a2212 Signed-off-by:Stephen Finucane <sfinucan@redhat.com> Closes-Bug: #1872839
-
Stephen Finucane authored
As discussed in bug 1841038, configuring a StrOpt with a regex parameter and providing an invalid environment variable will result in an ugly stacktrace due to an undefined 'alt_loc' variable. Resolve this by creating said variable. Change-Id: Id0fb6efdc435a2bd88d5dfea2b4720df453fbfec Signed-off-by:Stephen Finucane <sfinucan@redhat.com> Closes-Bug: #1841038
-
- 21 Apr, 2020 1 commit
-
-
Zuul authored
-
- 17 Apr, 2020 1 commit
-
-
Zuul authored
-
- 16 Apr, 2020 1 commit
-
-
Hervé Beraud authored
Change-Id: Ife6a9f6ff6116fda3bbb5b6a5987096f22b6f5a9
-
- 14 Apr, 2020 3 commits
-
-
Sean McGinnis authored
This adds the return of some metadata to our sphinx extension setup to indicate they are thread safe. This is needed to allow consuming projects to do multithreaded docs builds. In some cases, this can save a noticeable amount of time in job execution. Change-Id: I53a580b336a49372e27b69d009da555c03f03e35 Signed-off-by:Sean McGinnis <sean.mcginnis@gmail.com>
-
OpenStack Release Bot authored
This is an automatically generated patch to ensure unit testing is in place for all the of the tested runtimes for victoria. See also the PTI in governance [1]. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: Ifa363aba4403932ce34a721b668ac2f878fe1ef5
-
OpenStack Release Bot authored
Add file to the reno documentation build to show release notes for stable/ussuri. Use pbr instruction to increment the minor version number automatically so that master versions are higher than the versions on stable/ussuri. Change-Id: I0562aab55c319fd46f5db73246e25233fc4700a7 Sem-Ver: feature
-
- 13 Apr, 2020 1 commit
-
-
Sean McGinnis authored
This now fails with the newest Sphinx due to multiple entries between the added reference to the class's docstrings, and the docstrings themselves. This fixes the warnings by just removing the duplication. Change-Id: I284a49a5df9506f936ebf1846688339c94d9a6b8 Signed-off-by:Sean McGinnis <sean.mcginnis@gmail.com>
-
- 31 Mar, 2020 1 commit
-
-
Sean McGinnis authored
Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I2f8067eeb2aec62f098bfbb3770a67f1876ce7a2 Signed-off-by:Sean McGinnis <sean.mcginnis@gmail.com>
-