dkms fails due to devtest not requiring linux-headers package as dependency

Bug #1292938 reported by Ricardo Carrillo Cruz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Invalid
Low
Ricardo Carrillo Cruz

Bug Description

devtest does not require linux-headers package.
This causes dkms to fail when compiling the openvswitch-datapath-dkms module:

<snip>
Setting up openvswitch-datapath-dkms (1.4.6-0ubuntu1.12.04.2) ...

Creating symlink /var/lib/dkms/openvswitch/1.4.6/source ->
                 /usr/src/openvswitch-1.4.6

DKMS: add completed.
Error! Your kernel headers for kernel 3.2.0-23-generic cannot be found.
Please install the linux-headers-3.2.0-23-generic package,
</snip>

As a consequence, openvswitch cannot be started and making impossible to run devtest successfully:

<snip>
vagrant@precise64:/tmp$ /etc/init.d/openvswitch-switch start
 * Inserting openvswitch module
 * not removing bridge module because bridges exist (virbr0)
Module has probably not been built for this kernel.
Install the openvswitch-datapath-source package, then read
/usr/share/doc/openvswitch-datapath-source/README.Debian
 * Inserting openvswitch module
 * not removing bridge module because bridges exist (virbr0)
</snip>

Doing a 'sudo apt-get autoremove openvswitch-switch; sudo apt-get install linux-headers-$(uname -r) openvswitch-switch' fixes the issue.

IMHO, we should put the linux-headers package as a requirement in the install-dependencies script.

Changed in tripleo:
assignee: nobody → Ricardo Carrillo Cruz (rcarrillocruz)
description: updated
James Polley (tchaypo)
Changed in tripleo:
status: New → Triaged
Revision history for this message
Ricardo Carrillo Cruz (rcarrillocruz) wrote :

I can only reproduce this in Ubuntu 12.04 (which I'm not mistaken wasn't entirely supported on tripleo), in ubuntu 13.04 the openvswitch modules are built and loaded just fine during the devtest run.

Revision history for this message
Robert Collins (lifeless) wrote :

Its not clear here - are you running devtest on 12.04, or are you building images containing 12.04? devtest only affects the host environment, and we don't support 12.04 there, but we should be able to build precise images.

Changed in tripleo:
importance: Undecided → Low
status: Triaged → Incomplete
Revision history for this message
Ricardo Carrillo Cruz (rcarrillocruz) wrote :

I cannot reproduce this any longer.
I was hitting this by running devtest in Ubuntu 12.04.

Marking as INVALID.

Changed in tripleo:
status: Incomplete → Invalid
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.