Bug 2212350 - NBDE on block devices without a filesystem is broken [rhel-8.9]
Summary: NBDE on block devices without a filesystem is broken [rhel-8.9]
Keywords:
Status: ON_QA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cockpit-appstream
Version: 8.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.9
Assignee: Martin Pitt
QA Contact: Jan Ščotka
Mirek Jahoda
URL:
Whiteboard:
Depends On: 2203361
Blocks: 2207498 2212371
TreeView+ depends on / blocked
 
Reported: 2023-06-05 11:35 UTC by Martin Pitt
Modified: 2023-08-16 07:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
.The web console NBDE binding steps now work also on volume groups with a root file system In RHEL 8.8, due to a bug in the code for determining whether or not the user was adding a Tang key to the root file system, the binding process in the web console crashed when there was no file system on the LUKS container at all. Because the web console displayed the error message `TypeError: Qe(...) is undefined` after you had clicked the `Trust key` button in the `Verify key` dialog, you had to perform all the required steps in the command-line interface in the described scenario. With this update, the web console correctly handles additions of Tang keys to root file systems. As a result, the web console finishes all binding steps required for the automated unlocking of LUKS-encrypted volumes using Network-Bound Disk Encryption (NBDE) in various scenarios.
Clone Of: 2203361
: 2212371 (view as bug list)
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-158965 0 None None None 2023-06-05 11:39:27 UTC

Description Martin Pitt 2023-06-05 11:35:40 UTC
+++ This bug was initially created as a clone of Bug #2203361 +++

Description of problem:
New version of Cockpit fails to add keys under specific circumstances.

Steps to Reproduce:
Add a Clevis key to a block device that is a physical volume of the volume group that contains the root filesystem

Actual results:
There is error in the dialog

Expected results:
Key is successfully added

--- Additional comment from Matej Marušák on 2023-05-12 07:31:29 UTC ---

Fixed in https://github.com/cockpit-project/cockpit/pull/18698

Comment 1 Martin Pitt 2023-06-05 11:37:07 UTC
This is already fixed in current nightly 8.9, but we want/need this bug for z-stream cloning.


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