Bug 1918382
| Summary: | post-kickstart hangs shutting down: "failed deactivating swap" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | David Lee <david.lee> | ||||
| Component: | systemd | Assignee: | David Tardon <dtardon> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Frantisek Sumsal <fsumsal> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 8.3 | CC: | dtardon, msekleta, systemd-maint-list | ||||
| Target Milestone: | rc | ||||||
| Target Release: | 8.0 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2022-07-20 07:27:56 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: | |||||||
| Attachments: |
|
||||||
|
Description
David Lee
2021-01-20 15:28:46 UTC
Is this reproducible? If yes, could you attach the kickstart here? Yes, reproducible. Example. Need a kickstart client machine or VM with small memory (the idea being to ensure that something goes into swap) and any reasonable size kickstart file (typical server or typical workstation). Have some sort of "%post" that will take an elapsed time for allowing monitoring. Something as simple as "sleep 900" (15 minutes) is probably sufficient. Begin to kickstart that client. Once that kickstart is going, e.g. started to install packages, switch to an alternate screen (that offers a linux prompt). (Be comfortable with flipping back and forth between those two screens.) From that alternate screen, monitor swap usage, e.g. "swapon --summary" or similar. Hopefully you will see it occupy some real swap space. When kickstart enters "%post" (e.g. after seeing on the main screen that it has finished its packages), verify swap is occupying real swap space. Then at the alternate console do "swapoff -a" (which triggers asynchronous removal of swap space)... ... and see how SLOWLY that swap use reduces (monitoring with that "swapon --summary" or similar). It is that slowness which is the issue. I hope that helps. (In reply to David Lee from comment #0) > But the shutdown process hangs with a set of six > cycling messages, which include "failed deactivating swap /dev/dm-6" and > similar. What are the other messages? This comes from systemd-shutdown, but it definitely shouldn't cycle infinitely. The unmounting loop should be terminated if nothing has been unmounted/deactivated in the current run. And I see no obvious problems with the code. > Example. Need a kickstart client machine or VM with small memory How small is "small"? Can't you just show your configuration to save us time? After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |