Skip to content

Commit

Permalink
ipu: install hotfix redfish
Browse files Browse the repository at this point in the history
We need MeV 1.20 redfish in order to boot isos > 9.5GB. As a temporary
workaround, we can install a hotfix redfish binary prior to redfish
booting.

Signed-off-by: Salvatore Daniele <[email protected]>
  • Loading branch information
SalDaniele committed Jan 7, 2025
1 parent da0809a commit e69f352
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ipu.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def _prepare_imc(self, server_with_key: str) -> None:
fi
cd $CURDIR
date -s "Thu Sep 19 08:18:22 AM EDT 2024"
cp /work/redfish-1.8-iso-filesize-hotfix /usr/bin/ipu-redfish-server
cp /work/redfish/certs/server.key /etc/pki/ca-trust/source/anchors/
cp /work/redfish/certs/server.crt /etc/pki/ca-trust/source/anchors/
rm -rf /home/root/MtRemoteRunner # workaround to free up some space: https://issues.redhat.com/browse/IIC-372
Expand Down Expand Up @@ -199,6 +200,9 @@ def _prepare_imc(self, server_with_key: str) -> None:
imc.run("mkdir -pm 0700 /work/redfish/certs")
imc.run("chmod 0700 /work/redfish")
imc.run("chmod 0700 /work/redfish/certs")

# WA: default MeV 1.8 Redfish silently fails when booting isos above 9.5GB, install MeV 1.20 Redfish binary in the meantime
imc.write("/work/redfish-1.8-iso-filesize-hotfix", server.read_file("/root/webserver/redfish-1.8-iso-filesize-hotfix"))
imc.write("/work/redfish/certs/server.crt", server.read_file("/root/.local-container-registry/domain.crt"))
imc.write("/work/redfish/certs/server.key", server.read_file("/root/.local-container-registry/domain.key"))

Expand Down

0 comments on commit e69f352

Please sign in to comment.