Tor Agent process crashing and going to failed state after creating lif. In this setup, tor-agent does not have any route reachability to Tor switch which is wrong. Still, we should not crash.
Backtrace:
------------
gdb) bt
#0 0x00007f6ef16c1404 in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x000000000082c4b4 in lock (this=0x20) at /usr/include/tbb/mutex.h:164
#2 acquire (mutex=..., this=<synthetic pointer>) at /usr/include/tbb/mutex.h:105
#3 scoped_lock (mutex=..., this=<synthetic pointer>) at /usr/include/tbb/mutex.h:91
#4 PortSubscribeTable::Get (this=0x0, vmi_uuid=..., vm_uuid=...) at controller/src/vnsw/agent/port_ipc/port_subscribe_table.cc:516
#5 0x0000000000aad80e in InterfaceTable::VmiProcessConfig (this=<optimized out>, node=0x7f6ed80167d0, req=..., u=...) at controller/src/vnsw/agent/oper/vm_interface_config.cc:1291
#6 0x00000000009e10b5 in ConfigManagerNodeList::Process (this=0x7f6ee40fa6c0, weight=weight@entry=57) at controller/src/vnsw/agent/oper/config_manager.cc:137
#7 0x00000000009dfaca in ConfigManager::Run (this=this@entry=0x223c760) at controller/src/vnsw/agent/oper/config_manager.cc:395
#8 0x00000000009dfbce in ConfigManager::TimerRun (this=0x223c760) at controller/src/vnsw/agent/oper/config_manager.cc:355
#9 0x000000000114c5c9 in operator() (this=<optimized out>) at /usr/include/boost/function/function_template.hpp:767
#10 Timer::TimerTask::Run (this=0x2245160) at controller/src/base/timer.cc:44
#11 0x00000000011442c7 in TaskImpl::execute (this=0x7f6eea0f3d40) at controller/src/base/task.cc:279
#12 0x00007f6ef14a3b3a in ?? () from /usr/lib/libtbb.so.2
#13 0x00007f6ef149f816 in ?? () from /usr/lib/libtbb.so.2
#14 0x00007f6ef149ef4b in ?? () from /usr/lib/libtbb.so.2
#15 0x00007f6ef149b0ff in ?? () from /usr/lib/libtbb.so.2
#16 0x00007f6ef149b2f9 in ?? () from /usr/lib/libtbb.so.2
#17 0x00007f6ef16bf184 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#18 0x00007f6ef099837d in clone () from /lib/x86_64-linux-gnu/libc.so.6
Tor Agent process crashing and going to failed state after creating lif. In this setup, tor-agent does not have any route reachability to Tor switch which is wrong. Still, we should not crash.
Tor Defination in testbed file ------- ------- ------- -----
' tor_ip' :'172.18. 90.1',
' tor_agent_ id':'1' ,
' tor_type' :'ovs',
' tor_ovs_ port':' 4321',
' tor_ovs_ protocol' :'pssl' ,
' tor_tsn_ ip':'172. 17.90.4' ,
' tor_tsn_ name':' 5b7s4',
' tor_name' :'5b7-qfx2' ,
' tor_tunnel_ ip':'34. 34.34.34' ,
' tor_vendor_ name':' Juniper' ,
' tor_product_ name':' QFX5100' ,
' tor_agent_ http_server_ port': '1234',
' tor_agent_ ovs_ka' : '10000',
}
-------
{host4:[{
root@5b7s4:~# ping 172.18.90.1
PING 172.18.90.1 (172.18.90.1) 56(84) bytes of data.
^C
--- 172.18.90.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
Backtrace: 64-linux- gnu/libpthread. so.0 tbb/mutex. h:164 tbb/mutex. h:105 tbb/mutex. h:91 ble::Get (this=0x0, vmi_uuid=..., vm_uuid=...) at controller/ src/vnsw/ agent/port_ ipc/port_ subscribe_ table.cc: 516 :VmiProcessConf ig (this=<optimized out>, node=0x7f6ed801 67d0, req=..., u=...) at controller/ src/vnsw/ agent/oper/ vm_interface_ config. cc:1291 deList: :Process (this=0x7f6ee40 fa6c0, weight= weight@ entry=57) at controller/ src/vnsw/ agent/oper/ config_ manager. cc:137 entry=0x223c760 ) at controller/ src/vnsw/ agent/oper/ config_ manager. cc:395 :TimerRun (this=0x223c760) at controller/ src/vnsw/ agent/oper/ config_ manager. cc:355 boost/function/ function_ template. hpp:767 TimerTask: :Run (this=0x2245160) at controller/ src/base/ timer.cc: 44 f3d40) at controller/ src/base/ task.cc: 279 libtbb. so.2 libtbb. so.2 libtbb. so.2 libtbb. so.2 libtbb. so.2 64-linux- gnu/libpthread. so.0 64-linux- gnu/libc. so.6
------------
gdb) bt
#0 0x00007f6ef16c1404 in pthread_mutex_lock () from /lib/x86_
#1 0x000000000082c4b4 in lock (this=0x20) at /usr/include/
#2 acquire (mutex=..., this=<synthetic pointer>) at /usr/include/
#3 scoped_lock (mutex=..., this=<synthetic pointer>) at /usr/include/
#4 PortSubscribeTa
#5 0x0000000000aad80e in InterfaceTable:
#6 0x00000000009e10b5 in ConfigManagerNo
#7 0x00000000009dfaca in ConfigManager::Run (this=this@
#8 0x00000000009dfbce in ConfigManager:
#9 0x000000000114c5c9 in operator() (this=<optimized out>) at /usr/include/
#10 Timer::
#11 0x00000000011442c7 in TaskImpl::execute (this=0x7f6eea0
#12 0x00007f6ef14a3b3a in ?? () from /usr/lib/
#13 0x00007f6ef149f816 in ?? () from /usr/lib/
#14 0x00007f6ef149ef4b in ?? () from /usr/lib/
#15 0x00007f6ef149b0ff in ?? () from /usr/lib/
#16 0x00007f6ef149b2f9 in ?? () from /usr/lib/
#17 0x00007f6ef16bf184 in start_thread () from /lib/x86_
#18 0x00007f6ef099837d in clone () from /lib/x86_
#18 0x00007f6ef099837d in clone () from /lib/x86_ 64-linux- gnu/libc. so.6 ------- ------- ------- ------- --- ------- ------- ------- ------- -- ------- ------- ------- ------- ------ fabric- utils 4.0.0.0-2 2 install- packages 4.0.0.0-2~mitaka 2 openstack- vrouter 4.0.0.0-2 2 openstack- vrouter 4.0.0.0-2 2 vrouter- agent 4.0.0.0-2 2 vrouter- common 4.0.0.0-2 2 vrouter- dkms 4.0.0.0-2 2 vrouter- init 4.0.0.0-2 2 vrouter- utils 4.0.0.0-2 2 contrail- vrouter- api 4.0.0.0-2 2 opencontrail- vrouter- netns 4.0.0.0-2 2
(gdb) quit
root@5b7s4:~# contrail-version
Package Version Build-ID | Repo | Package Name
-------
contrail-
contrail-
contrail-lib 4.0.0.0-2 2
contrail-nodemgr 4.0.0.0-2 2
contrail-nova-vif 4.0.0.0-2 2
contrail-
contrail-setup 4.0.0.0-2 2
contrail-utils 4.0.0.0-2 2
^C
root@5b7s4:~# contrail-version | grep vrouter
contrail-
contrail-
contrail-
contrail-
contrail-
contrail-
python-
python-