Bug 1272430 - User session open/close counts don't match
User session open/close counts don't match
Status: CLOSED EOL
Product: Fedora
Classification: Fedora
Component: systemd (Show other bugs)
24
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: systemd-maint
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-16 07:50 EDT by Martin Gregorie
Modified: 2016-07-19 15:06 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-19 14:14:24 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Martin Gregorie 2015-10-16 07:50:55 EDT
Description of problem: 

The user session open/close message counts in the logwatch 'systemd-user' report section don't match: if a user has run more than one session during the day the number of 'open's often exceeds the number of 'close's, even when the sessions for that user were all interactive and didn't cross the midnight boundary. The same applies to cron jobs: today a job that started at 02:45 and ended less than a minute later showed an open count of 1 and no close count.   
while a getmail job that is run at 2,17,32 and 47 minutes past the hour (and so is never running over the midnight boundary) and never runs for more than 5 minutes shows 140 opens and 129 closes.

Is this merely a reporting anomaly or does it indicate a deeper problem?


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


How reproducible:

This behavior first showed up under Fedora 22 and has been shown in every logwatch report since the upgrade. My system is dnf updated on a weekly basis.


Steps to Reproduce:
1. Look at the logwatch report


Actual results:

Something like this:

 systemd-user:
    Unknown Entries:
       session opened for user getmail by (uid=0): 140 Time(s)
       session closed for user getmail: 129 Time(s)
       session closed for user gliding: 2 Time(s)
       session closed for user av: 1 Time(s)
       session closed for user root: 1 Time(s)
       session opened for user av by (uid=0): 1 Time(s)
       session opened for user gliding by (uid=0): 1 Time(s)
       session opened for user ma by (uid=0): 1 Time(s)
       session opened for user root by (uid=0): 1 Time(s)


Expected results:

The open and close counts should be the same except for sessions that were running over midnight and don't run every day.

Additional info:
Comment 1 Fedora End Of Life 2016-07-19 14:14:24 EDT
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.
Comment 2 Martin Gregorie 2016-07-19 15:06:06 EDT
This problem has persisted from Fedora 22 through into Fedora 23 and is still currently alive and well. While its not obviously harmful it does show a certain lack of attention to detail by the developer responsible for that code. This would be bad enough if it only appeared when debugging was on, but as logwatch reports every day since I raised the bug have shown mismatched 'session opened' and 'session closed' counts, this doesn't give a good impression....

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