Bug 2122949
| Summary: | RealTime KVM deployment fails for RHOSP17.0 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Ofer Blaut <oblaut> | ||||
| Component: | tripleo-ansible | Assignee: | Steve Baker <sbaker> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Joe H. Rahme <jhakimra> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 17.0 (Wallaby) | CC: | cfontain, igallagh, jparoly, jschluet, mgeary, rdiazcam, sbaker, spower, supadhya, vkhitrin | ||||
| Target Milestone: | z1 | Keywords: | AutomationBlocker, Documentation, Regression, Triaged | ||||
| Target Release: | 17.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | tripleo-ansible-3.3.1-0.20221123230736.fa5422f.el9ost | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2023-01-25 12:28:51 UTC | 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: | 2122968 | ||||||
| Attachments: |
|
||||||
|
Description
Ofer Blaut
2022-08-31 11:52:46 UTC
Created attachment 1909131 [details]
Playbook to install kernel-rt and set kernel args in a single reboot
This playbook is an alternative to cli-overcloud-node-kernelargs.yaml which also installs kernel-rt and kernel-rt-kvm. It has new vars which must be supplied by the caller:
reg_user
reg_password
reg_pool_id
reg_repo_id
It relies on the kernel arguments also changing to trigger a reboot, otherwise a reboot needs to be triggered to run the new kernel.
I have proposed bug #2139922 to solve this issue for 17.1 *** Bug 2139922 has been marked as a duplicate of this bug. *** I've proposed a fix for this which doesn't justify an RFE, and we may be able to get it into 17.0 z1. The fix will ensure $tuned_params remains on the options line after the kernelargs playbook as been run. In addition to this the documentation for customizing an image to install kernel-rt needs to include the following steps:
# Set up repos for installing packages
# Install packages for realtime
virt-customize -a overcloud-hardened-uefi-full.qcow2 --install kernel-rt,kernel-rt-kvm,tuned-profiles-nfv-host --selinux-relabel
# Update packages inside the image
virt-customize -a overcloud-hardened-uefi-full.qcow2 --update --memsize 4721 --smp 2 --selinux-relabel
# Set the correct root device
virt-customize -v -x -a overcloud-hardened-uefi-full.qcow2 --run-command "find /boot/loader/entries/ -name '*.conf' -exec sed -i 's/root=UUID=[^ ]*/root=LABEL=img-rootfs/' {} \;" --selinux-relabel
# Set rt kernel as default
virt-customize -a overcloud-hardened-uefi-full.qcow2 --run-command "grubby --set-default /boot/vmlinuz*rt* && cp /boot/grub2/grubenv /boot/efi/EFI/redhat/grubenv" --selinux-relabel
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 (Red Hat OpenStack Platform 17.0.1 bug fix and enhancement 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-2023:0271 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |