CN crashes during service chain introspect when there's a deleted RI

Bug #1720724 reported by Nischal Sheth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
High
Pramodh D'Souza
R4.0
Fix Committed
High
Pramodh D'Souza
R4.1
Fix Committed
High
Pramodh D'Souza
Trunk
Fix Committed
High
Pramodh D'Souza

Bug Description

CN crashes during service chain introspect when there's a deleted RI.

The core is placed at
/cs-shared/bugs/1717231 on any blr shell server

bhushana@mayamruga:~/Documents/technical/bugs/1717231$ pwd
/home/bhushana/Documents/technical/bugs/1717231
bhushana@mayamruga:~/Documents/technical/bugs/1717231$ ls -lrt
total 579128
-rwxrwxrwx 1 bhushana bhushana 225251328 Sep 27 12:10 core.contrail-contro.29945.nodei21.1506492734
-rwxrwxrwx 1 bhushana bhushana 367772744 Sep 27 12:11 contrail-control
bhushana@mayamruga:~/Documents/technical/bugs/1717231$

BT
==
(gdb) bt
#0 BgpInstanceConfig::service_chain_info (this=0x0, family=family@entry=Address::INET) at controller/src/bgp/bgp_config.cc:360
#1 0x00000000006a13af in FillServiceChainInfo (family=Address::INET, rtinstance=0x2b660c038d60, info=..., search_expr=..., search_string="") at controller/src/bgp/routing-instance/show_service_chaining.cc:42
#2 BgpShowHandler<ShowServiceChainReq, ShowServiceChainReqIterate, ShowServiceChainResp, ShowServicechainInfo>::CallbackCommon (bsc=bsc@entry=0x7ffd5d5d7720, data=data@entry=0x2b661c009740) at controller/src/bgp/routing-instance/show_service_chaining.cc:78
#3 0x00000000006a275e in BgpShowHandler<ShowServiceChainReq, ShowServiceChainReqIterate, ShowServiceChainResp, ShowServicechainInfo>::Callback (sr=sr@entry=0x2b661400e870, ps=..., stage=stage@entry=0, instNum=instNum@entry=0, data=data@entry=0x2b661c009740)
    at controller/src/bgp/bgp_show_handler.h:172
#4 0x000000000069b1dc in operator()<bool, bool (*)(const Sandesh*, RequestPipeline::PipeSpec, int, int, RequestPipeline::InstData*), boost::_bi::list5<const Sandesh*&, const RequestPipeline::PipeSpec&, int&, int&, RequestPipeline::InstData*&> > (this=<optimized out>,
    f=<optimized out>, a=<synthetic pointer>) at /usr/include/boost/bind/bind.hpp:515
#5 operator()<const Sandesh*, const RequestPipeline::PipeSpec, int, int, RequestPipeline::InstData*> (a5=<synthetic pointer>, a4=<synthetic pointer>, a3=<synthetic pointer>, a2=..., a1=<synthetic pointer>, this=<optimized out>)
    at /usr/include/boost/bind/bind_template.hpp:174
#6 boost::detail::function::function_obj_invoker5<boost::_bi::bind_t<bool, bool (*)(Sandesh const*, RequestPipeline::PipeSpec, int, int, RequestPipeline::InstData*), boost::_bi::list5<boost::arg<1>, boost::arg<2>, boost::arg<3>, boost::arg<4>, boost::arg<5> > >, bool, Sandesh const*, RequestPipeline::PipeSpec const&, int, int, RequestPipeline::InstData*>::invoke (function_obj_ptr=..., a0=0x2b661400e870, a1=..., a2=0, a3=0, a4=0x2b661c009740) at /usr/include/boost/function/function_template.hpp:132
#7 0x0000000000d9a4d3 in operator() (a4=<optimized out>, a3=<optimized out>, a2=<optimized out>, a1=..., a0=<optimized out>, this=<optimized out>) at /usr/include/boost/function/function_template.hpp:767
#8 RequestPipeline::PipeImpl::RunInstance (this=<optimized out>, instNum=<optimized out>) at tools/sandesh/library/cpp/request_pipeline.cc:189
#9 0x0000000000d9baf5 in RequestPipeline::StageWorker::Run (this=0x2b661c06be00) at tools/sandesh/library/cpp/request_pipeline.cc:84
#10 0x00000000006fff37 in TaskImpl::execute (this=0x2b65b1aaaf40) at controller/src/base/task.cc:277
#11 0x00002b65a999cb3a in ?? ()
#12 0x00002b65b1a73f28 in ?? ()
#13 0x00002b65b1a73f40 in ?? ()
#14 0x0000000000000001 in ?? ()
#15 0x00002b65b19d3c80 in ?? ()
#16 0x00002b65b1a73f28 in ?? ()
#17 0x0000000000000000 in ?? ()

