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 2099701 - Improve boot performance by removing key check
Summary: Improve boot performance by removing key check
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: clevis
Version: 9.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Sergio Arroutbi
QA Contact: Martin Zelený
Mirek Jahoda
URL:
Whiteboard:
Depends On:
Blocks: 2099748
TreeView+ depends on / blocked
 
Reported: 2022-06-21 13:56 UTC by Sergio Arroutbi
Modified: 2022-11-15 11:46 UTC (History)
4 users (show)

Fixed In Version: clevis-18-104.el9
Doc Type: Enhancement
Doc Text:
Feature: Rather than a feature, this is the result of a time execution measurement in the different parts involved in boot process when clevis is used Reason: The reason of this enhancement is essentially to try to decrease time used by clevis commands to unlock a LUKS device Result: Function clevis_luks_check_valid_key_or_keyfile is spending most of the boot time dedicated to unlock devices. However, this function is always returning true for an already encrypted device (normal call execution). Parameterizing this function to avoid this check allows decreasing boot time
Clone Of:
: 2099748 (view as bug list)
Environment:
Last Closed: 2022-11-15 10:39:54 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github latchset clevis pull 369 0 None Merged Improve boot performance by removing key check 2022-06-21 13:56:48 UTC
Red Hat Issue Tracker RHELPLAN-125853 0 None None None 2022-06-21 14:11:39 UTC
Red Hat Issue Tracker SECENGSP-4648 0 None None None 2022-06-21 14:11:42 UTC
Red Hat Product Errata RHBA-2022:8232 0 None None None 2022-11-15 10:40:00 UTC

Description Sergio Arroutbi 2022-06-21 13:56:49 UTC
Function clevis_luks_check_valid_key_or_keyfile is
spending most of the boot time dedicated to unlock devices.
However, this function is always returning true for an
already encrypted device (normal call execution).
Parameterizing this function to avoid this check allows
decreasing boot time per luks device

Comment 1 Sergio Arroutbi 2022-06-21 14:01:00 UTC
@mzeleny : Could you please verify the information of this enhancement and fill pending fields?

This enhancement has been created to bring next change from upstream:
https://github.com/latchset/clevis/pull/369

Once reviewed, we will also need to clone it to RHEL8

Thanks

Comment 13 errata-xmlrpc 2022-11-15 10:39:54 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 (clevis bug fix and enhancement update), 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-2022:8232


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