diff mbox series

[ovs-dev,V2] Documentation: Document additional module dependency

Message ID 1509656535-9474-1-git-send-email-gvrose8192@gmail.com
State Rejected
Headers show
Series [ovs-dev,V2] Documentation: Document additional module dependency | expand

Commit Message

Gregory Rose Nov. 2, 2017, 9:02 p.m. UTC
On certain Ubuntu systems running the 4.4 based kernel depmod
may not correctly search for module dependencies when newer
openvswitch kernel modules have been installed in the extra
directory at /lib/modules/$(uname -r)/extra.  A symptom of
this are the following messages in system log that can be
printed with the dmesg command:

[164917.582125] vport_lisp: disagrees about version of symbol ovs_netdev_link
[164917.582139] vport_lisp: Unknown symbol ovs_netdev_link (err -22)
[164917.582155] vport_lisp: Unknown symbol ovs_lisp_fill_metadata_dst (err 0)
[164917.582165] vport_lisp: Unknown symbol rpl_rtnl_delete_link (err 0)
[164917.582169] vport_lisp: disagrees about version of symbol ovs_netdev_tunnel_destroy
[164917.582170] vport_lisp: Unknown symbol ovs_netdev_tunnel_destroy (err -22)
[164917.582178] vport_lisp: Unknown symbol rpl_lisp_xmit (err 0)
[164917.582184] vport_lisp: Unknown symbol rpl_lisp_dev_create_fb (err 0)
[164917.582187] vport_lisp: disagrees about version of symbol __ovs_vport_ops_register
[164917.582188] vport_lisp: Unknown symbol __ovs_vport_ops_register (err -22)
[164917.582191] vport_lisp: disagrees about version of symbol ovs_vport_ops_unregister
[164917.582192] vport_lisp: Unknown symbol ovs_vport_ops_unregister (err -22)
[164917.582194] vport_lisp: disagrees about version of symbol ovs_vport_alloc
[164917.582195] vport_lisp: Unknown symbol ovs_vport_alloc (err -22)
[164917.582197] vport_lisp: disagrees about version of symbol ovs_vport_free
[164917.582198] vport_lisp: Unknown symbol ovs_vport_free (err -22)
[164917.606229] vport_stt: disagrees about version of symbol ovs_netdev_link
[164917.606233] vport_stt: Unknown symbol ovs_netdev_link (err -22)
[164917.606248] vport_stt: Unknown symbol ovs_stt_fill_metadata_dst (err 0)
[164917.606260] vport_stt: Unknown symbol rpl_rtnl_delete_link (err 0)
[164917.606264] vport_stt: disagrees about version of symbol ovs_netdev_tunnel_destroy
[164917.606266] vport_stt: Unknown symbol ovs_netdev_tunnel_destroy (err -22)
[164917.606274] vport_stt: Unknown symbol ovs_stt_dev_create_fb (err 0)
[164917.606279] vport_stt: disagrees about version of symbol __ovs_vport_ops_register
[164917.606281] vport_stt: Unknown symbol __ovs_vport_ops_register (err -22)
[164917.606285] vport_stt: disagrees about version of symbol ovs_vport_ops_unregister
[164917.606286] vport_stt: Unknown symbol ovs_vport_ops_unregister (err -22)
[164917.606291] vport_stt: disagrees about version of symbol ovs_vport_alloc
[164917.606292] vport_stt: Unknown symbol ovs_vport_alloc (err -22)
[164917.606295] vport_stt: disagrees about version of symbol ovs_vport_free
[164917.606297] vport_stt: Unknown symbol ovs_vport_free (err -22)
[164917.606305] vport_stt: Unknown symbol ovs_stt_xmit (err 0)

When this occurs the 'make check-kmod' command will experience many
failures and openvswitch will not operate correctly.

Adding 'search extra' to the beginning of the /etc/depmod.d/openvswitch.conf
module dependency configuration file fixes the problem.  So to be safe
just add it.

Signed-off-by: Greg Rose <gvrose8192@gmail.com>
---
 Documentation/intro/install/general.rst | 1 +
 1 file changed, 1 insertion(+)

Comments

