Commit Graph

78 Commits

Author SHA1 Message Date
Zuul b04509248d Merge "Imported Translations from Zanata" 2024-04-04 01:03:53 +00:00
Takashi Kajinami 31603ac6da Deprecate watch_log_file
This feature has been broken for some time without any actual update
to fix it. Also the pyinotify package used hasn't been updated for 9
years and looks badly unmaintained.

Related-Bug: #1740111
Related-Bug: #2059855
Change-Id: If776fee0072d95737e1c19ad673a3c881a89de06
2024-03-31 05:10:58 +00:00
OpenStack Proposal Bot b45052a704 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic56a0875702143a71fea68a431cc1eeb80feb7ab
2024-03-27 03:34:12 +00:00
Zuul 3e58709e80 Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:15:18 +00:00
OpenStack Release Bot 66285911c0 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: I4f35c60e6b4605bc09eadf51c97ca118221afc21
2024-03-08 14:22:36 +00:00
OpenStack Release Bot f157e2bce9 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: If991ba29c68011a7a1d76b13e7c3abab52d05f9f
2024-03-07 14:16:13 +00:00
Zuul b5b8c30b0d Merge "Deprecate Windows support" 2023-09-08 11:27:29 +00:00
Takashi Kajinami f3693db5ee Deprecate Windows support
Unfortunately the Winstackers project has been retired because of no
maintainers[1][2], and OpenStack on Windows host is no longer
maintained.

[1] https://lists.openstack.org/pipermail/openstack-discuss/2022-November/031044.html
[2] https://review.opendev.org/c/openstack/governance/+/886880

Change-Id: I4ad06af023fb4812dc9c6a15a23c5e85ef6cce8d
2023-09-08 08:25:38 +09:00
OpenStack Release Bot ca1ef3b8c9 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: I8edfee12910034cbff318131654ffe00de8396c9
2023-09-07 09:37:02 +00:00
OpenStack Proposal Bot eaf6089ab2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If54645a47ec9bc193215550f4f37e3f8a3ab131a
2023-05-09 03:43:09 +00:00
OpenStack Release Bot ecfe66faa1 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: I8e979b65ca350f53b6eb795f5d2358c628268425
2023-02-24 15:19:10 +00:00
OpenStack Proposal Bot 15c71dd604 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If528578c75c86ab560b19a53e32fca921c827878
2023-01-28 03:51:07 +00:00
Gorka Eguileor 94b9dc32ec Fix logging in eventlet native threads
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]: 69c715c505

Closes-Bug: #1983863
Change-Id: Iac1b0891ae584ce4b95964e6cdc0ff2483a4e57d
2022-08-08 17:09:50 +02:00
Hervé Beraud 66f9be975c [Fix] init global_request_id if not in context
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
2022-05-11 11:19:32 +02:00
Zuul ebdee7f399 Merge "Log Global Request IDs by default" 2022-04-26 12:21:47 +00:00
Takashi Kajinami 2ba348facb Log Global Request IDs by default
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
2022-04-25 13:02:15 +00:00
Takashi Kajinami 7ed065f38d Add system scope information to default user identity string
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
2022-04-19 17:08:58 +09:00
Zuul f31946fd89 Merge "Fix formatting of release list" 2022-03-22 13:32:05 +00:00
Pierre Riteau cdcc1057ae Fix formatting of release list
Change-Id: Ibd6deb5339129e8f4099bdb1fef48490a8bac093
2022-02-07 14:15:00 +01:00
Alan Bishop 650ce7d313 Use project when logging the user identity
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
2022-02-05 12:58:43 -08:00
xuanyandong 333e9ee27e remove unicode from code
Change-Id: I4e4e6fc55053e9d524620022af442f1313a97446
2021-01-03 16:09:31 +08:00
OpenStack Proposal Bot a029f59dba Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic35ce5b2b13b0d8611d9ee222ec651d352a6831b
2020-10-11 07:43:23 +00:00
Zuul 51324b276a Merge "Adding pre-commit" 2020-09-22 12:34:33 +00:00
OpenStack Release Bot 31914f16aa 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: I59c55e7511840efe49cf08138b5837e3f1dfeeb3
Sem-Ver: feature
2020-09-11 20:58:20 +00:00
Hervé Beraud ad42c89f3b Adding pre-commit
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>
2020-09-08 14:21:18 +02:00
Benjamin Reichel 5b12e66f62 Add missing SYSLOG_FACILITY to JournalHandler
Without SYSLOG_FACILITY log messages from journald forwards the message
to kern.log. This seems to be default behaviour as it treats the message
as kernel message.

This option provides a proper facility to the log message and kern.log
will not be filled up anymore.

Change-Id: I62a32ed46a400b62ead8c1e6e64acee658e2a769
Closes-Bug: #1871840
2020-05-07 14:46:08 +02:00
OpenStack Proposal Bot 50e5983f10 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I6dbd3aaf4049b1dc2e3b6f58d64638525adad2fe
2020-04-16 06:14:33 +00:00
OpenStack Release Bot 14f0294b4c 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: Ib967d61fba1a9617c90b7bb91eabaa59eb3e86ff
Sem-Ver: feature
2020-04-14 10:15:00 +00:00
Stephen Finucane 2dd526d1ed Drop python 2.7 support and testing
Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: If6d6357501dfdff5a5edb53f24104e216607ea00
Sem-Ver: api-break
2020-01-30 16:15:33 +01:00
OpenStack Release Bot 7fcef4b0f5 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: I638b57b529a76135a62ce6606629a474f6b4b4d5
Sem-Ver: feature
2019-09-20 16:33:49 +00:00
pengyuesheng 9222660a46 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: I61f26bed7831cdcce1f33f3981c3e97b018c4c42
2019-07-19 11:22:24 +08:00
OpenStack Release Bot ccf814e476 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: Ifa64f45d74c133e0f588e8356130842dd561a480
Sem-Ver: feature
2019-03-18 14:45:04 +00:00
Ben Nemec 8db5661b05 Fix up nits in log rotation change
Just a couple of doc things that became out of date due to some
code changes during the review process.

