Activity log for bug #1674283

Date Who What changed Old value New value Message
2017-03-20 10:50:19 Ankit Jain bug added bug
2017-03-20 10:52:40 Ankit Jain juniperopenstack: importance Undecided High
2017-03-20 11:51:05 Ankit Jain juniperopenstack: milestone r3.2.2.0
2017-03-20 11:51:11 Ankit Jain nominated for series juniperopenstack/r3.2
2017-03-20 11:51:11 Ankit Jain bug task added juniperopenstack/r3.2
2017-03-20 11:51:24 Ankit Jain juniperopenstack/r3.2: milestone r3.2.2.0
2017-03-20 11:51:54 Ankit Jain juniperopenstack/r3.2: assignee Nikhil Bansal (nikhilb-u)
2017-03-20 11:51:57 Ankit Jain juniperopenstack/r3.2: importance Undecided High
2017-03-20 12:05:42 Ankit Jain description AnalyticsTestSanityWithResource.test_verify_flow_tables test case failed due to this issue. OpServerUtils.get_query_result(Async query) not returning the result. In the following code, OpServerUtils.get_query_result is not returning anything: try: qid = resp['href'].rsplit('/', 1)[1] result = OpServerUtils.get_query_result( self._ip, str(self._port), qid, headers) for item in result: res.append(item) except Exception as e: if 'value' in resp: for item in resp['value']: res.append(item) The following was the query: http://10.204.217.172:8081/analytics/query/9ed98ea8-0d55-11e7-9b75-00000accd9ac/chunk-final/0 and the query did not return anything as opposed to the script expectation. Looks like an issue with the where clause when async query is done. In this case, src vn and dst were specified as shown below.. When Query: (Pdb) query_dict {'table': 'FlowRecordTable', 'start_time': 1490024059000000, 'where': [[{'value2': None, 'name': 'sourcevn', 'value': 'default-domain:ctest-AnalyticsTestSanityWithResource-27927104:ctest-vn1-74822829', 'op': 1}, {'value2': None, 'name': 'destvn', 'value': 'default-domain:ctest-AnalyticsTestSanityWithResource-27927104:ctest-vn2-71443793', 'op': 1}]], 'end_time': 1490004657344320, 'select_fields': ['sourcevn', 'sourceip', 'destvn', 'destip', 'setup_time', 'teardown_time', 'agg-packets']} Logs: > /root/contrail-test-ci/tcutils/collector/opserver_introspect_utils.py(297)post_query() -> flows_url = OpServerUtils.opserver_query_url(self._ip, str(self._port)) flows_url 'http://10.204.217.172:8081/analytics/query' -> query_dict = OpServerUtils.get_query_dict(table, start_time, end_time,select_fields,where_clause,sort_fields, sort, limit, filter, dir) (Pdb) query_dict {'table': 'FlowRecordTable', 'start_time': 1490024059000000, 'where': [[{'value2': None, 'name': 'sourcevn', 'value': 'default-domain:ctest-AnalyticsTestSanityWithResource-27927104:ctest-vn1-74822829', 'op': 1}, {'value2': None, 'name': 'destvn', 'value': 'default-domain:ctest-AnalyticsTestSanityWithResource-27927104:ctest-vn2-71443793', 'op': 1}]], 'end_time': 1490004657344320, 'select_fields': ['sourcevn', 'sourceip', 'destvn', 'destip', 'setup_time', 'teardown_time', 'agg-packets']} -> resp = OpServerUtils.post_url_http(flows_url, json.dumps(query_dict), headers) resp u'{"href": "/analytics/query/9ed98ea8-0d55-11e7-9b75-00000accd9ac"}' -> qid = resp['href'].rsplit('/', 1)[1] > /root/contrail-test-ci/tcutils/collector/opserver_introspect_utils.py(315)post_query() -> result = OpServerUtils.get_query_result(self._ip, str(self._port), qid, headers) -> print resp.__dict__ {'cookies': <<class 'requests.cookies.RequestsCookieJar'>[]>, '_content': False, 'headers': CaseInsensitiveDict({'date': 'Mon, 20 Mar 2017 10:12:16 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json'}), 'url': u'http://10.204.217.172:8081/analytics/query/9ed98ea8-0d55-11e7-9b75-00000accd9ac/chunk-final/0', 'status_code': 200, '_content_consumed': False, 'encoding': None, 'request': <PreparedRequest [GET]>, 'connection': <requests.adapters.HTTPAdapter object at 0x7ff9946d1d50>, 'elapsed': datetime.timedelta(0, 0, 6647), 'raw': <urllib3.response.HTTPResponse object at 0x7ff994702310>, 'reason': 'OK', 'history': []} > /root/contrail-test-ci/tcutils/collector/opserver_util.py(140)get_query_result() -> for chunk in status['chunks']: status['chunks'] [{u'count': 0, u'start_time': u'1490024059000000', u'lines': 0, u'href': u'/analytics/query/9ed98ea8-0d55-11e7-9b75-00000accd9ac/chunk-final/0', u'end_time': u'1490004657344320', u'ttl': 271, u'progress': 100}] http://10.204.217.172:8081/analytics/query/9ed98ea8-0d55-11e7-9b75-00000accd9ac/chunk-final/0 { value: [ ] } root/contrail-test-ci/serial_scripts/analytics/test_analytics_resource.py(874)test_verify_flow_tables() -> self.logger.info("Query output: %s" % (self.res2)) (Pdb) n 2017-03-20 10:31:00,726 - INFO - Query output: [] Discussed with Nikhil. AnalyticsTestSanityWithResource.test_verify_flow_tables test case failed due to this issue. Failing in the following : [Build "Ubuntu 14.04.4 LTS" 3.0.3.3-21~kilo] Multi-Interface HA Sanity[mgmt, ctrl=data] Report [Build "Ubuntu 14.04.4 LTS" 3.0.3.3-21~kilo] Multi-Interface HA Sanity[mgmt, ctrl=data] Report [Build "Ubuntu 14.04.5 LTS" 3.2.2.0-31~kilo] Multi-Node Virtual Testbed Sanity[mgmt, ctrl=data] Report [Build "Ubuntu 14.04.5 LTS" 3.2.2.0-31~mitaka] Multi-Node Virtual Testbed Contrail Networking Package Sanity Report OpServerUtils.get_query_result(Async query) not returning the result. In the following code, OpServerUtils.get_query_result is not returning anything:                 try:                     qid = resp['href'].rsplit('/', 1)[1]                     result = OpServerUtils.get_query_result(                         self._ip, str(self._port), qid, headers)                     for item in result:                         res.append(item)                 except Exception as e:                     if 'value' in resp:                         for item in resp['value']:                             res.append(item) The following was the query: http://10.204.217.172:8081/analytics/query/9ed98ea8-0d55-11e7-9b75-00000accd9ac/chunk-final/0 and the query did not return anything as opposed to the script expectation. Looks like an issue with the where clause when async query is done. In this case, src vn and dst were specified as shown below.. When Query: (Pdb) query_dict {'table': 'FlowRecordTable', 'start_time': 1490024059000000, 'where': [[{'value2': None, 'name': 'sourcevn', 'value': 'default-domain:ctest-AnalyticsTestSanityWithResource-27927104:ctest-vn1-74822829', 'op': 1}, {'value2': None, 'name': 'destvn', 'value': 'default-domain:ctest-AnalyticsTestSanityWithResource-27927104:ctest-vn2-71443793', 'op': 1}]], 'end_time': 1490004657344320, 'select_fields': ['sourcevn', 'sourceip', 'destvn', 'destip', 'setup_time', 'teardown_time', 'agg-packets']} Logs: > /root/contrail-test-ci/tcutils/collector/opserver_introspect_utils.py(297)post_query() -> flows_url = OpServerUtils.opserver_query_url(self._ip, str(self._port))  flows_url 'http://10.204.217.172:8081/analytics/query' -> query_dict = OpServerUtils.get_query_dict(table, start_time, end_time,select_fields,where_clause,sort_fields, sort, limit, filter, dir) (Pdb) query_dict {'table': 'FlowRecordTable', 'start_time': 1490024059000000, 'where': [[{'value2': None, 'name': 'sourcevn', 'value': 'default-domain:ctest-AnalyticsTestSanityWithResource-27927104:ctest-vn1-74822829', 'op': 1}, {'value2': None, 'name': 'destvn', 'value': 'default-domain:ctest-AnalyticsTestSanityWithResource-27927104:ctest-vn2-71443793', 'op': 1}]], 'end_time': 1490004657344320, 'select_fields': ['sourcevn', 'sourceip', 'destvn', 'destip', 'setup_time', 'teardown_time', 'agg-packets']} -> resp = OpServerUtils.post_url_http(flows_url, json.dumps(query_dict), headers)  resp u'{"href": "/analytics/query/9ed98ea8-0d55-11e7-9b75-00000accd9ac"}' -> qid = resp['href'].rsplit('/', 1)[1] > /root/contrail-test-ci/tcutils/collector/opserver_introspect_utils.py(315)post_query() -> result = OpServerUtils.get_query_result(self._ip, str(self._port), qid, headers) -> print resp.__dict__ {'cookies': <<class 'requests.cookies.RequestsCookieJar'>[]>, '_content': False, 'headers': CaseInsensitiveDict({'date': 'Mon, 20 Mar 2017 10:12:16 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json'}), 'url': u'http://10.204.217.172:8081/analytics/query/9ed98ea8-0d55-11e7-9b75-00000accd9ac/chunk-final/0', 'status_code': 200, '_content_consumed': False, 'encoding': None, 'request': <PreparedRequest [GET]>, 'connection': <requests.adapters.HTTPAdapter object at 0x7ff9946d1d50>, 'elapsed': datetime.timedelta(0, 0, 6647), 'raw': <urllib3.response.HTTPResponse object at 0x7ff994702310>, 'reason': 'OK', 'history': []} > /root/contrail-test-ci/tcutils/collector/opserver_util.py(140)get_query_result() -> for chunk in status['chunks']: status['chunks'] [{u'count': 0, u'start_time': u'1490024059000000', u'lines': 0, u'href': u'/analytics/query/9ed98ea8-0d55-11e7-9b75-00000accd9ac/chunk-final/0', u'end_time': u'1490004657344320', u'ttl': 271, u'progress': 100}] http://10.204.217.172:8081/analytics/query/9ed98ea8-0d55-11e7-9b75-00000accd9ac/chunk-final/0 { value: [ ] } root/contrail-test-ci/serial_scripts/analytics/test_analytics_resource.py(874)test_verify_flow_tables() -> self.logger.info("Query output: %s" % (self.res2)) (Pdb) n 2017-03-20 10:31:00,726 - INFO - Query output: [] Discussed with Nikhil.
2017-03-20 12:05:56 Ankit Jain nominated for series juniperopenstack/r3.0
2017-03-20 12:05:56 Ankit Jain bug task added juniperopenstack/r3.0
2017-03-20 12:06:13 Ankit Jain juniperopenstack/r3.0: milestone r3.0.3.3
2017-03-20 12:06:19 Ankit Jain juniperopenstack/r3.0: importance Undecided High
2017-03-20 12:06:30 Ankit Jain juniperopenstack/r3.0: assignee Nikhil Bansal (nikhilb-u)
2017-03-20 21:51:38 Jeba Paulaiyan juniperopenstack/r3.0: milestone r3.0.3.3
2017-03-20 21:51:49 Jeba Paulaiyan nominated for series juniperopenstack/r3.1
2017-03-20 21:51:49 Jeba Paulaiyan bug task added juniperopenstack/r3.1
2017-03-20 21:51:49 Jeba Paulaiyan nominated for series juniperopenstack/r3.0.3.x
2017-03-20 21:51:49 Jeba Paulaiyan bug task added juniperopenstack/r3.0.3.x
2017-03-20 21:51:49 Jeba Paulaiyan nominated for series juniperopenstack/trunk
2017-03-20 21:51:49 Jeba Paulaiyan bug task added juniperopenstack/trunk
2017-03-20 21:52:05 Jeba Paulaiyan juniperopenstack/r3.0.3.x: importance Undecided High
2017-03-20 21:52:07 Jeba Paulaiyan juniperopenstack/r3.1: importance Undecided High
2017-03-20 21:52:25 Jeba Paulaiyan juniperopenstack/r3.0.3.x: assignee Nikhil Bansal (nikhilb-u)
2017-03-20 21:52:33 Jeba Paulaiyan juniperopenstack/r3.1: assignee Nikhil Bansal (nikhilb-u)
2017-03-20 21:52:44 Jeba Paulaiyan juniperopenstack/trunk: milestone r4.0
2017-03-22 22:46:34 Jeba Paulaiyan juniperopenstack/r3.2: milestone r3.2.2.0 r3.2.3.0
2017-04-14 00:04:44 Jeba Paulaiyan tags analytics sanity analytics
2017-04-14 09:26:42 Nikhil Bansal juniperopenstack/r3.2: status New Incomplete
2017-04-14 09:26:51 Nikhil Bansal juniperopenstack/trunk: status New Incomplete
2017-04-17 16:36:31 OpenContrail Admin juniperopenstack/r3.2: status Incomplete In Progress
2017-04-17 16:36:34 OpenContrail Admin juniperopenstack/trunk: status Incomplete In Progress
2017-04-18 03:15:22 Nikhil Bansal juniperopenstack/trunk: assignee Nikhil Bansal (nikhilb-u) Sandip Dey (sandipd)
2017-04-18 03:15:35 Nikhil Bansal juniperopenstack/r3.2: assignee Nikhil Bansal (nikhilb-u) Sandip Dey (sandipd)
2017-04-18 03:15:46 Nikhil Bansal juniperopenstack/r3.1: assignee Nikhil Bansal (nikhilb-u) Sandip Dey (sandipd)
2017-04-18 03:16:03 Nikhil Bansal juniperopenstack/r3.0.3.x: assignee Nikhil Bansal (nikhilb-u) Sandip Dey (sandipd)
2017-04-18 03:16:09 Nikhil Bansal juniperopenstack/r3.0: assignee Nikhil Bansal (nikhilb-u) Sandip Dey (sandipd)
2017-04-20 23:11:10 Raj Reddy tags analytics automation
2017-05-11 18:25:55 Jeba Paulaiyan nominated for series juniperopenstack/r4.0
2017-05-11 18:25:55 Jeba Paulaiyan bug task added juniperopenstack/r4.0
2017-05-11 18:26:06 Jeba Paulaiyan juniperopenstack/r4.0: importance Undecided High
2017-05-11 18:26:13 Jeba Paulaiyan juniperopenstack/r4.0: assignee Sandip Dey (sandipd)
2017-05-11 18:26:28 Jeba Paulaiyan juniperopenstack/r4.0: milestone r4.0.0.0-fcs
2017-05-11 18:26:32 Jeba Paulaiyan juniperopenstack/trunk: milestone r4.0.0.0-fcs r4.1.0.0-fcs
2017-06-01 00:02:26 Jeba Paulaiyan juniperopenstack/r4.0: milestone r4.0.0.0-fcs r4.0.1.0
2017-07-10 07:54:13 Jeba Paulaiyan juniperopenstack/r3.2: milestone r3.2.3.0 r3.2.4.0
2017-07-17 21:44:06 Jeba Paulaiyan juniperopenstack/r3.2: status In Progress Fix Committed
2017-07-17 21:44:11 Jeba Paulaiyan juniperopenstack/r3.2: status Fix Committed In Progress
2017-07-17 21:44:15 Jeba Paulaiyan juniperopenstack/r3.2: milestone r3.2.4.0 r3.2.5.0
2017-07-18 04:58:08 Sandip Dey juniperopenstack/r3.2: status In Progress Fix Committed
2017-07-18 04:58:30 Sandip Dey juniperopenstack/r4.0: status New Fix Committed
2017-10-27 07:34:51 Jeba Paulaiyan nominated for series juniperopenstack/r4.1
2017-10-27 07:34:51 Jeba Paulaiyan bug task added juniperopenstack/r4.1
2017-10-27 07:35:01 Jeba Paulaiyan juniperopenstack/r4.1: importance Undecided High
2017-10-27 07:35:08 Jeba Paulaiyan juniperopenstack/r4.1: assignee Sandip Dey (sandipd)
2017-10-27 07:35:14 Jeba Paulaiyan juniperopenstack/r4.1: milestone r4.1.0.0-fcs
2017-10-27 07:35:18 Jeba Paulaiyan juniperopenstack/trunk: milestone r4.1.0.0-fcs r5.0.0
2017-11-15 08:19:34 Vinay Mahuli juniperopenstack/trunk: status In Progress Fix Committed
2017-11-15 08:20:50 Vinay Mahuli juniperopenstack/r4.1: status New Fix Committed