Nischal Sheth (nsheth)
description: updated
summary: - CN crash during service chain introspect when there's a deleted RI
+ CN crashes during service chain introspect when there's a deleted RI
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/36174
Submitter: Pramodh D'Souza (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/36246
Submitter: Pramodh D'Souza (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/36174
Submitter: Pramodh D'Souza (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/36246
Submitter: Pramodh D'Souza (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/36174
Committed: http://github.com/Juniper/contrail-controller/commit/9fa4ae0ed70d308ac3cb1cff657646092ec8fbec
Submitter: Zuul (<email address hidden>)
Branch: master

commit 9fa4ae0ed70d308ac3cb1cff657646092ec8fbec
Author: Pramodh D'Souza <email address hidden>
Date: Mon Oct 2 16:22:11 2017 -0700

Fix CN crash on executing service chain interospect

CN crashes during service chain introspect when there's a deleted RI
Fix: check is config has been deleted. Added test case to verify.
Closes-Bug: 1720724
Change-Id: Iefe06ad606f3f7f808bfc72ae4ab664425cef2f3

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/36433
Submitter: Pramodh D'Souza (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/36434
Submitter: Pramodh D'Souza (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/36434
Committed: http://github.com/Juniper/contrail-controller/commit/f6cedd43eb3942894dc9c86efa700ee640a312d6
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit f6cedd43eb3942894dc9c86efa700ee640a312d6
Author: Pramodh D'Souza <email address hidden>
Date: Mon Oct 2 16:22:11 2017 -0700

Fix CN crash on executing service chain interospect

CN crashes during service chain introspect when there's a deleted RI
Fix: check is config has been deleted. Added test case to verify.
Closes-Bug: 1720724
Change-Id: Iefe06ad606f3f7f808bfc72ae4ab664425cef2f3
(cherry picked from commit 9fa4ae0ed70d308ac3cb1cff657646092ec8fbec)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36433
Committed: http://github.com/Juniper/contrail-controller/commit/e80126ad3cb60fa23d0e8f8d311d84b743c8102a
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit e80126ad3cb60fa23d0e8f8d311d84b743c8102a
Author: Pramodh D'Souza <email address hidden>
Date: Mon Oct 2 16:22:11 2017 -0700

Fix CN crash on executing service chain interospect

CN crashes during service chain introspect when there's a deleted RI
Fix: check is config has been deleted. Added test case to verify.
Closes-Bug: 1720724
Change-Id: Iefe06ad606f3f7f808bfc72ae4ab664425cef2f3
(cherry picked from commit 9fa4ae0ed70d308ac3cb1cff657646092ec8fbec)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/36246
Committed: http://github.com/Juniper/contrail-controller/commit/88d9dcb99d0d9131139a13ae0c95d73848670467
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 88d9dcb99d0d9131139a13ae0c95d73848670467
Author: Pramodh D'Souza <email address hidden>
Date: Mon Oct 2 16:22:11 2017 -0700

Fix CN crash on executing service chain interospect

CN crashes during service chain introspect when there's a deleted RI
Fix: check is config has been deleted. Added test case to verify.
Closes-Bug: 1720724
Change-Id: Iefe06ad606f3f7f808bfc72ae4ab664425cef2f3

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.