Devstack OVS module: OVS compilation fails when using an old kernel (even if the build_modules param is False)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Lucas Alvares Gomes |
Bug Description
The compile_ovs function from the DevStack OVS module fails when the host OS is using a older kernel even if the "build_modules" parameter is set to False.
The code will attempt to install the matching version of the kernel-devel and kernel-headers package, but, since we are running with an older kernel those package may not be presented.
There's no reason to install these packages when we are not compiling the modules, so, I suggest we use the "build_modules" parameters as a flag to indicate whether these packages should be installed or not.
Output:
+ RETRY_UPDATE=True
+ [[ False = \T\r\u\e ]]
+ is_ubuntu
+ [[ -z rpm ]]
+ '[' rpm = deb ']'
+ real_install_
+ is_ubuntu
+ [[ -z rpm ]]
+ '[' rpm = deb ']'
+ is_fedora
+ [[ -z RedHatEnterpris
+ '[' RedHatEnterpris
+ '[' RedHatEnterpris
+ '[' RedHatEnterpris
+ yum_install kernel-
+ local result parse_yum_result
+ [[ '' = \T\r\u\e ]]
+ time_start yum_install
+ local name=yum_install
+ local start_time=
+ [[ -n '' ]]
++ date +%s%3N
+ _TIME_START[
+ parse_yum_result=' \
BEGIN { result=0 } \
/^No package/ { result=2 } \
/^Failed:/ { result=2 } \
//{ print } \
END { exit result }'
+ sudo_with_proxies yum install -y kernel-
+ awk ' \
BEGIN { result=0 } \
/^No package/ { result=2 } \
/^Failed:/ { result=2 } \
//{ print } \
END { exit result }'
+ echo YUM_FAILED 1
+ result=1
Changed in neutron: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
tags: | added: neutron-proactive-backport-potential |
tags: | added: neutron-easy-proactive-backport-potential |
Fix proposed to branch: master /review. openstack. org/616195
Review: https:/