puppet-nova/manifests/cell_v2
Diana Clarke 0d6f9e1074 Correct permissions on the nova logfiles
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
(cherry picked from commit e128ba6538)
2018-04-16 20:01:39 +01:00
..
cell.pp Deprecate nova::cell_v2::cell and add reno for new cell_v2 type. 2017-04-13 10:02:07 +00:00
discover_hosts.pp Correct permissions on the nova logfiles 2018-04-16 20:01:39 +01:00
map_cell0.pp Correct permissions on the nova logfiles 2018-04-16 20:01:39 +01:00
map_cell_and_hosts.pp Correct permissions on the nova logfiles 2018-04-16 20:01:39 +01:00
map_instances.pp Correct permissions on the nova logfiles 2018-04-16 20:01:39 +01:00
simple_setup.pp Fix lint issues to upgrade to puppet-lint 2.3 2017-07-20 20:29:14 +02:00