Comment 0 for bug 1690507

Revision history for this message
chhandak (chhandak) wrote : [4.0.0.0-2~mitaka] Tor Agent crash when tor_agent_name is same as switch name

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
---------------------------------
{host4:[{
                    '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',
                       }

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:
------------
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

#18 0x00007f6ef099837d in clone () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) quit
root@5b7s4:~# contrail-version
Package Version Build-ID | Repo | Package Name
-------------------------------------- ------------------------------ ----------------------------------
contrail-fabric-utils 4.0.0.0-2 2
contrail-install-packages 4.0.0.0-2~mitaka 2
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-openstack-vrouter 4.0.0.0-2 2
contrail-setup 4.0.0.0-2 2
contrail-utils 4.0.0.0-2 2
^C
root@5b7s4:~# contrail-version | grep vrouter
contrail-openstack-vrouter 4.0.0.0-2 2
contrail-vrouter-agent 4.0.0.0-2 2
contrail-vrouter-common 4.0.0.0-2 2
contrail-vrouter-dkms 4.0.0.0-2 2
contrail-vrouter-init 4.0.0.0-2 2
contrail-vrouter-utils 4.0.0.0-2 2
python-contrail-vrouter-api 4.0.0.0-2 2
python-opencontrail-vrouter-netns 4.0.0.0-2 2