Bug 1741792
| Summary: | Add clevis RPMs to RHV-H image / repo | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | John Call <jcall> | ||||
| Component: | ovirt-host | Assignee: | Yuval Turgeman <yturgema> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Wei Wang <weiwang> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 4.3.6 | CC: | bkunal, cshao, dholler, dwhitley, godas, lsurette, lsvaty, mavital, mburman, mflanner, michal.skrivanek, nlevy, pelauter, qiyuan, sbonazzo, weiwang, yaniwang, ycui, yturgema | ||||
| Target Milestone: | ovirt-4.4.0 | Keywords: | ZStream | ||||
| Target Release: | 4.4.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | ovirt-host-4.4.0-0.2.alpha | Doc Type: | Bug Fix | ||||
| Doc Text: |
Previously, using LUKS alone was a problem because the RHV Manager could reboot a node using Power Management commands. However, the node would not reboot because it was waiting for the user to enter a decrypt/open/unlock passphrase. This release fixes the issue by adding clevis RPMs to the Red Hat Virtualization Host (RHVH) image. As a result, a Manager can automatically unlock/decrypt/open an RHVH using TPM or NBDE.
|
Story Points: | --- | ||||
| Clone Of: | |||||||
| : | 1759015 (view as bug list) | Environment: | |||||
| Last Closed: | 2020-08-04 13:27:17 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Node | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 1781184 | ||||||
| Bug Blocks: | 1759015, 1760262 | ||||||
| Attachments: |
|
||||||
|
Description
John Call
2019-08-16 06:36:33 UTC
Here is my simplified steps to test Clevis. 1. Install the Tang server... [root@tang-srv ~]# yum -y install tang [root@tang-srv ~]# systemctl enable tangd.socket --now [root@tang-srv ~]# firewall-cmd --add-port 80/tcp --permanent [root@tang-srv ~]# firewall-cmd --reload 2. Install RHV-H with encryption. See attached kickstart file, or check the encryption box via the Anaconda GUI) 3. Configure the Clevis client, and rebuild the initramfs. (change /dev/sda3 to whatever is appropriate) # curl -o /etc/yum.repos.d/clevis.repo http://people.redhat.com/jcall/clevis.repo # yum -y install 'clevis*' # lsblk -o +VENDOR,MODEL # clevis bind luks -d /dev/sda3 tang '{"url":"http://192.168.0.99:300"}' # echo 'kernel_cmdline="ip=dhcp"' > /etc/dracut.conf.d/clevis-nbde.conf # dracut -fv # systemctl enable clevis-luks-askpass.path # reboot Created attachment 1604298 [details]
kickstart to deploy RHV-H via PXE (including cleanup from previous installs)
kickstart to deploy RHV-H via PXE (including cleanup from previous installs)
(In reply to John Call from comment #1) > # clevis bind luks -d /dev/sda3 tang '{"url":"http://192.168.0.99:300"}' Oops, I co-located Tang on a server of mine that was already using port 80, so I changed it to use port 300 (with some systemd and SElinux foo) The line above should be simplified to just this... # clevis bind luks -d /dev/sda3 tang '{"url":"http://192.168.0.99"}' (In reply to John Call from comment #1) > Here is my simplified steps to test Clevis. > # echo 'kernel_cmdline="ip=dhcp"' > /etc/dracut.conf.d/clevis-nbde.conf > # dracut -fv I realized at some point that I also had to ask dracut to omit the creation of ifcfg files. Add one more line to the dracut drop-in configuration file like this... # cat /etc/dracut.conf.d/clevis-nbde.conf ### Use DHCP on a specific interface, and don't create /etc/sysconfig/network-scripts/ifcfg-* files during boot kernel_cmdline="ip=eno1:dhcp" omit_dracutmodules+="ifcfg" Test Version: redhat-release-virtualization-host-4.4.0-9.el8ev.x86_64 ovirt-host-4.4.0-0.2.alpha.el8ev.x86_64 Steps: 1. install rhvh-4.4.0.9-0.20191201.0 2. check clevis packages: #rpm -qa | grep clevis 3. the query result is: clevis-systemd-11-2.el8.x86_64 clevis-11-2.el8.x86_64 clevis-luks-11-2.el8.x86_64 clevis-dracut-11-2.el8.x86_64 Test result: the clevis packages were pre-installed in rhvh image without subscription to RHSM. This bug has been fixed in the latest version of RHVH-4.4.0, move the status to "VERIFIED". 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 (RHV RHEL Host (ovirt-host) 4.4), 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/RHEA-2020:3246 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days |