Seen contrail query crash after provisioning

Bug #1722459 reported by musharani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
Fix Committed
Medium
Manoj
Trunk
Invalid
Medium
Manoj

Bug Description

Contrail query engine is crashed after provisioning R3.2-56 build. Continuously getting the contrail query crash.

cores in /cs-shared/bugs/1722459

Setup is in the same state.
nodec41 - username/password: root/c0ntrail123

[root@nodec41 crashes]# gdb /usr/bin/contrail-query-engine core.contrail-query-.31270.nodec41.1507614838
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-94.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/contrail-query-engine...(no debugging symbols found)...done.

warning: core file may not match specified executable file.
[New LWP 31270]
[New LWP 31304]
[New LWP 31306]
[New LWP 31307]
[New LWP 31305]
[New LWP 31292]
[New LWP 31299]
[New LWP 31280]
[New LWP 31290]
[New LWP 31279]
[New LWP 31278]
[New LWP 31277]
[New LWP 31285]
[New LWP 31284]
[New LWP 31283]
[New LWP 31293]
[New LWP 31287]
[New LWP 31282]
[New LWP 31291]
[New LWP 31286]
[New LWP 31281]
[New LWP 31289]
[New LWP 31288]
[New LWP 31298]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/bin/contrail-query-engine --conf_file /etc/contrail/contrail-query-engine.'.
Program terminated with signal 6, Aborted.
#0 0x00002b020cacc1d7 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install contrail-analytics-3.2.6.0-56.el7.centos.x86_64
(gdb) bt
#0 0x00002b020cacc1d7 in raise () from /lib64/libc.so.6
#1 0x00002b020cacd8c8 in abort () from /lib64/libc.so.6
#2 0x00002b020cac5146 in __assert_fail_base () from /lib64/libc.so.6
#3 0x00002b020cac51f2 in __assert_fail () from /lib64/libc.so.6
#4 0x000000000042cdfd in rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::FindMember(char const*) ()
#5 0x00000000005573af in rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::FindMember(char const*) const ()
#6 0x0000000000554f0f in rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::HasMember(char const*) const ()
#7 0x000000000053de0d in PostProcessingQuery::PostProcessingQuery(std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >&, QueryUnit*) ()
#8 0x000000000054496d in AnalyticsQuery::Init(std::string, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >&, int) ()
#9 0x000000000054bbca in AnalyticsQuery::AnalyticsQuery(std::string, boost::shared_ptr<GenDb::GenDbIf>, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >, int, std::vector<query_result_unit_t, std::allocator<query_result_unit_t> > const*, std::map<TtlType::type, unsigned long, std::less<TtlType::type>, std::allocator<std::pair<TtlType::type const, unsigned long> > > const&, int, int, QueryEngine*, void*) ()
#10 0x000000000054e7a8 in QueryEngine::QueryPrepare(QueryEngine::QueryParams, std::vector<unsigned long, std::allocator<unsigned long> >&, bool&, bool&, std::string&, unsigned int&, std::string&, std::string&, unsigned long&, std::string&) ()
#11 0x00000000004a0deb in QEOpServerProxy::QEOpServerImpl::StartPipeline(std::string) ()
#12 0x00000000004a44c0 in QEOpServerProxy::QEOpServerImpl::CallbackProcess(unsigned char, redisAsyncContext const*, void*, void*) ()
#13 0x00000000004cbb1e in boost::_mfi::mf4<void, QEOpServerProxy::QEOpServerImpl, unsigned char, redisAsyncContext const*, void*, void*>::operator()(QEOpServerProxy::QEOpServerImpl*, unsigned char, redisAsyncContext const*, void*, void*) const ()
#14 0x00000000004ca00a in void boost::_bi::list5<boost::_bi::value<QEOpServerProxy::QEOpServerImpl*>, boost::_bi::value<unsigned char>, boost::arg<1>, boost::arg<2>, boost::arg<3> >::operator()<boost::_mfi::mf4<void, QEOpServerProxy::QEOpServerImpl, unsigned char, redisAsyncContext const*, void*, void*>, boost::_bi::list3<redisAsyncContext const*&, void*&, void*&> >(boost::_bi::type<void>, boost::_mfi::mf4<void, QEOpServerProxy::QEOpServerImpl, unsigned char, redisAsyncContext const*, void*, void*>&, boost::_bi::list3<redisAsyncContext const*&, void*&, void*&>&, int) ()
#15 0x00000000004c756b in void boost::_bi::bind_t<void, boost::_mfi::mf4<void, QEOpServerProxy::QEOpServerImpl, unsigned char, redisAsyncContext const*, void*, void*>, boost::_bi::list5<boost::_bi::value<QEOpServerProxy::QEOpServerImpl*>, boost::_bi::value<unsigned char>, boost::arg<1>, boost::arg<2>, boost::arg<3> > >::operator()<redisAsyncContext const*, void*, void*>(redisAsyncContext const*&, void*&, void*&) ()
#16 0x00000000004c32d8 in boost::detail::function::void_function_obj_invoker3<boost::_bi::bind_t<void, boost::_mfi::mf4<void, QEOpServerProxy::QEOpServerImpl, unsigned char, redisAsyncContext const*, void*, void*>, boost::_bi::list5<boost::_bi::value<QEOpServerProxy::QEOpServerImpl*>, boost::_bi::value<unsigned char>, boost::arg<1>, boost::arg<2>, boost::arg<3> > >, void, redisAsyncContext const*, void*, void*>::invoke(boost::detail::function::function_buffer&, redisAsyncContext const*, void*, void*) ()
#17 0x00000000005fc9ad in boost::function3<void, redisAsyncContext const*, void*, void*>::operator()(redisAsyncContext const*, void*, void*) const ()
---Type <return> to continue, or q <return> to quit---

Tags: ui
musharani (musharani)
description: updated
description: updated
Changed in juniperopenstack:
assignee: VishnuVardhan V (vishnuvv) → Manoj (manojgn)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/36391
Submitter: Manoj (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/36391
Committed: http://github.com/Juniper/contrail-web-core/commit/080ff556f2221adf5c687508740df19bad9a6988
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit 080ff556f2221adf5c687508740df19bad9a6988
Author: Manoj Naik <email address hidden>
Date: Tue Oct 10 17:30:54 2017 +0530

Fixing the query error issue from Monitor dashboard page while displaying the logs.

As we moved to the new query where the queries are sanitzed before sending to the
backend the queries with special characters lik < > were converted to &lt; and &rt;
which was causing issues in query engine.
Providing a quick fix by getting rid of the query by converting Level <= 4 to
Level = 1 OR Level = 2 etc.

Change-Id: I970ead2a4144d64121322b37a839f93daa6ecd70
Closes-Bug: #1722459

Revision history for this message
Jeba Paulaiyan (jebap) wrote :

Hi Jeba,

This issue is happening due to this commit https://github.com/Juniper/contrail-web-core/commit/3243c72c9a816e3023489971f3d16a4763795ddc which was done only on 3.2.

It will not affect mainline or 4.0

Regards,
Manoj

Manoj (manojgn)
Changed in juniperopenstack:
status: New → Invalid
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.