From: Alexandru Avadanii Date: Fri, 22 Feb 2019 15:31:24 +0000 (+0100) Subject: [lib] Add fatal validation of old kernel on Ubuntu X-Git-Tag: opnfv-8.0.0~34 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F67086%2F1;p=fuel.git [lib] Add fatal validation of old kernel on Ubuntu As reported in [1], kernel 4.4 seems to break nested virtualization, add a fatal check against it. [1] https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1797332 Change-Id: I0aef8a7340dd82bfeb2e58c9642623b9ec13dca5 Signed-off-by: Alexandru Avadanii --- diff --git a/mcp/scripts/lib_jump_common.sh b/mcp/scripts/lib_jump_common.sh index b89a33d71..7cfdd4254 100644 --- a/mcp/scripts/lib_jump_common.sh +++ b/mcp/scripts/lib_jump_common.sh @@ -97,6 +97,14 @@ function jumpserver_check_requirements { notify_n "[WARN] ${warn_br_endpoint}" 3 fi fi + # https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1797332 + if lsb_release -d | grep -q -e 'Ubuntu 16.04'; then + if uname -r | grep -q -e '^4\.4\.'; then + notify_n "[WARN] Host kernel too old; nested virtualization issues!" 3 + notify_n "[WARN] apt install linux-generic-hwe-16.04 && reboot" 3 + notify_e "[ERROR] Please upgrade the kernel and reboot!" + fi + fi fi }