Bug 1435630

Summary: sysstat doesn't collect data for upgraded RHVH
Product: Red Hat Enterprise Virtualization Manager Reporter: Olimp Bockowski <obockows>
Component: imgbasedAssignee: Douglas Schilling Landgraf <dougsland>
Status: CLOSED ERRATA QA Contact: Huijuan Zhao <huzhao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.6CC: cshao, dfediuck, dguo, dougsland, huzhao, jiawu, lsurette, mgoldboi, pstehlik, qiyuan, srevivo, weiwang, yaniwang, ycui, ykaul, yzhao
Target Milestone: ovirt-4.1.2Keywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: imgbased-0.9.23-0.1.el7ev Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-24 11:27:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Olimp Bockowski 2017-03-24 12:23:03 UTC
Description of problem:
sysstat doesn't collect data due to non existing /var/log/sa/ directory. 
It is a consequence of Bug 1382843 "RHV-H 4.0 does not have 'sysstat' installed"
The problem is that upgrade provides installed sysstat package, however this package isn't configured properly, e.g. doesn't create /var/log/sa
Only fresh installation setup everything what is needed for package

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. install for example rhvh-4.0-0.20160817
2. upgrade to rhvh-4.0-0.20170201
3. wait some time to see there is no data collected

Actual results:

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

Expected results:
/var/log/sa/ is created, data is collected

Additional info:
Actually there is easy workaround, just create directory, however I am opening this bug to attract your attention, we could be affected more often by this.
Most of customers doesn't realized sysstat data isn't collected. They realize when open a ticket and performance data is needed.

Comment 3 Huijuan Zhao 2017-04-24 03:28:31 UTC
Test version:
From: rhvh-4.0-0.20160817.0
To:   rhvh-4.1-0.20170421.0
      imgbased-0.9.23-0.1.el7ev.noarch

Steps to Reproduce:
1. Install rhvh-4.0-0.20160817
2. Login rhvh-4.0 and setup local repos, upgrade to rhvh-4.1-0.20170421.0
3. Reboot and login rhvh-4.1-0.20170421.0, wait some time to check /var/log/sa

Test results:
/var/log/sa/ is created, data is collected.

[root@ibm-x3650m5-04 sa]# pwd
/var/log/sa
[root@ibm-x3650m5-04 sa]# ls -lh
total 32K
-rw-r--r--. 1 root root 29K Apr 24 03:40 sa24

So this bug is fixed in imgbased-0.9.23-0.1.el7ev.noarch, change the status to VERIFIED.

Comment 5 errata-xmlrpc 2017-05-24 11:27:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1291