contrail-installer
contrail-installer copied to clipboard
could not load vrouter
OS: Ubuntu14.04
Modifications to localrc file
# to get source code make it as False
CONTRAIL_DEFAULT_INSTALL=True
# repo proto is https or (default) ssh. Leave commented for ssh
CONTRAIL_REPO_PROTO=https
On ./contrail.sh start command I am seeing an error where insertion of vrouter is failing as the module is not present. Hopefully vrouter kernel module is not compiled successfully and the module insertion has failed. Should I install anything else in Ubuntu for fixing this issue ?
2016-02-29 17:37:04 +++ zless /usr/share/doc/contrail-vrouter-agent/changelog.gz
2016-02-29 17:37:04 ++ vrouter_pkg_version='contrail (2.0+20141111) trusty; urgency=low
2016-02-29 17:37:04
2016-02-29 17:37:04 * OpenContrail community release.
2016-02-29 17:37:04
2016-02-29 17:37:04 -- OpenContrail Development <[email protected]> Fri, 21 Feb 2014 18:30:00 -0800'
2016-02-29 17:37:04 ++ vrouter_pkg_version='2.0+20141111) trusty; urgency=low
2016-02-29 17:37:04
2016-02-29 17:37:04 * OpenContrail community release.
2016-02-29 17:37:04
2016-02-29 17:37:04 -- OpenContrail Development <[email protected]> Fri, 21 Feb 2014 18:30:00 -0800'
2016-02-29 17:37:04 ++ vrouter_pkg_version=2.0+20141111
2016-02-29 17:37:04 ++ sudo sh -c 'sync && echo 3 > /proc/sys/vm/drop_caches'
2016-02-29 17:37:06 ++ sudo insmod /var/lib/dkms/vrouter/2.0+20141111/build/vrouter.ko vr_flow_entries=4096 vr_oflow_entries=512 vr_bridge_entries=128
2016-02-29 17:37:07 insmod: ERROR: could not load module /var/lib/dkms/vrouter/2.0+20141111/build/vrouter.ko: No such file or directory
ipi@ipi:~/LAB/contrail-installer$ 2016-02-29 17:37:07 exited with status :1
2016-02-29 17:37:07 ++ [[ 1 -eq 1 ]]
2016-02-29 17:37:07 ++ exit 1
2016-02-29 17:37:07 ++ clean
2016-02-29 17:37:07 ++ local r=1
2016-02-29 17:37:07 ++ echo 'exited with status :1'
2016-02-29 17:37:07 ++ exit 1
+1
+1
+1
I also facing this issue
I met the same problem in ubuntu 14.04 + contrail 3.2.2. I sovled it by compile the vrouter.ko manully. then copy the vrouter.ko to build directory, then it is fixed.
And because my kernel version is newer than vRouter expected, I merged 2 commits https://github.com/Juniper/contrail-vrouter/commit/353c9c525e768269b8d7ae580dec6a47bc795bc3 https://github.com/Juniper/contrail-vrouter/blob/f8b4879d777245309ba7a0ea3054d0cf6900c50c/linux/vr_host_interface.c
Hi.. I am also facing the same issue - I am using the different version of contrail - can you give detail procedure of compiling the vrouter.ko steps please.
This is error while on starting the contrail..
2017-07-18 01:41:53 +++ zless /usr/share/doc/contrail-vrouter-agent/changelog.gz 2017-07-18 01:41:53 ++ vrouter_pkg_version='contrail (2.21~20151202~trusty) trusty; urgency=low 2017-07-18 01:41:53 2017-07-18 01:41:53 * OpenContrail community release. 2017-07-18 01:41:53 2017-07-18 01:41:53 -- OpenContrail Development [email protected] Fri, 21 Feb 2014 18:30:00 -0800' 2017-07-18 01:41:53 ++ vrouter_pkg_version='2.21~20151202~trusty) trusty; urgency=low 2017-07-18 01:41:53 2017-07-18 01:41:53 * OpenContrail community release. 2017-07-18 01:41:53 2017-07-18 01:41:53 -- OpenContrail Development [email protected] Fri, 21 Feb 2014 18:30:00 -0800' 2017-07-18 01:41:53 ++ vrouter_pkg_version=2.21~20151202~trusty 2017-07-18 01:41:53 ++ sudo sh -c 'sync && echo 3 > /proc/sys/vm/drop_caches' 2017-07-18 01:41:53 ++ sudo insmod /var/lib/dkms/vrouter/2.21~20151202~trusty/build/vrouter.ko vr_flow_entries=4096 vr_oflow_entries=512 vr_bridge_entries=128 2017-07-18 01:41:53 insmod: ERROR: could not load module /var/lib/dkms/vrouter/2.21~20151202~trusty/build/vrouter.ko: No such file or directory 2017-07-18 01:41:53 exited with status :1 2017-07-18 01:41:53 ++ [[ 1 -eq 1 ]] 2017-07-18 01:41:53 ++ exit 1 2017-07-18 01:41:53 ++ clean 2017-07-18 01:41:53 ++ local r=1 2017-07-18 01:41:53 ++ echo 'exited with status :1' 2017-07-18 01:41:53 ++ exit 1
BTW here is the kernal used on the box where contrail installed. 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Just cd /var/lib/dkms/vrouter, then make. you will face 2 errors, because your kernel version is 4.4. after merge 2 commits that I mentioned above make will succeed.
Thanks for your help .. I was able to compile the vrouter.ko after purging the 4.4 kernel and downgraded to 3.3.X kernel version. Now different error - api server failed to start .. Any how I will check other thread for those errors..
first you can execute netstat -an | grep 8082 to verify that api-srv listen on this port or not. if 8082 is in listening, you can try wget -q -O- http://${SERVICE_HOST}:8082, $SERVICE_HOST is your contrail IP address. if you can not get any output, you can check the IP address is correct or not. if 8082 is not in listening, in my experence, I mannuly start contrail-discovery service, then it is ok.
But after this issue got resolved, I met a lot of other issues which can't be solved -_-
Now I gave up to install it with package, I'm installing it with source...