Gregory Rose Nov. 3, 2017, 2:10 a.m. UTC | #1
On 11/02/2017 02:02 PM, Greg Rose wrote:
> On certain Ubuntu systems running the 4.4 based kernel depmod
> may not correctly search for module dependencies when newer
> openvswitch kernel modules have been installed in the extra
> directory at /lib/modules/$(uname -r)/extra.  A symptom of
> this are the following messages in system log that can be
> printed with the dmesg command:
> 
> [164917.582125] vport_lisp: disagrees about version of symbol ovs_netdev_link
> [164917.582139] vport_lisp: Unknown symbol ovs_netdev_link (err -22)
> [164917.582155] vport_lisp: Unknown symbol ovs_lisp_fill_metadata_dst (err 0)
> [164917.582165] vport_lisp: Unknown symbol rpl_rtnl_delete_link (err 0)
> [164917.582169] vport_lisp: disagrees about version of symbol ovs_netdev_tunnel_destroy
> [164917.582170] vport_lisp: Unknown symbol ovs_netdev_tunnel_destroy (err -22)
> [164917.582178] vport_lisp: Unknown symbol rpl_lisp_xmit (err 0)
> [164917.582184] vport_lisp: Unknown symbol rpl_lisp_dev_create_fb (err 0)
> [164917.582187] vport_lisp: disagrees about version of symbol __ovs_vport_ops_register
> [164917.582188] vport_lisp: Unknown symbol __ovs_vport_ops_register (err -22)
> [164917.582191] vport_lisp: disagrees about version of symbol ovs_vport_ops_unregister
> [164917.582192] vport_lisp: Unknown symbol ovs_vport_ops_unregister (err -22)
> [164917.582194] vport_lisp: disagrees about version of symbol ovs_vport_alloc
> [164917.582195] vport_lisp: Unknown symbol ovs_vport_alloc (err -22)
> [164917.582197] vport_lisp: disagrees about version of symbol ovs_vport_free
> [164917.582198] vport_lisp: Unknown symbol ovs_vport_free (err -22)
> [164917.606229] vport_stt: disagrees about version of symbol ovs_netdev_link
> [164917.606233] vport_stt: Unknown symbol ovs_netdev_link (err -22)
> [164917.606248] vport_stt: Unknown symbol ovs_stt_fill_metadata_dst (err 0)
> [164917.606260] vport_stt: Unknown symbol rpl_rtnl_delete_link (err 0)
> [164917.606264] vport_stt: disagrees about version of symbol ovs_netdev_tunnel_destroy
> [164917.606266] vport_stt: Unknown symbol ovs_netdev_tunnel_destroy (err -22)
> [164917.606274] vport_stt: Unknown symbol ovs_stt_dev_create_fb (err 0)
> [164917.606279] vport_stt: disagrees about version of symbol __ovs_vport_ops_register
> [164917.606281] vport_stt: Unknown symbol __ovs_vport_ops_register (err -22)
> [164917.606285] vport_stt: disagrees about version of symbol ovs_vport_ops_unregister
> [164917.606286] vport_stt: Unknown symbol ovs_vport_ops_unregister (err -22)
> [164917.606291] vport_stt: disagrees about version of symbol ovs_vport_alloc
> [164917.606292] vport_stt: Unknown symbol ovs_vport_alloc (err -22)
> [164917.606295] vport_stt: disagrees about version of symbol ovs_vport_free
> [164917.606297] vport_stt: Unknown symbol ovs_vport_free (err -22)
> [164917.606305] vport_stt: Unknown symbol ovs_stt_xmit (err 0)
> 
> When this occurs the 'make check-kmod' command will experience many
> failures and openvswitch will not operate correctly.
> 
> Adding 'search extra' to the beginning of the /etc/depmod.d/openvswitch.conf
> module dependency configuration file fixes the problem.  So to be safe
> just add it.
> 
> Signed-off-by: Greg Rose <gvrose8192@gmail.com>
> ---
>   Documentation/intro/install/general.rst | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/intro/install/general.rst b/Documentation/intro/install/general.rst
> index e5ec155..a561b57 100644
> --- a/Documentation/intro/install/general.rst
> +++ b/Documentation/intro/install/general.rst
> @@ -385,6 +385,7 @@ Building
>      following snippet of code achieves the same::
>   
>          $ config_file="/etc/depmod.d/openvswitch.conf"
> +       $ echo "search extra" >> "$config_file"
>          $ for module in datapath/linux/*.ko; do
>            modname="$(basename ${module})"
>            echo "override ${modname%.ko} * extra" >> "$config_file"
> 

I'm withdrawing this patch - I may have been working from a corrupted system.

Please ignore.

- Greg
diff mbox series

Patch

diff --git a/Documentation/intro/install/general.rst b/Documentation/intro/install/general.rst
index e5ec155..a561b57 100644
--- a/Documentation/intro/install/general.rst
+++ b/Documentation/intro/install/general.rst
@@ -385,6 +385,7 @@  Building
    following snippet of code achieves the same::
 
        $ config_file="/etc/depmod.d/openvswitch.conf"
+       $ echo "search extra" >> "$config_file"
        $ for module in datapath/linux/*.ko; do
          modname="$(basename ${module})"
          echo "override ${modname%.ko} * extra" >> "$config_file"