Skip to content

Commit

Permalink
Add vdsm-hook-log-firmware hook to hosts
Browse files Browse the repository at this point in the history
Problems with nested VMs' firmware are hard to debug. A dump of firmware
log is very helpful with that, so let's have it on by default in OST.

Signed-off-by: Marcin Sobczyk <msobczyk@redhat.com>
  • Loading branch information
tinez authored and michalskrivanek committed Jan 27, 2023
1 parent 8c2cedb commit 819bfb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion configs/el8stream/el8stream-provision-host.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ dnf install -y \
dnf -y install \
ovirt-host \
python3-coverage \
vdsm-hook-log-console
vdsm-hook-log-console \
vdsm-hook-log-firmware
# We install NetworkManager-config-server by default with
# vdsm which stops automatic DHCP assignments to interfaces.
# We use that in OST deploy so let's just disable that
Expand Down
4 changes: 2 additions & 2 deletions configs/node/node.ks.in
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ mount -o size=4G -t tmpfs none /tmp/rw_layer/dnftmp
nsenter --root=/tmp/rw_layer sed -i '$ a\cachedir=/dnftmp' /etc/dnf/dnf.conf
source /etc/os-release
if [ "$ID" = "rhel" ]; then
nsenter --root=/tmp/rw_layer dnf --repo=ostci --repofrompath ostci,%REPO_ROOT% --nogpgcheck install -y rhvm-appliance python3-coverage vdsm-hook-log-console
nsenter --root=/tmp/rw_layer dnf --repo=ostci --repofrompath ostci,%REPO_ROOT% --nogpgcheck install -y rhvm-appliance python3-coverage vdsm-hook-log-console vdsm-hook-log-firmware
else
nsenter --root=/tmp/rw_layer dnf --releasever=$VERSION --repo appstream install -y uuid
nsenter --root=/tmp/rw_layer dnf --releasever=$VERSION --disableexcludes=all install -y ovirt-engine-appliance python3-coverage vdsm-hook-log-console
nsenter --root=/tmp/rw_layer dnf --releasever=$VERSION --disableexcludes=all install -y ovirt-engine-appliance python3-coverage vdsm-hook-log-console vdsm-hook-log-firmware
fi

# write down which OpenSCAP profile is set
Expand Down
2 changes: 1 addition & 1 deletion configs/rhel8/rhel8-provision-host.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ curl --fail -O %RHEL8_BUILD%/api/rhv_45_host.repo
curl --fail -O %RHEL8_BUILD%/api/rhv_nightly.repo
popd

dnf -y --nogpgcheck --setopt=sslverify=0 install ovirt-host python3-coverage vdsm vdsm-hook-log-console
dnf -y --nogpgcheck --setopt=sslverify=0 install ovirt-host python3-coverage vdsm vdsm-hook-log-console vdsm-hook-log-firmware

rm -f /usr/lib/NetworkManager/conf.d/00-server.conf

Expand Down

0 comments on commit 819bfb4

Please sign in to comment.