Description of problem: "sysstat" will not collect data, when upgrading RHVH. RHVH-4.4.3 has "sysstat" rpm installed, but it is "inactive". The directory /var/log/sa exists. Version-Release number of selected component (if applicable): RHVH: redhat-virtualization-host-4.4.3-20201210.0.el8_3 How reproducible: 100% Steps to Reproduce: 1. Install redhat-virtualization-host-4.4.3-20201116.0.el8_3 2. Upgrade the host to the latest "redhat-virtualization-host-4.4.3-20201210.0.el8_3" 3. Wait some time to check /var/log/sa Actual results: There is no data collected. # systemctl status sysstat ● sysstat.service - Resets System Activity Logs Loaded: loaded (/usr/lib/systemd/system/sysstat.service; disabled; vendor preset: disabled) Active: inactive (dead) Expected results: Data is collected in /var/log/sa Additional info: # rpm -qa | grep sysstat sysstat-11.7.3-5.el8.x86_64
Seems similar to the chrony issue
I installed redhat-virtualization-host-4.4.3-20201116.0.el8_3 and prior to the upgrade, the sysstat service is inactive. Did you start and enable this service before the upgrade?
(In reply to Asaf Rachmani from comment #2) > I installed redhat-virtualization-host-4.4.3-20201116.0.el8_3 and prior to > the upgrade, the sysstat service is inactive. > Did you start and enable this service before the upgrade? Yes, I manually started this service before the upgrade. But its status will still become inactive after upgrade. By the way, after installing RHVH, the default state of this service, should it be active?
I tried again, if manually started this service and enable it before upgrade, then after the upgrade, its status is active. Test steps: 1. Install redhat-virtualization-host-4.4.3-20201210.0.el8_3 2. Started the service and enable it # systemctl restart sysstat # systemctl enable sysstat 3. Upgrade the host to the latest build "redhat-virtualization-host-4.4.4-20210106.0.el8_3" 4. Check the service status ~~~~~~ # systemctl status sysstat ● sysstat.service - Resets System Activity Logs Loaded: loaded (/usr/lib/systemd/system/sysstat.service; enabled; vendor preset: disabled) Active: active (exited) since Tue 2021-01-19 11:35:21 UTC; 1min 37s ago Process: 1622 ExecStart=/usr/lib64/sa/sa1 --boot (code=exited, status=0/SUCCESS) Main PID: 1622 (code=exited, status=0/SUCCESS) Tasks: 0 (limit: 199424) Memory: 0B CGroup: /system.slice/sysstat.service Jan 19 11:35:21 localhost.localdomain systemd[1]: Starting Resets System Activity Logs... Jan 19 11:35:21 localhost.localdomain systemd[1]: Started Resets System Activity Logs. ~~~~~~ Should this service be started and enabled after installation, or should it be manually started and enabled as in the above test?
(In reply to peyu from comment #4) > I tried again, if manually started this service and enable it before > upgrade, then after the upgrade, its status is active. > > Test steps: > 1. Install redhat-virtualization-host-4.4.3-20201210.0.el8_3 > 2. Started the service and enable it > # systemctl restart sysstat > # systemctl enable sysstat > 3. Upgrade the host to the latest build > "redhat-virtualization-host-4.4.4-20210106.0.el8_3" > 4. Check the service status > ~~~~~~ > # systemctl status sysstat > ● sysstat.service - Resets System Activity Logs > Loaded: loaded (/usr/lib/systemd/system/sysstat.service; enabled; vendor > preset: disabled) > Active: active (exited) since Tue 2021-01-19 11:35:21 UTC; 1min 37s ago > Process: 1622 ExecStart=/usr/lib64/sa/sa1 --boot (code=exited, > status=0/SUCCESS) > Main PID: 1622 (code=exited, status=0/SUCCESS) > Tasks: 0 (limit: 199424) > Memory: 0B > CGroup: /system.slice/sysstat.service > > Jan 19 11:35:21 localhost.localdomain systemd[1]: Starting Resets System > Activity Logs... > Jan 19 11:35:21 localhost.localdomain systemd[1]: Started Resets System > Activity Logs. > ~~~~~~ > > Should this service be started and enabled after installation, or should it > be manually started and enabled as in the above test? Should be enabled and started after installation.
This issue has been solved on "redhat-virtualization-host-4.4.5-20210204.0.el8_3". Test steps: 1. Install RHVH-4.4-20210202.0-RHVH-x86_64-dvd1.iso 2. Upgrade the host to the latest "redhat-virtualization-host-4.4.5-20210204.0.el8_3" 3. Wait some time to check /var/log/sa Actual results: Data has been collected. ~~~~~~ # ll /var/log/sa total 4 -rw-r--r--. 1 root root 1044 Feb 8 02:21 sa08 # systemctl status sysstat ● sysstat.service - Resets System Activity Logs Loaded: loaded (/usr/lib/systemd/system/sysstat.service; enabled; vendor preset: enabled) Active: active (exited) since Mon 2021-02-08 02:21:21 UTC; 2min 2s ago Process: 1665 ExecStart=/usr/lib64/sa/sa1 --boot (code=exited, status=0/SUCCESS) Main PID: 1665 (code=exited, status=0/SUCCESS) Tasks: 0 (limit: 199404) Memory: 0B CGroup: /system.slice/sysstat.service Feb 08 02:21:20 localhost.localdomain systemd[1]: Starting Resets System Activity Logs... Feb 08 02:21:21 localhost.localdomain systemd[1]: Started Resets System Activity Logs. ~~~~~~ Move the bug status to "VERIFIED".
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 (Important: Red Hat Virtualization security, bug fix, and enhancement update), 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/RHSA-2021:1189