Bug 2131963
| Summary: | [spec] remote-cryptsetup.target is disabled in "guest" image | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Marius Vollmer <mvollmer> |
| Component: | systemd | Assignee: | Jan Macku <jamacku> |
| Status: | CLOSED MIGRATED | QA Contact: | Frantisek Sumsal <fsumsal> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.4 | CC: | dtardon, hartsjc, jamacku, systemd-maint-list |
| Target Milestone: | rc | Keywords: | Bugfix, MigratedToJIRA, Reproducer, 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 12:19:35 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
Marius Vollmer
2022-10-04 09:59:07 UTC
This bugs exists in all versions of RHEL that I have tested. Do I need to clone it explicitly? (In reply to Marius Vollmer from comment #0) > Description of problem: > > The remote-cryptsetup.target systemd unit is disabled in a new installation > that uses the "guest" image here: > > http://download.devel.redhat.com/rhel-8/rel-eng/RHEL-8/latest-RHEL-8.4/ > compose/BaseOS/x86_64/images//rhel-guest-image-8.4-992.x86_64.qcow2 > > The unit is "preset: enabled", but its actual state is "disabled" when the > image above is booted. > > The same is true for all RHEL 8, RHEL 9, and Fedora images I have tried. I > think this was supposed to with in bug 1783263, but it is still broken for > me. Well, apparently that bug hasn't really been fixed. And I see why. We run the preset-all on installation in %post of systemd package, which is too early (remote-cryptsetup.target is in systemd-udev, which itself depends on systemd, hence it will normally be installed after it). Either there's something else (anaconda?) that's supposed to run preset-all after installation (in which case it's pointless doing it in systemd's %post); or systemd should run it in %posttrans; or packages are supposed to run preset for every presettable unit they ship (in which case it's a bug that systemd-udev doesn't do it for remote-cryptsetup.target. And the preset-all in systemd's %post exists to fix presets for packages that've been installed _before_ systemd). We have to check what's the intent here to understand where this should be fixed. > > I think there is no reason why remote-cryptsetup.target should ever not be > part of the boot. Apparently that's done for consistency with remote-fs.target. (In reply to David Tardon from comment #2) > Well, apparently that bug hasn't really been fixed. Is there any test that would catch this? This bug breaks our whole NBDE story, no? Our documentation doesn't mention this either. (It only talks about enabling clevis-luks-asspass.path, AFAICS, but not "_netdev" and remote-cryptsetup.target) So how do people do NBDE? Will fixing this in our packages fix systems that are upgraded from a buggy version to a fixed version? Or will upgrading leave remote-cryptsetup.target disabled because presets are only applied during a fresh installation? (In reply to Marius Vollmer from comment #3) > (In reply to David Tardon from comment #2) > > > Well, apparently that bug hasn't really been fixed. > > Is there any test that would catch this? If there were one, the issue would have been caught... > This bug breaks our whole NBDE > story, no? Our documentation doesn't mention this either. (It only talks > about enabling clevis-luks-asspass.path, AFAICS, but not "_netdev" and > remote-cryptsetup.target) So how do people do NBDE? I've no idea about NBDE, sorry. > Will fixing this in our packages fix systems that are upgraded from a buggy > version to a fixed version? Or will upgrading leave > remote-cryptsetup.target disabled because presets are only applied during a > fresh installation? I think enabling on upgrade from broken to fixed version could be handled by %trigger(post)un for the broken version. We already do this for a couple of systemd services in Fedora. (Provided triggers are available in RHEL-8's rpm. I don't remember when they were introduced.) 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. |