Remove old workaround to fix wrong owner of nova-manage.log
Now the nova-maange command are executed by the nova user in all manifests, thus the log file is created/owned by the nova user. Change-Id: I13540f2d252db42d000995853e9827cf5a66cf7f
This commit is contained in:
parent
4466f7cde6
commit
84aca00e03
@ -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,
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user