Bug 2203361

Summary: NBDE on block devices without a filesystem is broken
Product: Red Hat Enterprise Linux 9 Reporter: Matej Marušák <mmarusak>
Component: cockpitAssignee: Marius Vollmer <mvollmer>
Status: ON_QA --- QA Contact: Jan Ščotka <jscotka>
Severity: unspecified Docs Contact: Mirek Jahoda <mjahoda>
Priority: unspecified    
Version: 9.2CC: mjahoda, mpitt, release-test-team
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 9.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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 9.2, 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.
Story Points: ---
Clone Of:
: 2207498 2212350 (view as bug list) Environment:
Last Closed: 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:
Bug Depends On:    
Bug Blocks: 2212350, 2207498    

Description Matej Marušák 2023-05-12 07:29:28 UTC
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

Comment 1 Matej Marušák 2023-05-12 07:31:29 UTC
Fixed in https://github.com/cockpit-project/cockpit/pull/18698