RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1477757 - [RFE] allow cryptsetup block device units to appear after networking comes up
Summary: [RFE] allow cryptsetup block device units to appear after networking comes up
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks: 1475406
TreeView+ depends on / blocked
 
Reported: 2017-08-02 20:33 UTC by Nathaniel McCallum
Modified: 2018-06-15 13:00 UTC (History)
10 users (show)

Fixed In Version: systemd-219-47.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 11:21:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1384014 0 unspecified CLOSED RFE: Possibility to boot from encrypted non-iSCSI disks and mount encrypted iSCSI disks on the same machine 2021-06-10 11:35:20 UTC
Red Hat Product Errata RHBA-2018:0711 0 None None None 2018-04-10 11:22:27 UTC

Internal Links: 1384014

Description Nathaniel McCallum 2017-08-02 20:33:08 UTC
Currently, systemd generates cryptsetup unit files directly from /etc/crypttab. Due to dependencies, these unit files are always started before networking comes up.

In some cases, clevis can answer the systemd-ask-password prompts for these block devices automatically. But in most of those cases, network access is required. In attempting to properly order this setup, a circular dependency arises.

We have a few options.

First, we could try to auto-detect the clevis policy dependencies from the disk. This is doable via udev. The problem is that units are generated from /etc/crypttab whether the disks or present or not. This creates a race-condition when devices aren't connected to the system before the generation of unit files. This solution would be more comprehensive, but would also be more work.

Second, we could implement a _netdev like option in /etc/crypttab. This would be less featureful and less dynamic, but would also help iSCSI people. For an existing RFE, see: https://github.com/systemd/systemd/issues/4642

Comment 1 Nathaniel McCallum 2017-08-02 20:34:41 UTC
This is also related: https://github.com/systemd/systemd/issues/5182

Comment 13 Lukáš Nykrýn 2017-09-26 07:47:13 UTC
fix merged to upstream staging branch -> https://github.com/lnykryn/systemd-rhel/pull/141 -> post

Comment 16 Nathaniel McCallum 2017-10-12 21:00:54 UTC
This is apparently an incomplete fix. See this for more detail:

https://github.com/systemd/systemd/pull/7078

Comment 18 Lukáš Nykrýn 2017-10-31 09:30:12 UTC
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/166 -> post

Comment 20 Lukáš Nykrýn 2017-11-01 14:24:35 UTC
fix merged to staging branch -> https://github.com/lnykryn/systemd-rhel/pull/167 -> post

Comment 25 errata-xmlrpc 2018-04-10 11:21:21 UTC
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.

https://access.redhat.com/errata/RHBA-2018:0711


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