From 23ad4822cc8822378ab1d64037b5eb722a1dedd3 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Wed, 5 Oct 2016 14:22:52 +0100 Subject: [PATCH] Ensure that linux-image-extra matches running kernel When the host is installed, the loading of the kernel module 'vhost_net' may fail due to the module not being installed. Currently the role installs the 'linux-image-extra-virtual' package which will install the latest kernel and latest extras package, but this may not match the running kernel on the host. This results in the following error when trying to load the vhost_net module: modprobe: FATAL: Module vhost_net not found. This patch ensures that the linux-image-extra package installed matches that of the running kernel. Change-Id: I08271fcdfae3977f202ad7d6b03f61ab00e64370 --- vars/ubuntu-14.04.yml | 2 +- vars/ubuntu-16.04.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/ubuntu-14.04.yml b/vars/ubuntu-14.04.yml index a34b3f52..87ef9c36 100644 --- a/vars/ubuntu-14.04.yml +++ b/vars/ubuntu-14.04.yml @@ -69,7 +69,7 @@ openstack_host_distro_packages: - irqbalance - libkmod-dev - libkmod2 - - linux-image-extra-virtual + - linux-image-extra-{{ ansible_kernel }} - lvm2 - python-software-properties - python-dev diff --git a/vars/ubuntu-16.04.yml b/vars/ubuntu-16.04.yml index a62119f7..bce254c9 100644 --- a/vars/ubuntu-16.04.yml +++ b/vars/ubuntu-16.04.yml @@ -64,7 +64,7 @@ openstack_host_distro_packages: - irqbalance - libkmod-dev - libkmod2 - - linux-image-extra-virtual + - linux-image-extra-{{ ansible_kernel }} - lvm2 - python-software-properties - python-dev