Commit Graph

61 Commits

Author SHA1 Message Date
Zuul cac8283414 Merge "reno: Update master for unmaintained/xena" 2024-03-12 14:24:05 +00:00
Zuul 46cc22b327 Merge "reno: Update master for unmaintained/wallaby" 2024-03-12 14:14:48 +00:00
Zuul c2e728e756 Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:08:34 +00:00
OpenStack Release Bot 4c767edd29 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
2024-03-08 14:22:04 +00:00
OpenStack Release Bot 8c849f39c9 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I39a334e0e59e5be0541d37de315fcbe87a37e213
2024-03-07 14:25:00 +00:00
OpenStack Release Bot b05228a683 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: Ief7f8fe010eeccc287da6a5bd64eea0594690765
2024-03-07 14:20:47 +00:00
OpenStack Release Bot 648f979e65 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Ia08f46398484e07ad3a9b86f12aca5eea83ea185
2024-03-07 14:15:12 +00:00
OpenStack Release Bot 882adf8e4d reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Ia5a36f66e06bcc64cd35aff57ce00809a31507c8
2024-02-06 14:27:27 +00:00
Philippe SERAPHIN 83bbc0df43 Add choices parameter for IntOpt class
Change-Id: Ic9e9a2fd7d1229616387a6a9d61f8a5b8f32829f
2023-12-20 10:17:52 +01:00
OpenStack Release Bot bfc32d5ad8 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
2023-09-07 09:36:12 +00:00
OpenStack Release Bot 1654dcc91c 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
2023-02-24 15:16:54 +00:00
OpenStack Release Bot 19e1be5564 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
2022-09-09 09:16:09 +00:00
OpenStack Release Bot 8255914856 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
2022-03-04 17:17:33 +00:00
OpenStack Release Bot 9e82ae1179 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
2021-09-10 14:33:57 +00:00
Zuul 6e91dbb2d5 Merge "Adding the missing HostDomain config option" 2021-04-26 15:51:48 +00:00
Hervé Beraud bb5e4cbeb9 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
2021-04-22 12:31:48 +02:00
Pierre Riteau 117c75be7f Fix formatting of release list
Change-Id: Id0b62cae0e8d738ae379ff63b379b770278e65f2
2021-04-16 14:19:54 +02:00
Zuul 56f819898b Merge "remove unicode from code" 2021-04-16 12:03:36 +00:00
xuanyandong 604bde417b remove unicode from code
Change-Id: I062829a44a62014e88f285a82b6800e37f00ff28
2021-04-16 11:17:19 +08:00
OpenStack Release Bot b624ccc97d 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
2021-03-18 11:14:33 +00:00
David Vallee Delisle f2ca66fdc9 Adding --check-defaults to validator
When troubleshooting, it's often interesting to see the deltas between
the default or sample configs and the running configuration. The
oslo_config.validator is a great tool to integrate this feature across
all projects. It can also be easily captured by data collection tools
like sosreports with the current deployment packages.

Change-Id: I172d82f19a81282093b0d5f7ae4c1817801cd887
Signed-off-by: David Vallee Delisle <dvd@redhat.com>
2020-11-24 13:55:33 -05:00
Zuul 8f667f8e3d Merge "Add a new type HostDomain." 2020-10-22 18:16:44 +00:00
Hervé Beraud 6480356928 Add a new type HostDomain.
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
2020-10-22 12:30:39 +02:00
OpenStack Release Bot 77ce4b54d0 Update master for stable/victoria
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: I59fa3a4e5ced137e61b8c08d63995d2a20693a92
Sem-Ver: feature
2020-09-11 20:56:35 +00:00
melissaml bfec5fd629 Fix pygments style
New theme of docs respects pygments_style.

more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I88f448ac7fc7fb72187eb7bdad5bf19f327d8641
2020-06-04 16:00:30 +08:00
OpenStack Release Bot 881b2e64a2 Update master for stable/ussuri
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
2020-04-14 10:13:29 +00:00
Hervé Beraud ccb2fcd1e5 reword releasenote for py27 support dropping
Change-Id: I39fbf54eb74843cd268c8cbac0a372927fff00e7
2020-02-06 12:30:40 +01:00
Stephen Finucane 4e071eb034 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in Ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I13ce8e8264679a19c7b108381ccb969573ea9ac6
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Sem-Ver: api-break
2020-02-03 15:12:02 +00:00
Dolph Mathews 18d1617caa Assume positional arguments are required
The 'positional' keyword specifically applies to oslo.config's argparse
support. Unlike oslo.config, argparse assumes that all positional
arguments are required by default, and you have to explicitly tell it
that a positional argument is optional if you'd like to opt into that
behavior.

