Bug 2047187
Summary: | [spec] user slice unit can fail on logout - invalid unit | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Steve Traylen <steve.traylen> |
Component: | systemd | Assignee: | David Tardon <dtardon> |
Status: | CLOSED MIGRATED | QA Contact: | Frantisek Sumsal <fsumsal> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | CentOS Stream | CC: | bstinson, djuarezg, dtardon, jwboyer, mezhang, msekleta, systemd-maint-list |
Target Milestone: | rc | Keywords: | Improvement, MigratedToJIRA, Triaged |
Target Release: | --- | Flags: | pm-rhel:
mirror+
|
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-09-21 11:27:39 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Steve Traylen
2022-01-27 11:13:22 UTC
This is probably user sessions that were started before systemd was upgraded. Can the existing systemd --user instances be respawned by calling `systemctl --user daemon-reexec` or something on package upgrade. (In reply to Steve Traylen from comment #1) > This is probably user sessions that were started before systemd was upgraded. Yes. > Can the existing systemd --user instances be respawned by calling `systemctl > --user daemon-reexec` or > something on package upgrade. Doing it for all active user instances is not that simple. Unless I'm missing something, we'd have to do something like the following (which probably works, but it isn't pretty): for u in $(systemctl show -P User user@*); do runuser $(id -un $u) -c 'systemctl --user daemon-reexec' done *** Bug 2086989 has been marked as a duplicate of this bug. *** Actually there is a simpler way to reexec all user managers than the one I proposed in comment 2: systemctl kill -s SIGRTMIN+25 $(systemctl show -P Id user@*) The root cause for this is a change in the way exit from an user session is done that happened between systemd-239-43 and 239-44. But the new way--use of SuccessAction=exit-force in systemd-exit.service--is only recognized by updated systemd. Because we don't reexec user instances on update, any such instance that had been started before systemd was updated still runs old systemd. Hence the user session fails to exit itself and is eventually killed by timeout. But there's practically no harm from this: only the timeout and the user instance being in failed state. It doesn't affect the system's operation in any way. The user can log in again without any problem--and will be running the updated systemd if they do, thus the issue won't happen again. Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |