Bug 1402847

Summary: Cannot open /var/log/sa/sa08: No such file or directory
Product: Red Hat Enterprise Linux 6 Reporter: Petr Sklenar <psklenar>
Component: sysstatAssignee: Michal Sekletar <msekleta>
Status: CLOSED NOTABUG QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.8   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-12 14:13:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Sklenar 2016-12-08 13:03:19 UTC
Description of problem:
there is no error with default installation
Cannot open /var/log/sa/sa08: No such file or directory

Version-Release number of selected component (if applicable):
sysstat-9.0.4-33.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. have a default rhel69 installation
2. wait a while


Actual results:
[0 root@qeos-184 ~]# tail /var/spool/mail/root
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: <20161208125001.C3E2221478.eng.rdu2.redhat.com>
Date: Thu,  8 Dec 2016 07:50:01 -0500 (EST)

Cannot open /var/log/sa/sa08: No such file or directory

[0 root@qeos-184 ~]# cat /etc/cron.d/sysstat
# Run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
# 0 * * * * root /usr/lib64/sa/sa1 600 6 &
# Generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A

[0 root@qeos-184 ~]# /usr/lib64/sa/sa1 1 1
Cannot open /var/log/sa/sa08: No such file or directory
[0 root@qeos-184 ~]# rpm -qf /etc/cron.d/sysstat
sysstat-9.0.4-33.el6.x86_64

[0 root@qeos-184 ~]# ls -l /var/log/sa/*
ls: cannot access /var/log/sa/*: No such file or directory



Expected results:
there is no error with default installation

Additional info:

Comment 4 Petr Sklenar 2016-12-12 14:13:10 UTC
its issue in our test environment where /var/log was deleted, sorry for the bug's creation