Added precheck to check kernel version 4.2 on Ubuntu 14.04.

Kolla recommends LTS wily kernel version 4.2 on Ubuntu 14.04.

http://docs.openstack.org/developer/kolla/quickstart.html#installing-dependencies

The precheck check the running kernel version, because checking
the linux-image-generic-lts-wily cannot be a valid check.

The package (linux-image-generic-lts-wily) can be installed, but
the running kernel can be other version.

Closes-Bug: #1563500
Co-Authored-By: Vikram Hosakote <vhosakot@cisco.com>
Change-Id: I4e08bca95493b2dbd0ad5f8d1ea4e07b18c4959d
This commit is contained in:
Carlos Cesario 2016-03-29 21:48:37 -03:00 committed by Vikram Hosakote
parent 882636c9dd
commit 833c1269c7
2 changed files with 10 additions and 0 deletions

View File

@ -11,3 +11,12 @@
register: result
changed_when: false
failed_when: result.stdout | regex_replace('ansible (\\d+\\.\\d+\\.\\d+)', '\\1') | version_compare(ansible_version_max, '>=')
# If this fails run "apt-get install linux-image-generic-lts-wily"
- name: Checking LTS wily kernel version 4.2 on Ubuntu 14.04
command: uname -r
register: result
changed_when: false
failed_when: result.stdout | regex_replace('(\\d+\\.\\d+).*', '\\1') | version_compare(ubuntu_kernel_version_min, '<')
when:
- ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04'

View File

@ -1,3 +1,4 @@
docker_version_min: '1.10.0'
docker_py_version_min: '1.6.0'
ansible_version_max: '2.0.0'
ubuntu_kernel_version_min: '4.2'