diff options
author | Riccardo Pittau <elfosardo@gmail.com> | 2019-03-26 09:58:00 +0100 |
---|---|---|
committer | Riccardo Pittau <elfosardo@gmail.com> | 2020-04-23 13:29:34 +0000 |
commit | d21b82b424c62c1cc0d0a81266930575623fa031 (patch) | |
tree | f579fd82dba20de3319883eb164fc2fbd6385696 | |
parent | 9c116c4ef3d10a2eadb0fb0ddd13eae24a470f99 (diff) | |
download | ironic-d21b82b424c62c1cc0d0a81266930575623fa031.tar.gz |
Workaround for uefi job with ubuntu bionic
In ubuntu bionic, the UEFI provided in the ovmf package version
0~20180205.c0d9813c-2, EFI v2.70 by EDK II, seems broken and
causes kernel panic.
To be able to boot using uefi, we download and install the old
working version 2.60 from the multiverse repository.
Story: 2004604
Task: 28500
Change-Id: I1a5b4a6544621316f71203282f7418d2001ad357
(cherry picked from commit 6f22c00149e2a3688051d72e2d461507c5ee2a53)
-rw-r--r-- | devstack/lib/ironic | 17 | ||||
-rw-r--r-- | zuul.d/ironic-jobs.yaml | 1 |
2 files changed, 11 insertions, 7 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 0723dddce..cff7bbc5b 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -895,12 +895,17 @@ function install_ironic { # one. The EFI ROM should work on with both boot modes, Legacy # BIOS and UEFI. if is_ubuntu; then - # FIXME(lucasagomes): Enable the multiverse repository by - # default in the image running the gate tests. Also move the - # installation of the ovmf package to files/debs/ironic - sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) multiverse" - sudo apt-get update - install_package ovmf + # (rpittau) in bionic the UEFI in the ovmf 0~20180205.c0d9813c-2 + # package is broken: EFI v2.70 by EDK II + # As a workaround, here we download and install the old working + # version from the multiverse repository: EFI v2.60 by EDK II + # Bug reference: + # https://bugs.launchpad.net/ubuntu/+source/edk2/+bug/1821729 + local temp_deb + temp_deb="$(mktemp)" + wget http://archive.ubuntu.com/ubuntu/pool/multiverse/e/edk2/ovmf_0~20160408.ffea0a2c-2_all.deb -O "$temp_deb" + sudo dpkg -i "$temp_deb" + rm -f "$temp_deb" sudo rm /usr/share/qemu/pxe-virtio.rom sudo ln -s /usr/lib/ipxe/qemu/efi-virtio.rom /usr/share/qemu/pxe-virtio.rom diff --git a/zuul.d/ironic-jobs.yaml b/zuul.d/ironic-jobs.yaml index 738edb4ce..e3b17432d 100644 --- a/zuul.d/ironic-jobs.yaml +++ b/zuul.d/ironic-jobs.yaml @@ -165,7 +165,6 @@ name: ironic-tempest-ipa-partition-uefi-pxe_ipmitool-tinyipa description: ironic-tempest-ipa-partition-uefi-pxe_ipmitool-tinyipa parent: ironic-base - nodeset: openstack-single-node-xenial timeout: 5400 vars: devstack_localrc: |