{"id":833443,"url":"http://patchwork.ozlabs.org/api/1.2/patches/833443/?format=json","web_url":"http://patchwork.ozlabs.org/project/openvswitch/patch/1509644808-6199-1-git-send-email-gvrose8192@gmail.com/","project":{"id":47,"url":"http://patchwork.ozlabs.org/api/1.2/projects/47/?format=json","name":"Open vSwitch","link_name":"openvswitch","list_id":"ovs-dev.openvswitch.org","list_email":"ovs-dev@openvswitch.org","web_url":"http://openvswitch.org/","scm_url":"git@github.com:openvswitch/ovs.git","webscm_url":"https://github.com/openvswitch/ovs","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1509644808-6199-1-git-send-email-gvrose8192@gmail.com>","list_archive_url":null,"date":"2017-11-02T17:46:48","name":"[ovs-dev] Documentation: Document module install issues","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"b3a23098cc62b01fd71668b0124056987bf18b7b","submitter":{"id":69140,"url":"http://patchwork.ozlabs.org/api/1.2/people/69140/?format=json","name":"Gregory Rose","email":"gvrose8192@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/openvswitch/patch/1509644808-6199-1-git-send-email-gvrose8192@gmail.com/mbox/","series":[{"id":11553,"url":"http://patchwork.ozlabs.org/api/1.2/series/11553/?format=json","web_url":"http://patchwork.ozlabs.org/project/openvswitch/list/?series=11553","date":"2017-11-02T17:46:48","name":"[ovs-dev] Documentation: Document module install issues","version":1,"mbox":"http://patchwork.ozlabs.org/series/11553/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/833443/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/833443/checks/","tags":{},"related":[],"headers":{"Return-Path":"<ovs-dev-bounces@openvswitch.org>","X-Original-To":["incoming@patchwork.ozlabs.org","dev@openvswitch.org"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","ovs-dev@mail.linuxfoundation.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=openvswitch.org\n\t(client-ip=140.211.169.12; helo=mail.linuxfoundation.org;\n\tenvelope-from=ovs-dev-bounces@openvswitch.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"oJTfdQeM\"; dkim-atps=neutral"],"Received":["from mail.linuxfoundation.org (mail.linuxfoundation.org\n\t[140.211.169.12])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3ySXbD0SnKz9sMN\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  3 Nov 2017 04:47:04 +1100 (AEDT)","from mail.linux-foundation.org (localhost [127.0.0.1])\n\tby mail.linuxfoundation.org (Postfix) with ESMTP id 66DBDC9D;\n\tThu,  2 Nov 2017 17:47:02 +0000 (UTC)","from smtp1.linuxfoundation.org (smtp1.linux-foundation.org\n\t[172.17.192.35])\n\tby mail.linuxfoundation.org (Postfix) with ESMTPS id 65B3DC83\n\tfor <dev@openvswitch.org>; Thu,  2 Nov 2017 17:47:01 +0000 (UTC)","from mail-pf0-f196.google.com (mail-pf0-f196.google.com\n\t[209.85.192.196])\n\tby smtp1.linuxfoundation.org (Postfix) with ESMTPS id 102F444D\n\tfor <dev@openvswitch.org>; Thu,  2 Nov 2017 17:47:00 +0000 (UTC)","by mail-pf0-f196.google.com with SMTP id d28so227115pfe.2\n\tfor <dev@openvswitch.org>; Thu, 02 Nov 2017 10:47:00 -0700 (PDT)","from gizo.domain (184-100-245-222.ptld.qwest.net.\n\t[184.100.245.222]) by smtp.gmail.com with ESMTPSA id\n\tu46sm6862450pgn.80.2017.11.02.10.46.58\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 02 Nov 2017 10:46:59 -0700 (PDT)"],"X-Greylist":"whitelisted by SQLgrey-1.7.6","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=MVgG7rRhbO38HvmplSiKEE7vGRViEeSsRmAwg0ESZrw=;\n\tb=oJTfdQeM3Tsrig0g7bkDA0hnPmUSPhUJG31P0+AtOpTiXmyHkyC4kRD+MV1Vr5Brdt\n\tQOTUh0ksBchh8i62oXYRw2mzK6vndhTapGnGkQgJGmzpOlerO4uHVUzIedxyeXUBpEEC\n\t9/kLkCY/YfueT0n8gS174hIlL6z0RSTm5E0a3Qf7Kl0UwMYkvXq0gYA3ncOYZIPo8vdx\n\taWI2CBVS47+fLG2jMzQ4vsBHjxle30vuf6buYoGYuzZVWkancjwRfYNU2ZMS72Iqxu6s\n\t9DpnzTey54hETPWKh97j5KO3ZYOtB3Nbc7XmFsgoVA8xE/NopfIHXgcgONwbmx+yXy0j\n\tEAjQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=MVgG7rRhbO38HvmplSiKEE7vGRViEeSsRmAwg0ESZrw=;\n\tb=ag1fMFB28sBaY5Y6p0wdf1RnbMTow4sEYNPhwasS/WXlW3bUhzQc6103nTZf2Qe1Vs\n\tmHlvZVshqvVkOGzaHtfohsL9gKUnOvBNRbX/3Of1lrF9shg+2gtgtwHuUP40Qcj9GC8h\n\t457Qcv91ohm4Fp49xyqdImIYevPyOm+DBE0+9zBxlT2EbPMBMszOuhHqVEDk5qtG44/d\n\tVOlbePKVDpvYWBEpGVbKffEyZbZfpkpT/xK6UlSUpPwpxozpPL4K0FAe/Jsf1i8QAZZ1\n\tj7ffHkyzQxWb1c+vyA/4cpX0YcaEhY9viJB/dvHdHFMPCyaCD51ecTzZ7V/DGWOAvLpT\n\tE7sw==","X-Gm-Message-State":"AMCzsaVwDIT60U72ELPtPvsFi5uERK/DA2WCSB0vAWtcsv1vefSNVldk\n\tSiHhMhwIi3osuRLnROCAqZdzXg==","X-Google-Smtp-Source":"ABhQp+RGUSQoqXop1nqBOpvRgjO6+KbIUxWCIchso/7wO4zyE3bvFPj560NnhB5FTVcX6Zl+NcBOdw==","X-Received":"by 10.159.246.16 with SMTP id b16mr2918203pls.0.1509644820119;\n\tThu, 02 Nov 2017 10:47:00 -0700 (PDT)","From":"Greg Rose <gvrose8192@gmail.com>","To":"dev@openvswitch.org","Date":"Thu,  2 Nov 2017 10:46:48 -0700","Message-Id":"<1509644808-6199-1-git-send-email-gvrose8192@gmail.com>","X-Mailer":"git-send-email 1.8.3.1","X-Spam-Status":"No, score=0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, \n\tRCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.1","X-Spam-Checker-Version":"SpamAssassin 3.3.1 (2010-03-16) on\n\tsmtp1.linux-foundation.org","Subject":"[ovs-dev] [PATCH] Documentation: Document module install issues","X-BeenThere":"ovs-dev@openvswitch.org","X-Mailman-Version":"2.1.12","Precedence":"list","List-Id":"<ovs-dev.openvswitch.org>","List-Unsubscribe":"<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n\t<mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>","List-Archive":"<http://mail.openvswitch.org/pipermail/ovs-dev/>","List-Post":"<mailto:ovs-dev@openvswitch.org>","List-Help":"<mailto:ovs-dev-request@openvswitch.org?subject=help>","List-Subscribe":"<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n\t<mailto:ovs-dev-request@openvswitch.org?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"ovs-dev-bounces@openvswitch.org","Errors-To":"ovs-dev-bounces@openvswitch.org"},"content":"On certain Ubuntu systems running the 4.4 based kernel depmod\nmay not correctly search for module dependencies when newer\nopenvswitch kernel modules have been installed in the extra\ndirectory at /lib/modules/$(uname -r)/extra.  A symptom of\nthis are the following messages in system log that can be\nprinted with the dmesg command:\n\n[164917.582125] vport_lisp: disagrees about version of symbol ovs_netdev_link\n[164917.582139] vport_lisp: Unknown symbol ovs_netdev_link (err -22)\n[164917.582155] vport_lisp: Unknown symbol ovs_lisp_fill_metadata_dst (err 0)\n[164917.582165] vport_lisp: Unknown symbol rpl_rtnl_delete_link (err 0)\n[164917.582169] vport_lisp: disagrees about version of symbol ovs_netdev_tunnel_destroy\n[164917.582170] vport_lisp: Unknown symbol ovs_netdev_tunnel_destroy (err -22)\n[164917.582178] vport_lisp: Unknown symbol rpl_lisp_xmit (err 0)\n[164917.582184] vport_lisp: Unknown symbol rpl_lisp_dev_create_fb (err 0)\n[164917.582187] vport_lisp: disagrees about version of symbol __ovs_vport_ops_register\n[164917.582188] vport_lisp: Unknown symbol __ovs_vport_ops_register (err -22)\n[164917.582191] vport_lisp: disagrees about version of symbol ovs_vport_ops_unregister\n[164917.582192] vport_lisp: Unknown symbol ovs_vport_ops_unregister (err -22)\n[164917.582194] vport_lisp: disagrees about version of symbol ovs_vport_alloc\n[164917.582195] vport_lisp: Unknown symbol ovs_vport_alloc (err -22)\n[164917.582197] vport_lisp: disagrees about version of symbol ovs_vport_free\n[164917.582198] vport_lisp: Unknown symbol ovs_vport_free (err -22)\n[164917.606229] vport_stt: disagrees about version of symbol ovs_netdev_link\n[164917.606233] vport_stt: Unknown symbol ovs_netdev_link (err -22)\n[164917.606248] vport_stt: Unknown symbol ovs_stt_fill_metadata_dst (err 0)\n[164917.606260] vport_stt: Unknown symbol rpl_rtnl_delete_link (err 0)\n[164917.606264] vport_stt: disagrees about version of symbol ovs_netdev_tunnel_destroy\n[164917.606266] vport_stt: Unknown symbol ovs_netdev_tunnel_destroy (err -22)\n[164917.606274] vport_stt: Unknown symbol ovs_stt_dev_create_fb (err 0)\n[164917.606279] vport_stt: disagrees about version of symbol __ovs_vport_ops_register\n[164917.606281] vport_stt: Unknown symbol __ovs_vport_ops_register (err -22)\n[164917.606285] vport_stt: disagrees about version of symbol ovs_vport_ops_unregister\n[164917.606286] vport_stt: Unknown symbol ovs_vport_ops_unregister (err -22)\n[164917.606291] vport_stt: disagrees about version of symbol ovs_vport_alloc\n[164917.606292] vport_stt: Unknown symbol ovs_vport_alloc (err -22)\n[164917.606295] vport_stt: disagrees about version of symbol ovs_vport_free\n[164917.606297] vport_stt: Unknown symbol ovs_vport_free (err -22)\n[164917.606305] vport_stt: Unknown symbol ovs_stt_xmit (err 0)\n\nWhen this occurs the 'make check-kmod' command will experience many\nfailures and openvswitch will not operate correctly.\n\nDocument adding the 'extra' directory to the depmod search configuration\nfile in /etc/depmod.d/ubuntu.conf.  Adding the extra directory to the\ndepmod search path fixes the problem.\n\nSigned-off-by: Greg Rose <gvrose8192@gmail.com>\n---\n Documentation/intro/install/general.rst | 24 +++++++++++++++++++++++-\n 1 file changed, 23 insertions(+), 1 deletion(-)","diff":"diff --git a/Documentation/intro/install/general.rst b/Documentation/intro/install/general.rst\nindex e5ec155..b66e7f1 100644\n--- a/Documentation/intro/install/general.rst\n+++ b/Documentation/intro/install/general.rst\n@@ -412,7 +412,29 @@ Building\n          $ /sbin/modinfo /lib/modules/$(uname -r)/kernel/net/bridge/bridge.ko\n \n      Compare the \"vermagic\" lines output by the two commands.  If they differ,\n-     then Open vSwitch was built for the wrong kernel.\n+     then Open vSwitch may have been built for the wrong kernel.\n+     Alternatively, on some Ubuntu based systems, depmod might not have\n+     done the proper search for module dependencies.  Adding 'extra' to\n+     the configuration file in /etc/depmod.d/ubuntu.conf and then running\n+     depmod -a can fix the problem.  The following script can do this::\n+\n+        #!/bin/sh\n+\n+        check_ubuntu_depmod_config() {\n+            if [ -e /etc/depmod.d/ubuntu.conf ]; then\n+                if ! grep -q extra /etc/depmod.d/ubuntu.conf\n+                    then\n+                    sed -i s\\/search\\/\"search extra\"\\/ /etc/depmod.d/ubuntu.conf\n+                    /sbin/depmod -a\n+                fi\n+            fi\n+        }\n+\n+        check_ubuntu_depmod_config\n+\n+\n+     The example script implements the check as a function so that is\n+     easily portable into user specific configuration checks.\n \n      If you decide to report a bug or ask a question related to module loading,\n      include the output from the ``dmesg`` and ``modinfo`` commands mentioned\n","prefixes":["ovs-dev"]}