no logrotation on in /var/log/gnocchi (in gnocchi container)

Bug #1762051 reported by Marek Grudzinski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Expired
Undecided
Unassigned

Bug Description

Seems like there is no rotation on /var/log/gnocchi/* in gnocchi containers.

Files are:
  - gnocchi-access.log
  - gnocchi-apache-error.log
  - gnocchi-metricd.log

Observed in stable/pike on Ubuntu (16.04).

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

All these logs are named *.log and should be taken care by the rsyslog_client role which handles the log rotation setup.

Could you paste the os_gnocchi-install.yml playbook run, please?

Changed in openstack-ansible:
status: New → Incomplete
Revision history for this message
Marek Grudzinski (ivve) wrote :

Seems like the defaults in the os-gnocchi role ends up in this state in my test deploy (3 controllers, im begining to think it probably work perfectly with 1x due to driver = file).
I also happen to run ceph so I switched the driver to ceph and added necessary variables to enable ceph_client role properly.

#example user_variables.yml

...
gnocchi_storage_driver: ceph
gnocchi_ceph_username: gnocchi
gnocchi_ceph_pool: metrics
ceph_extra_components:
  - component: gnocchi_api
    package:
      - "{{ python_ceph_package }}"
    client:
      - '{{ gnocchi_ceph_client }}'
    service: '{{ ceph_gnocchi_service_names }}'
...

This enabled the rest of the tasks to run properly.
After rerunning os-gnocchi role the logrotation file properly appears: /etc/logrotate.d/gnocchi_log_rotate

Is the file driver supposed to work with 3x controllers?

Revision history for this message
Marek Grudzinski (ivve) wrote :

This has probably something to do with storage driver file (or other default associated with the storage driver when using more than 1x controller node).
Changing it to ceph (and possible other storage drivers) fixes this problem.

See: https://bugs.launchpad.net/openstack-ansible/+bug/1750236

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openstack-ansible because there has been no activity for 60 days.]

Changed in openstack-ansible:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.