Remove watch_log_file

The option was deprecated during the 2024.2 cycle[1]. Processes may
fail to start when it is set to True[2] so supporting it is no longer
useful.

[1] 31603ac6dacd0b47ec9f02d99bfdd0a7b683119c
[2] b977cb9becbeaaa67bb663bd8db5aa6846e495b9

Change-Id: I5b5f336ce9a02966451669b7764a96e60ad1814d
This commit is contained in:
Takashi Kajinami
2025-04-16 20:57:54 +09:00
parent 8a27457a68
commit 7d5714c218
3 changed files with 4 additions and 11 deletions

View File

@@ -97,12 +97,6 @@
# Defaults to $facts['os_service_default']
# Example: 'Y-%m-%d %H:%M:%S'
#
# DEPRECATED PARAMETERS
#
# [*watch_log_file*]
# (Optional) Uses logging handler designed to watch file system (boolean value).
# Defaults to undef
#
class nova::logging(
$use_syslog = $facts['os_service_default'],
$use_json = $facts['os_service_default'],
@@ -123,8 +117,6 @@ class nova::logging(
$instance_format = $facts['os_service_default'],
$instance_uuid_format = $facts['os_service_default'],
$log_date_format = $facts['os_service_default'],
# DEPRECATED PARAMETERS
$watch_log_file = undef,
) {
include nova::deps
@@ -138,7 +130,6 @@ class nova::logging(
use_journal => $use_journal,
log_dir => $log_dir,
log_file => $log_file,
watch_log_file => $watch_log_file,
syslog_log_facility => $log_facility,
logging_context_format_string => $logging_context_format_string,
logging_default_format_string => $logging_default_format_string,

View File

@@ -0,0 +1,4 @@
---
upgrade:
- |
The ``nova::logging::watch_log_file`` parameter has been removed.

View File

@@ -30,7 +30,6 @@ describe 'nova::logging' do
:log_facility => 'LOG_FOO',
:log_dir => '/var/log/foo',
:log_file => '/var/log/foo/nova.log',
:watch_log_file => true,
:debug => true,
}
end
@@ -81,7 +80,6 @@ describe 'nova::logging' do
:syslog_log_facility => 'LOG_FOO',
:log_dir => '/var/log/foo',
:log_file => '/var/log/foo/nova.log',
:watch_log_file => true,
:debug => true,
)
end