[R4.1 newton]query_engine getting crashed when querying sessionseriestable only with sample_count

Bug #1731177 reported by aswani kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
Fix Committed
High
mkheni
Trunk
Fix Committed
High
mkheni

Bug Description

R4.1 build 36 newton multinode

querying sessionseriestable with only sample_count in the select_fields causing query_engine crash

{
   "session_type":"client",
   "start_time":1510210140643398,
   "end_time":1510211152882282,
   "select_fields":[
      "sample_count"
   ],
   "table":"SessionSeriesTable",
   "where":[
      [
         {
            "value2":null,
            "name":"vn",
            "value":"default-domain:ctest-AnalyticsTestSanityWithResource-44528100:ctest-vn1-88214953",
            "op":1
         },
         {
            "value2":null,
            "name":"remote_vn",
            "value":"default-domain:ctest-AnalyticsTestSanityWithResource-44528100:ctest-vn2-06632143",
            "op":1
         }
      ]
   ]
}

root@nodec54:~# curl -H "X-Auth-Token:a8bd0966cef54bbaae286003f4e156d2" -X POST --data @query 10.204.217.95:8081/analytics/query --header "Content-Type:application/json"
Query Engine is not responding

root@nodec55(analytics):/# contrail-status
== Contrail Analytics ==
contrail-collector: active
contrail-analytics-api: active
contrail-query-engine: active
contrail-alarm-gen: active
contrail-snmp-collector: active
contrail-topology: active
contrail-analytics-nodemgr: active
========Run time service failures=============
/var/crashes/core.contrail-query-.3393.nodec55.1510211420
/var/crashes/core.contrail-query-.31038.nodec55.1510212770
/var/crashes/core.contrail-query-.637.nodec55.1510214539
/var/crashes/core.contrail-query-.30957.nodec55.1510211451
/var/crashes/core.contrail-query-.32389.nodec55.1510213419

back-trace
---------

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/bin/contrail-query-engine'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00000000004a3b1c in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
[Current thread is 1 (Thread 0x7f7b64c08780 (LWP 31038))]
(gdb) bt
#0 0x00000000004a3b1c in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#1 0x0000000000525a2f in ?? ()
#2 0x000000000050dd0d in ?? ()
#3 0x0000000000510fe1 in ?? ()
#4 0x000000000051a47e in ?? ()
#5 0x00000000004be521 in ?? ()
#6 0x00000000004c1160 in ?? ()
#7 0x00000000005c0067 in ?? ()
#8 0x0000000000799ae6 in ?? ()
#9 0x000000000079b689 in ?? ()
#10 0x000000000079bfd4 in ?? ()
#11 0x000000000066d955 in ?? ()
#12 0x0000000000667041 in ?? ()
#13 0x000000000042416e in ?? ()
#14 0x00007f7b620db830 in __gconv (cd=0x0, inbuf=0x7fb360, inbufend=0x433490 "1\355I\211\321^H\211\342H\203\344\360PTI\307\300\320\263\177", outbuf=0x4227a0,
    outbufend=<optimized out>, irreversible=0x0) at gconv.c:84
#15 0xb9b097af4e828da3 in ?? ()
#16 0x0000000000000000 in ?? ()
(gdb)

Tags: analytics
Changed in juniperopenstack:
assignee: arvind pruthi (arvind) → Arvind (arvindv)
Revision history for this message
aswani kumar (aswanikumar90) wrote :

cores and logs are copied to below location

stack@10.204.216.49:/cs-shared/bugs/1731177/
password:stack@123

Changed in juniperopenstack:
milestone: none → r4.1.0.0-fcs
Changed in juniperopenstack:
milestone: r4.1.0.0-fcs → r5.0.0
mkheni (mkheni)
Changed in juniperopenstack:
assignee: Arvind (arvindv) → mkheni (mkheni)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/37359
Submitter: mkheni (<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/37360
Submitter: mkheni (<email address hidden>)

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

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

commit a1e689cc542e7b9a59bfd43b4055adb7b20e6812
Author: mkheni <email address hidden>
Date: Thu Nov 9 11:20:53 2017 -0800

query_engine crashes when querying SessionSeriesTable
only with session_class_id or sample_count.

session_class_id and sample_count are not supposed
to be queried alone, there has to be some other field in
select with it. Return EINVAL if these fields are queried
alone.

Change-Id: I24574662b56b2ea26311983bc1e37c20d7f518f1
Closes-bug: #1731177

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

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

commit 7eb283c9c60880a8583ab3c258e882c8f5488a93
Author: mkheni <email address hidden>
Date: Thu Nov 9 11:20:53 2017 -0800

query_engine crashes when querying SessionSeriesTable
only with session_class_id or sample_count.

session_class_id and sample_count are not supposed
to be queried alone, there has to be some other field in
select with it. Return EINVAL if these fields are queried
alone.

Change-Id: I24574662b56b2ea26311983bc1e37c20d7f518f1
Closes-bug: #1731177

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.