neutron install ovs failed, can`t find kernel-devel

Bug #1704077 reported by Wei Li
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Miguel Angel Ajo

Bug Description

in devstack\lib\ovs
    if is_fedora ; then
        # is_fedora covers Fedora, RHEL, CentOS, etc...
        # dash is illegal character in rpm version so replace
        # them with underscore like it is done in the kernel
        # https://github.com/torvalds/linux/blob/master/scripts/package/mkspec#L25
        KERNEL_VERSION=`echo $KERNEL_VERSION | sed -e "s/-/_/g"`

rpm name is replaced '-' by '_', but in centos7

[root@localhost ~]# uname -r
3.10.0-514.26.2.el7.x86_64
[root@localhost ~]# rpm -qa | grep kernel-devel
kernel-devel-3.10.0-514.26.2.el7.x86_64

It use '-', so can`t find it, so install failed.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/483248

Changed in neutron:
assignee: nobody → Moshe Levi (moshele)
status: New → In Progress
Revision history for this message
venkata anil (anil-venkata) wrote :

Can some one bump up the priority for this bug. It is blocking devstack installation with networking-ovn.

Changed in neutron:
importance: Undecided → High
Changed in neutron:
assignee: Moshe Levi (moshele) → Miguel Angel Ajo (mangelajo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/483248
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0177568c93c1773ba22989ea1565dd666c516de3
Submitter: Jenkins
Branch: master

commit 0177568c93c1773ba22989ea1565dd666c516de3
Author: Miguel Angel Ajo <email address hidden>
Date: Tue Aug 1 09:02:09 2017 +0000

    devstack: fix ovs install on fedora like OS

    This patch I3d0981fbe30f2436f00c200919b50aeb97491252
    resolved custom kernel version, but introduced a bug
    for the 3.x series. This patch avoids the replacement
    in the case of the 3.x series.

    Closes-Bug: #1704077

    Co-Authored-By: Moshe Levi <email address hidden>

    Change-Id: Iff1c5a39fe4b0d9320910d0cfafdd36873825d03

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

Fedora official kernels also use dash (and are 4.x), so I still this error with ovs rebuild:
No package kernel-devel-4.11.11_300.fc26.x86_64 available.

and package is indeed kernel-devel-4.11.11-300.fc26.x86_64 (with dash)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 11.0.0.0rc1

This issue was fixed in the openstack/neutron 11.0.0.0rc1 release candidate.

tags: added: neutron-proactive-backport-potential
tags: removed: neutron-proactive-backport-potential
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.