+ LOG_DIR=/var/log/contrail + export CONTAINER_LOG_DIR=/var/log/contrail/vrouter-kernel-build-init + CONTAINER_LOG_DIR=/var/log/contrail/vrouter-kernel-build-init + mkdir -p /var/log/contrail/vrouter-kernel-build-init + log_file=/var/log/contrail/vrouter-kernel-build-init/console.log + touch /var/log/contrail/vrouter-kernel-build-init/console.log + chmod 600 /var/log/contrail/vrouter-kernel-build-init/console.log + exec ++ tee -a /var/log/contrail/vrouter-kernel-build-init/console.log ++ date + echo 'INFO: =================== Mon Oct 21 02:02:53 UTC 2024 ===================' INFO: =================== Mon Oct 21 02:02:53 UTC 2024 =================== + echo 'INFO: Compiling vrouter kernel module for ubuntu...' INFO: Compiling vrouter kernel module for ubuntu... ++ uname -r + current_kver=5.15.0-100-generic + echo 'INFO: Detected kernel version is 5.15.0-100-generic' INFO: Detected kernel version is 5.15.0-100-generic + '[' '!' -f /contrail_version ']' ++ cat /contrail_version + contrail_version=nightly + echo 'INFO: use vrouter version nightly' INFO: use vrouter version nightly + vrouter_dir=/usr/src/vrouter-nightly + mkdir -p /usr/src/vrouter-nightly + cp -ap /vrouter_src/. /usr/src/vrouter-nightly/ + chmod -R 755 /usr/src/vrouter-nightly + rm -rf /vrouter_src ++ cat /opt/contrail/src/dkms.conf + templ='PACKAGE_NAME=vrouter PACKAGE_VERSION="${contrail_version}" PRE_BUILD=\"utils/dkms/gen_build_info.sh ${contrail_version} $dkms_tree/vrouter/${contrail_version}/build\" MAKE[0]=\"'\''make'\'' -d -C . KERNELDIR=/lib/modules/\$kernelver/build\" CLEAN[0]=\"'\''make'\'' -C . KERNELDIR=/lib/modules/\$kernelver/build\" BUILT_MODULE_NAME[0]="vrouter" DEST_MODULE_LOCATION[0]="/kernel/net/vrouter" AUTOINSTALL="yes"' ++ eval 'echo "PACKAGE_NAME=vrouter PACKAGE_VERSION="${contrail_version}" PRE_BUILD=\"utils/dkms/gen_build_info.sh ${contrail_version} $dkms_tree/vrouter/${contrail_version}/build\" MAKE[0]=\"'\''make'\'' -d -C . KERNELDIR=/lib/modules/\$kernelver/build\" CLEAN[0]=\"'\''make'\'' -C . KERNELDIR=/lib/modules/\$kernelver/build\" BUILT_MODULE_NAME[0]="vrouter" DEST_MODULE_LOCATION[0]="/kernel/net/vrouter" AUTOINSTALL="yes""' +++ echo 'PACKAGE_NAME=vrouter PACKAGE_VERSION=nightly PRE_BUILD="utils/dkms/gen_build_info.sh nightly /vrouter/nightly/build" MAKE[0]="'\''make'\'' -d -C . KERNELDIR=/lib/modules/$kernelver/build" CLEAN[0]="'\''make'\'' -C . KERNELDIR=/lib/modules/$kernelver/build" BUILT_MODULE_NAME[0]=vrouter DEST_MODULE_LOCATION[0]=/kernel/net/vrouter AUTOINSTALL=yes' + content='PACKAGE_NAME=vrouter PACKAGE_VERSION=nightly PRE_BUILD="utils/dkms/gen_build_info.sh nightly /vrouter/nightly/build" MAKE[0]="'\''make'\'' -d -C . KERNELDIR=/lib/modules/$kernelver/build" CLEAN[0]="'\''make'\'' -C . KERNELDIR=/lib/modules/$kernelver/build" BUILT_MODULE_NAME[0]=vrouter DEST_MODULE_LOCATION[0]=/kernel/net/vrouter AUTOINSTALL=yes' + echo 'PACKAGE_NAME=vrouter PACKAGE_VERSION=nightly PRE_BUILD="utils/dkms/gen_build_info.sh nightly /vrouter/nightly/build" MAKE[0]="'\''make'\'' -d -C . KERNELDIR=/lib/modules/$kernelver/build" CLEAN[0]="'\''make'\'' -C . KERNELDIR=/lib/modules/$kernelver/build" BUILT_MODULE_NAME[0]=vrouter DEST_MODULE_LOCATION[0]=/kernel/net/vrouter AUTOINSTALL=yes' + mkdir -p /vrouter/nightly/build/include/ + mkdir -p /vrouter/nightly/build/dp-core + dkms --verbose add -m vrouter -v nightly Creating symlink /var/lib/dkms/vrouter/nightly/source -> /usr/src/vrouter-nightly + echo 'INFO: run dkms build for current kernel 5.15.0-100-generic' INFO: run dkms build for current kernel 5.15.0-100-generic + dkms --verbose build -m vrouter -v nightly Kernel preparation unnecessary for this kernel. Skipping... Running the pre_build script: Building module: 'make' -C . KERNELDIR=/lib/modules/5.15.0-100-generic/build make: Entering directory '/var/lib/dkms/vrouter/nightly/build' make -C /lib/modules/5.15.0-100-generic/build M=/var/lib/dkms/vrouter/nightly/build modules make[1]: Entering directory '/usr/src/linux-headers-5.15.0-100-generic' CC [M] /var/lib/dkms/vrouter/nightly/build//sandesh/gen-c/vr_types.o CC [M] /var/lib/dkms/vrouter/nightly/build/sandesh/library/c/sandesh.o CC [M] /var/lib/dkms/vrouter/nightly/build/sandesh/library/c/protocol/thrift_protocol.o CC [M] /var/lib/dkms/vrouter/nightly/build/sandesh/library/c/protocol/thrift_binary_protocol.o CC [M] /var/lib/dkms/vrouter/nightly/build/sandesh/library/c/protocol/thrift_xml_protocol.o CC [M] /var/lib/dkms/vrouter/nightly/build/sandesh/library/c/transport/thrift_memory_buffer.o CC [M] /var/lib/dkms/vrouter/nightly/build/sandesh/library/c/transport/thrift_fake_transport.o CC [M] /var/lib/dkms/vrouter/nightly/build/sandesh/library/c/transport/thrift_file_transport.o CC [M] /var/lib/dkms/vrouter/nightly/build/linux/vrouter_mod.o CC [M] /var/lib/dkms/vrouter/nightly/build/linux/vhost_dev.o CC [M] /var/lib/dkms/vrouter/nightly/build/linux/vr_host_interface.o CC [M] /var/lib/dkms/vrouter/nightly/build/linux/vr_genetlink.o CC [M] /var/lib/dkms/vrouter/nightly/build/linux/vr_mem.o CC [M] /var/lib/dkms/vrouter/nightly/build/linux/vr_fragment_assembler.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_message.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_sandesh.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_queue.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_index_table.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vrouter.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_route.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_nexthop.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_vif_bridge.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_datapath.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_interface.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_packet.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_proto_ip.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_mpls.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_ip_mtrie.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_response.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_flow.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_mirror.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_vrf_assign.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_vrf_table.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_stats.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_btable.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_bridge.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_htable.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_vxlan.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_fragment.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_proto_ip6.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_buildinfo.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_bitmap.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_qos.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_offloads.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_pkt_droplog.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_info.o CC [M] /var/lib/dkms/vrouter/nightly/build/dp-core/vr_info_common.o LD [M] /var/lib/dkms/vrouter/nightly/build/vrouter.o MODPOST /var/lib/dkms/vrouter/nightly/build/Module.symvers CC [M] /var/lib/dkms/vrouter/nightly/build/vrouter.mod.o LD [M] /var/lib/dkms/vrouter/nightly/build/vrouter.ko BTF [M] /var/lib/dkms/vrouter/nightly/build/vrouter.ko Skipping BTF generation for /var/lib/dkms/vrouter/nightly/build/vrouter.ko due to unavailability of vmlinux make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-100-generic' make: Leaving directory '/var/lib/dkms/vrouter/nightly/build' { 'make' -d -C . KERNELDIR=/lib/modules/5.15.0-100-generic/build; } >> /var/lib/dkms/vrouter/nightly/build/make.log 2>&1 'make' -C . KERNELDIR=/lib/modules/5.15.0-100-generic/build make: Entering directory '/var/lib/dkms/vrouter/nightly/build' make -C /lib/modules/5.15.0-100-generic/build M=/var/lib/dkms/vrouter/nightly/build modules make[1]: Entering directory '/usr/src/linux-headers-5.15.0-100-generic' make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-100-generic' make: Leaving directory '/var/lib/dkms/vrouter/nightly/build' + dkms --verbose install -m vrouter -v nightly vrouter.ko: Running module version sanity check. Good news! Module version nightly for vrouter.ko exactly matches what is already found in kernel 5.15.0-100-generic. DKMS will not replace this module. You may override by specifying --force. do_depmod 5.15.0-100-generic + echo 'INFO: DKMS run autoinstall for other kernel versions' INFO: DKMS run autoinstall for other kernel versions ++ ls /lib/modules + kernel_modules=5.15.0-100-generic + for kver in $kernel_modules + [[ 5.15.0-100-generic != 5.15.0-100-generic ]] + depmod -a + echo 'INFO: check built modules:' INFO: check built modules: + find /lib/modules/ + grep vrouter /lib/modules/5.15.0-100-generic/updates/dkms/vrouter.ko + echo 'INFO: check vrouter.ko was built for current kernel' INFO: check vrouter.ko was built for current kernel + ls -l /lib/modules/5.15.0-100-generic/updates/dkms/vrouter.ko -rw-r--r-- 1 root root 1125024 Oct 21 02:02 /lib/modules/5.15.0-100-generic/updates/dkms/vrouter.ko + touch /usr/src/vrouter-nightly/module_compiled + [[ -d /host/bin ]] + [[ ! -f /host/bin/vif ]] + [[ -d /root/contrail/third_party ]]