This patch adopts that same behavior for oslo.config. When you define an
option to be non-positional (oslo.config's default, designed for config
files), then oslo.config makes that option optional:

However, when you define an option to be positional, oslo.config assumes
that the option is primarily going to be used on the CLI and thus sets
it as required, by default.

This change in behavior has the side effect of allowing argparse to
enforce required arguments on the CLI *while* parsing arguments, instead
of depending on oslo.config to detect the condition *after* argparse has
been allowed to parse "invalid" arguments. argparse correctly raises a
SystemExit in this case, and prints the actual command usage and a "hey,
you forgot this required argument", instead of allowing oslo.config to
dump a backtrace to the CLI with a context-less error message
("context-less" in that no useful CLI usage information is dumped along
with the crash to help you correct the condition).

Change-Id: Ifdc6918444fe72f7e1649483c237cce64b4c72d8
Partial-Bug: 1676989
2017-03-30 18:24:31 +00:00
OpenStack Release Bot a6302e4600 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: Id19c6dca83057a9ab63d0947ff508f97811c0499
Sem-Ver: feature
2019-09-20 16:31:06 +00:00
pengyuesheng 039fdae7d2 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Iac913e9dea8318ad8398ed7478cb66d845fe7f1e
2019-08-01 09:46:12 +08:00
Ben Nemec c30d9c0a08 Add exclude-groups option to config validator
When dynamic groups are used, the sample config data may not know
about those group names. As a result, validation of such files will
always fail. This makes it hard to automate config checks since the
output would need to be inspected manually to verify that the missing
options are all from the dynamic group.

Ideally, we would provide some way to map sample config groups to
the dynamic group name used in the actual config, but that would be
more complicated and still might not work in every case if a project
doesn't include sample sections for a dynamic group (although they
_should_ be doing so).

Allowing certain group names to be excluded from validation lets
us to solve this problem in a simple way and maintain validation of
99%[0] of the config options and enables the validation to be scripted
since it won't need manual verification of the error output.

Change-Id: I352fd48f86ecb876fe26a5e50e9a2633af1fff3d
0: citation needed ;-)
2019-03-26 20:00:00 +00:00
OpenStack Release Bot 3379af9ff5 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I2eea7c9f90cc08b8ae451af07259d0cf594d756a
Sem-Ver: feature
2019-03-18 14:44:10 +00:00
Zuul 4e0e72d480 Merge "Add support for looking in environment for config" 2018-11-02 19:58:06 +00:00
Chris Dent ea8a0f6a8b Add support for looking in environment for config
An _environment source is added that looks in os.environ for
values.

Using the environment is on by default, but can be shut down
by setting `use_env` to False when __call__ is called.

The enviroment is inspected before any other sources
of config data but the value is used after command line
arguments and before config file options.

This is done by checking both the command line and config
files and then inspecting the location of the result. If
it is command_line, we use it. If not, we use the environment
value (if any). If there's no environment value, the config
file value is used. If checking the command line and config
file results in a KeyError, the environment value is used,
if set.

The names of the environment variables follow the rules
described in oslo_config.sources._environment.

A new exception has been added: ConfigSourceValueError, this
is the superclass of the existing ConfigFileValueError. The
code in _do_get has been updated to only use
ConfigFileValueError when it is in fact a file from whence a
ValueError came.

Documentation has been updated and a rlease note created to
indicate the new functionality.

Change-Id: I3245c40ebdcc96f8e3b2dc0bab3b4aa71d07ad15
2018-10-17 20:49:05 +01:00
Zuul 8449a0444c Merge "Add release note and documentation for config validator" 2018-10-08 11:40:07 +00:00
Ben Nemec 1f17b823e0 Add release note and documentation for config validator
Change-Id: Id23d7bbb38c6780621f09b2e24c0cc88831bdb1a
2018-09-26 19:49:43 +00:00
OpenStack Release Bot 7da0446edb Update reno for stable/rocky
Change-Id: I528e65230c065a1d03f856e252106d8648af5397
2018-07-26 12:37:28 +00:00
Ben Nemec 5f8b0e0185 Optionally use oslo.log for deprecated opt logging
While we can't add a hard dependency on oslo.log because it uses
oslo.config, in most cases oslo.log will be installed anyway.  In
the interest of being able to make use of features like
fatal_deprecations in oslo.log, let's use it if it's available.