Change-Id: I5820f7940d8d32546174da132db5be5a209a2200
2018-11-29 20:50:13 +00:00
Daniel Vincze 22e8a347c8 Add config options for log rotation
On Windows, in-use files cannot be moved or deleted. For this reason,
we need the service itself to take care of rotating logs.

For convenience reasons, we're exposing the built-in rotating log
handlers through a set of config options.

More specifically, we're adding the following new config options:
- log_rotate_interval
- log_rotate_interval_type
- max_logfile_count
- max_logfile_size_mb

Change-Id: I01db4efc08e2cb64db9cbf793f3a159f54859fe7
Closes-Bug: #1802262
2018-11-21 13:46:14 +02:00
Daniel Vincze 74e8e48a95 Add Windows Event Log handler
The Python built-in logging module already provides a Windows Event
Log handler. This change ensures that oslo.log exposes it.

Change-Id: I287260b5046c88c433dfa66064da14faf15610e0
Implements: blueprint windows-event-log
2018-11-05 18:47:03 +02:00
OpenStack Proposal Bot dcf29803ea Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic6649fb0d258b704f6171ef83e6444c1ce239936
2018-08-09 07:19:43 +00:00
OpenStack Release Bot 4623a086ec Update reno for stable/rocky
Change-Id: If22461f4717164f9f2969e0ebb7d51e8196318e7
2018-07-26 12:38:25 +00:00
OpenStack Proposal Bot 98924976e4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I6eb784c27a8bb3f985890c5b88aaa4f762e296ea
2018-03-01 06:25:12 +00:00
OpenStack Proposal Bot be46e57b9b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ia3a9b5c597f43737267e5257f16dd620c26bb7a4
2018-02-07 07:34:57 +00:00
OpenStack Release Bot 578664fe23 Update reno for stable/queens
Change-Id: I13a53e1c8cccd82dfadd36441bd2f6cb32795078
2018-01-24 18:05:36 +00:00
OpenStack Proposal Bot c4abda9b34 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I0ae7f7080897e72a12c2929160baf62a1ab047e0
2018-01-22 06:54:14 +00:00
OpenStack Proposal Bot 97434d48b2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7d5530f39ca49feeb27077c7857a6c41ae4c741c
2017-12-06 07:44:32 +00:00
Zuul a96f9fa772 Merge "JSONFormatter convert unserializable with repr()" 2017-11-30 11:16:27 +00:00
Zuul 1608ad4575 Merge "Capture context in its own key for JSON-based formatters" 2017-11-17 08:51:44 +00:00
Andreas Jaeger 48d0294d56 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: I55fe922abbc2112cda9e1f9d7f2bf542e63d61c9
2017-11-16 21:45:17 +01:00
Juan Antonio Osorio Robles 1b012d0fc6 Capture context in its own key for JSON-based formatters
The JSON formatter used to rely on services making their logging calls
and passing the context there. A call it expted would be

    LOG.debug("Some message", context=context)

This would end up in the "extra" section of the logging record. This is
not usually the case, as projects don't always pass the context on that
call. This also applies to the Fluent formatter which is based on the
JSON one.

For the JSON formatter, we already are getting the context from the
record. So lets use that if no context was provided in the record's
'extra' section. Finally, this places the context in its own section,
which is named 'context'.

Closes-Bug: #1730329
Depends-On: I2b245c1665c3587be3c476b803122788d186e5d5
Change-Id: I765dae17d2ecadce1672f16e432e748d5233acf8
2017-11-14 16:31:28 +00:00
Juan Antonio Osorio Robles bbb193d42c Add release note for use_json option
A recent change [1] added the use_json option to the logging
configuration. It was missing a release note, and this commit adds it.

[1] I1b7b7b9e66215e8e1c59a2c0a37cb0abaebf228a

Change-Id: I57c96c951522a2c6abf1357a18b41644b567b0b2
2017-11-07 09:12:43 +02:00
Victor Stinner 22bd3d5321 JSONFormatter convert unserializable with repr()
The JSONFormatter formatter now converts unserializable objects with
repr() to prevent JSON serialization errors on logging.

The fix requires oslo.serialization 2.21.1 or newer to get the new
fallback parameter of jsonutils.to_primitive().

Closes-Bug: #1593641
Change-Id: Ibda7d145af95903b2bf8d87113804350330a93b4
2017-10-25 17:18:13 +02:00
OpenStack Proposal Bot b52e68acef Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id1022a59bf342769cb5c82e443528670e06b3f96
2017-10-08 06:22:03 +00:00
OpenStack Release Bot 51bb3d2477 Update reno for stable/pike
Change-Id: I99b0f10be31903f9c02558b5e9a78a0d551adbcc
2017-07-28 21:04:56 +00:00