
When you execute nova-manage commands, oslo logs to the following location (file name is dynamically created based on command name). /var/log/nova/nova-manage.log Because puppet-nova is executing these commands as root, nova-manage.log is owned by root, preventing the 'nova-manage db archive_deleted_rows' entry in nova's crontab from executing. Permission denied: '/var/log/nova/nova-manage.log' This log file is also an outlier, as all other log files in /var/log/nova/ are owned by nova:nova. Similar issues are possible for other nova logs, if for example a nova services is initially started manually as root, so the ownership of all nova logs is corrected before configuring nova. Co-Authored-By: Oliver Walsh <owalsh@redhat.com> Co-Authored-By: Diana Clarke <diana.joan.clarke@gmail.com> Co-Authored-By: Maciej Kucia <maciej@kucia.net> Closes-Bug: #1671681 Change-Id: I0ca0110cbf9139c79074cf603dcab9135f96e765
31 lines
785 B
Puppet
31 lines
785 B
Puppet
# == Class: nova::cell_v2::map_cell0
|
|
#
|
|
# Class to execute nova cell_v2 map_cell0
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*extra_params*]
|
|
# (optional) String of extra command line parameters to pass
|
|
# to the nova-manage command. These will be inserted in
|
|
# the command line between 'nova-manage' and 'cell_v2'.
|
|
# Defaults to ''
|
|
#
|
|
#
|
|
class nova::cell_v2::map_cell0 (
|
|
$extra_params = '',
|
|
) {
|
|
|
|
include ::nova::deps
|
|
include ::nova::params
|
|
|
|
exec { 'nova-cell_v2-map_cell0':
|
|
path => ['/bin', '/usr/bin'],
|
|
command => "nova-manage ${extra_params} cell_v2 map_cell0",
|
|
user => $::nova::params::nova_user,
|
|
refreshonly => true,
|
|
logoutput => on_failure,
|
|
subscribe => Anchor['nova::cell_v2::begin'],
|
|
notify => Anchor['nova::cell_v2::end'],
|
|
}
|
|
}
|