Change-Id: If9499aa6fc28a6b92447b3825d3ca1957cb2255a
2018-06-21 14:50:47 +00:00
OpenStack Release Bot 5b6f9e76d0 Update reno for stable/queens
Change-Id: Ib0cbc3e30f7355ca975caa11d7df3d67dcb3784d
2018-01-24 18:04:22 +00:00
Stephen Finucane bc9b7f5d2f Provide descriptions for choices
Nova uses a common pattern for choices where a 'choices' parameter is
provided and the choices are later documented in the help text. This
frequently leads to code and docs getting out-of-sync and requires
authors to be consistent in how they write option descriptions.
Eliminate the need to do this by allowing users to describe the choices
in the same place as the choices are declared.

Change-Id: Ic084b04ebf232fb72c9c05bbea3a216391b15c83
2017-12-13 14:33:03 +00:00
Andreas Jaeger eb6ff02d4b 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: I84611e79a2cf4838751b43bd39ceb2d60743fb28
2017-11-16 21:42:57 +01:00
OpenStack Release Bot c934504563 Update reno for stable/pike
Change-Id: I66f64cef39693c0c03521b921f00dde9f2dd3813
2017-07-28 21:04:39 +00:00
Doug Hellmann 675d62220c switch from oslosphinx to openstackdocstheme
Change-Id: I13211d11ae96a8bbc5f8bbb958473dbcf6e4c844
Depends-On: Ifc5512c0e2373cf3387e0e0498268eab092e52bb
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-06-29 14:35:34 -04:00
Ben Nemec a29c084cb1 Machine Readable Sample Config
Adds the ability for the sample config generator to output the
config data in the machine readable formats yaml and json.

bp machine-readable-sample-config

Change-Id: I236918f0c1da27358aace66914aae5c34afef301
Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
2017-06-01 20:47:01 +00:00
Doug Hellmann 12fd34b963 add deprecation_reason to log message
When we log the warning that an option is deprecated for removal,
include the reason if we have one. Previously the deprecation reason was
only visible in the sample configuration file.

Add some tests for the log messages emitted when deprecated options are
used.

Change-Id: I5e309a3651041580fdf529ff31e18bbd90714f35
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-04-25 11:01:42 -04:00
OpenStack Release Bot 73b68c0b27 Update reno for stable/ocata
Change-Id: I8cf513a719f766c6aff8f6c79b4290f9e1fa6757
2017-01-20 19:15:17 +00:00
Jenkins bb8846a3ab Merge "Fixing HostName and adding support for HostAddress" 2016-12-07 06:35:28 +00:00
Dharini Chandrasekar babff882c0 Fixing HostName and adding support for HostAddress
When config options in different projects use IPOpt as the opt's
type, it restricts operators to only IP addresses.
When the opt is set to HostnameOpt type, currently even an
incomplete or invalid IP passes as a valid hostname. Also, currently
HostnameOpt does not make sure that there is a presense of at least one
non-numeric character in the provided host name.

According to RFC 1123, (https://tools.ietf.org/html/rfc1123),
a valid host name can never have the dotted-decimal form #.#.#.#,
since at least the highest-level component label will be alphabetic.

This patch fixes the existing Hostname Opt to abide by the stated RFC
and also adds a new opt type that would enable operators to provide
either a hostname or an IP and at the same time perform checks on
both IPOpt type and HostnameOpt type, by setting opt type to
"HostAddressOpt" type. This would ensure that an invalid IP does
not pass as a valid hostname and at the same time retains the rules
required to be followed for the validation of an acceptable hostname.

Change-Id: I77bdb64b7e6e56ce761d76696bc4448a9bd325eb
Closes-Bug: #1619044
Closes-Bug: #1615028
2016-12-07 03:27:45 +00:00
Thomas Bechtold f24b04ea87 Add defaults for config-dir
If no --config-dir switches are given on the command
line, use default directories to search for config
snippets.
This is similar to the default config-file support
oslo.config already includes. It is useful in environments
where command line arguments can not easily be added, like
mod_wsgi Apache envs.

Change-Id: I4df977911539777d1510e8b579375aca5b5f15f4
2016-11-30 06:58:12 +01:00