Bug 1907306 - "sysstat" doesn't collect data for upgraded RHVH
Summary: "sysstat" doesn't collect data for upgraded RHVH
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: imgbased
Version: 4.4.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.4.5
: ---
Assignee: Asaf Rachmani
QA Contact: peyu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-14 08:03 UTC by peyu
Modified: 2021-05-27 06:58 UTC (History)
11 users (show)

Fixed In Version: redhat-release-virtualization-host-4.4.5-2.el8ev
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-14 11:44:48 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:1189 0 None None None 2021-04-14 11:48:55 UTC
oVirt gerrit 114815 0 master MERGED Enable sysstat.service 2021-05-20 06:57:40 UTC
oVirt gerrit 114969 0 ovirt-4.4 MERGED Enable sysstat.service 2021-05-27 08:30:13 UTC

Description peyu 2020-12-14 08:03:17 UTC
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

Comment 1 Sandro Bonazzola 2020-12-15 08:42:54 UTC
Seems similar to the chrony issue

Comment 2 Asaf Rachmani 2021-01-18 15:25:35 UTC
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?

Comment 3 peyu 2021-01-19 01:57:31 UTC
(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?

Comment 4 peyu 2021-01-19 11:55:38 UTC
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?

Comment 5 Asaf Rachmani 2021-01-24 17:09:28 UTC
(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.

Comment 7 peyu 2021-02-08 02:41:46 UTC
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".

Comment 16 errata-xmlrpc 2021-04-14 11:44:48 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 (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

Comment 17 errata-xmlrpc 2021-04-14 11:48:30 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 (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


Note You need to log in before you can comment on or make changes to this bug.