Comment 6 for bug 1092172

Revision history for this message
Ian Wells (ijw-ubuntu) wrote :

There are two separate issues here, it seems:

1. missing dependencies in openvswitch, now largely fixed by Ian in the vswitch module

2. A bug in the packaging of openvswitch:

https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/962189

And even this breaks down into several problems:
- you can set autoinstall for the module, and it at least tries to build it, but at least with the older 3.2.0-23 headers it claims not to compile
- if you install the kernel without the headers - as you might reasonably do, since the headers don't actually seem to auto-update versions - then it attempts to compile but fails with the same 'no headers' message.

Thus, to get this to work:
- install headers for all linux kernels resident on your system (in case of a reboot-upgrade) plus the one that's running (in case its image has been removed)
- install the openvswitch-datapath-dkms module
- check it builds, because a silent failure is a possibility
- never update the kernel, apparently, for this may leave you once more without a module

... and this would all work so much better if the openvswitch scripts actually flagged that something was wrong when they couldn't insert the kernel header - they do, textually, but return '0' when they're done.