Logs from discovered but not provisioned nodes are not rotated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Michal Skalski | ||
5.1.x |
Won't Fix
|
Medium
|
Michal Skalski | ||
6.0.x |
Fix Committed
|
High
|
Michal Skalski |
Bug Description
# fuel --f
api: '1.0'
astute_sha: f5fbd89d1e0e1f2
auth_required: true
build_id: 2014-09-17_21-40-34
build_number: '11'
feature_groups:
- mirantis
fuellib_sha: d9b16846e54f76c
fuelmain_sha: 8ef433e939425ea
nailgun_sha: eb8f2b358ea4bb7
ostf_sha: 64cb59c681658a7
production: docker
release: '5.1'
release_versions:
2014.1.1-5.1:
VERSION:
api: '1.0'
astute_sha: f5fbd89d1e0e1f2
build_id: 2014-09-17_21-40-34
build_number: '11'
feature_
- mirantis
fuellib_sha: d9b16846e54f76c
fuelmain_sha: 8ef433e939425ea
nailgun_sha: eb8f2b358ea4bb7
ostf_sha: 64cb59c681658a7
production: docker
release: '5.1'
Logs for discovered but not provisioned nodes are not rotated, and their size constantly growing if nodes don't have assigned roles. Currently pattern in logrotate configuration is:
"/var/log/
"/var/log/
which is responsible for rotating logs in catalogs with name the same as domain name of node ex. node-1.domain.tld - please see more details here: https:/
Rsyslog create catalogs with names the same as senders IPs. Naligun rename this catalogs to corresponding domain names but only after node have assigned role.
I propose to use pattern like this:
"/var/
"/var/log/
this will rotate logs for bootstrapped nodes (catalogs with IP addresses in name) and symlinks (created by nailgun, also IP addresses in name) pointing to domain name catalogs. This pattern will not match domain name catalogs so rotating files in one directory more then once during logrotate run will not occur.
no longer affects: | fuel/6.1.x |
Fix proposed to branch: master /review. openstack. org/138397
Review: https:/