Merge "Remove old workaround to fix wrong owner of nova-manage.log"

This commit is contained in:
Zuul 2022-08-01 12:51:55 +00:00 committed by Gerrit Code Review
commit cdcfe1e087
2 changed files with 0 additions and 19 deletions

View File

@ -127,16 +127,6 @@ class nova::logging(
include nova::deps
include nova::params
if !is_service_default($log_dir) {
# This should force an update the selinux role if the logfile exists.
# It will be incorrect if the file was created by the dbsync exec resources.
file { "${log_dir}/nova-manage.log":
owner => $::nova::params::user,
group => $::nova::params::group,
require => Anchor['nova::service::end']
}
}
oslo::log { 'nova_config':
debug => $debug,
use_stderr => $use_stderr,

View File

@ -69,9 +69,6 @@ describe 'nova::logging' do
:watch_log_file => '<SERVICE DEFAULT>',
:debug => '<SERVICE DEFAULT>',
)
is_expected.to contain_file('/var/log/nova/nova-manage.log').with(
:owner => 'nova',
)
end
end
@ -88,9 +85,6 @@ describe 'nova::logging' do
:watch_log_file => true,
:debug => true,
)
is_expected.to contain_file('/var/log/foo/nova-manage.log').with(
:owner => 'nova',
)
end
end
@ -113,9 +107,6 @@ describe 'nova::logging' do
:instance_uuid_format => '[instance: %(uuid)s] ',
:log_date_format => '%Y-%m-%d %H:%M:%S',
)
is_expected.to contain_file('/var/log/foo/nova-manage.log').with(
:owner => 'nova',
)
end
end