Red Hat Bugzilla – Bug 1278003
SmartState analysis fails for users Last Logon on RHEL7 hosts
Last modified: 2018-06-15 09:57:23 EDT
Description of problem:
SmartState analysis fails for users Last Logon on RHEL7 nodes. When going to a node users list the Last Logon column is empty for all users.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add Openstack Infra Provider
2. Run SSA on the associated nodes
3. Click on one of the nodes
4. Go to Security - Users
The Last Logon column is empty for all users.
The Last Logon column shows the logon times.
Upstream reported issue and investigation regarding /var/log/wtmp parsing:
this is using the image scanning code used by VM smart state to parse the files. Ladas said that he collects the files via SSH but hands off all the parsing to the C code for parsing.
Can you take a look at this?
Ping Ladas if you need more details.
I don't have time to look at this now. The fact that he's using the same code to parse the files may not be relevant - given this has only been reported for host scanning.
New commit detected on ManageIQ/manageiq/master:
Author: Marek Aufart <firstname.lastname@example.org>
AuthorDate: Wed Jun 22 10:57:20 2016 +0200
Commit: Marek Aufart <email@example.com>
CommitDate: Wed Jun 22 16:42:11 2016 +0200
Fix SSA user logon on RHEL7
Smart state analysis failed to read user logon time after
certain amount of logged actions. Reading /var/log/wtmp file
in binary mode fixes it.
gems/pending/metadata/linux/LinuxUsers.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.