[5.1.0-91~ocata] contrail-logs cmd not working
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Invalid
|
Low
|
Ankit Jain |
Bug Description
contrail-logs --object-type virtual-network --last 10m --module contrail-control
Error in query processing
test case also failing :
2018-05-10 15:20:05,185 - INFO - STARTING TEST : test_run_
2018-05-10 15:20:05,185 - INFO - TEST DESCRIPTION : 1.Test to verify contrail-logs cli cmd with multiple different optional type args is not broken
2.Verify the command runs properly and its returning some output
3.Do not verify the correctness of the output
2018-05-10 15:20:06,219 - WARNING - Test is running with cores: {'10.204.216.96': ['core.
2018-05-10 15:20:10,400 - INFO - Initial checks done. Running the testcase now
2018-05-10 15:20:10,400 - INFO -
2018-05-10 15:20:10,400 - INFO - Running the following cmd:contrail-logs --object-type vrouter --start-time now-5m --end-time now
2018-05-10 15:20:23,391 - INFO - Output: Error in query processing
2018-05-10 15:20:23,391 - INFO - Running the following cmd:contrail-logs --object-type database-node --start-time now-10m --end-time now --raw --message-type NodeStatusUVE
2018-05-10 15:20:29,107 - INFO - Output: Error in query processing
2018-05-10 15:20:29,107 - INFO - Running the following cmd:contrail-logs --node-type Database --start-time now-2h --message-type CassandraStatusUVE
2018-05-10 15:20:36,361 - INFO - Output: Error in query processing
Error in query processing
Error in query processing
Error in query processing
Error in query processing
Error in query processing
Error in query processing
Error in query processing
Error in query processing
Error in query processing
Error in query processing
Error in query processing
2018-05-10 15:20:36,361 - INFO - Running the following cmd:contrail-logs --node-type Compute --start-time now-10m --json --message-type UveVMInterfaceA
2018-05-10 15:20:37,548 - INFO - Output: Error in query processing
2018-05-10 15:20:37,548 - INFO - Running the following cmd:contrail-logs --start-time now-20m --end-time now --message-type SandeshModuleCl
2018-05-10 15:20:39,251 - INFO - Output: Error in query processing
Error in query processing
2018-05-10 15:20:39,251 - INFO - Running the following cmd:contrail-logs --node-type Config --raw --module contrail-api
2018-05-10 15:20:40,404 - INFO - Output: Error in query processing
2018-05-10 15:20:40,404 - INFO - Running the following cmd:contrail-logs --node-type Compute --last 5m --verbose --reverse --message-type UveVirtualNetwo
2018-05-10 15:20:41,673 - INFO - Output: Performing query: {"sort": 2, "start_time": 1525945541024241, "sort_fields": ["MessageTS"], "filter": [[{"suffix": null, "value2": null, "name": "NodeType", "value": "Compute", "op": 1}]], "end_time": 1525945841024241, "select_fields": ["MessageTS", "Source", "ModuleId", "Category", "Messagetype", "SequenceNum", "Xmlmessage", "Type", "Level", "NodeType", "InstanceId"], "table": "MessageTable", "where": [[{"suffix": null, "value2": null, "name": "ModuleId", "value": "contrail-
Error in query processing
2018-05-10 15:20:41,674 - INFO - Running the following cmd:contrail-logs --node-type Analytics --json --message-type AnalyticsApiStats --module contrail-
2018-05-10 15:20:42,785 - INFO - Output: Error in query processing
2018-05-10 15:20:42,785 - INFO - Running the following cmd:contrail-logs --object-id 721462c6-
2018-05-10 15:20:43,962 - INFO - Output: Performing query: {"sort": 1, "start_time": 1525945243360679, "sort_fields": ["MessageTS"], "end_time": 1525945843360679, "select_fields": ["MessageTS", "Source", "ModuleId", "Messagetype", "ObjectLog", "SystemLog"], "table": "ObjectVMTable", "where": [[{"suffix": null, "value2": null, "name": "ObjectId", "value": "721462c6-
Error in query processing
2018-05-10 15:20:43,962 - INFO - Running the following cmd:contrail-logs --node-type Analytics --message-type AnalyticsApiStats --module contrail-
2018-05-10 15:20:45,129 - INFO - Output: Error in query processing
2018-05-10 15:20:45,129 - INFO - Running the following cmd:contrail-logs --object-type virtual-network --last 10m --module contrail-control
2018-05-10 15:22:50,128 - ERROR - <class 'fabric.
Python 2.7.5: /usr/bin/python
Thu May 10 15:22:45 2018
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-
76 log.info('Initial checks done. Running the testcase now')
77 log.info('')
78 result = function(self, *args, **kwargs)
79 except KeyboardInterrupt:
80 raise
result = None
function = <function test_run_
self = <serial_
args = ()
kwargs = {}
/contrail-
165 ]
166
167 return self.test_
168
169 @test.attr(
self = <serial_
self.test_
cmd_args_list = [{'no_key': ['start-time now-5m', 'end-time now'], 'object-type': 'vrouter'}, {'message-type': 'NodeStatusUVE', 'no_key': ['start-time now-10m', 'end-time now', 'raw'], 'object-type': 'database-node'}, {'message-type': 'CassandraStatu
check_output undefined
builtinTrue = True
/contrail-
51 cmd = self._form_
52 self.logger.
53 if not self.execute_
54 self.logger.
55 failed_
self = <serial_
self.execute_
cmd = 'contrail-logs --object-type virtual-network --last 10m --module contrail-control'
check_output = True
as_sudo = False
/contrail-
78 analytics = self.res.
79 output = self.res.
80 container=
81 self.logger.
82 if output.failed:
container undefined
as_sudo = False
/contrail-
1378 container=
1379 detach=detach,
1380 shell_prefix=
1381 return output
1382 # end run_cmd_on_server
shell_prefix = '/bin/bash -c '
/contrail-
812 updated_cmd = 'docker exec %s %s' % (container_
813 logger.debug('[%s]: Running cmd : %s' % (server_ip, updated_cmd))
814 output = _run(updated_cmd, pty=pty)
815 logger.
816 return output
output undefined
_run = <function sudo>
updated_cmd = "docker exec --privileged -it analytics_api_1 /...ual-network --last 10m --module contrail-control'"
pty = True
/usr/lib/
631 " host string for connection: ")
632 env.update(
633 return func(*args, **kwargs)
634 host_prompting_
635 return host_prompting_
func = <function sudo>
args = ("docker exec --privileged -it analytics_api_1 /...ual-network --last 10m --module contrail-
kwargs = {'pty': True}
/usr/lib/
1093 user=user if user else env.sudo_user,
1094 group=group, quiet=quiet, warn_only=
1095 stderr=stderr, timeout=timeout, shell_escape=
1096 )
1097
stderr = None
timeout = None
shell_escape = None
/usr/lib/
909 channel=
910 combine_
911 stderr=stderr, timeout=timeout)
912
913 # Assemble output string
stderr = None
timeout = None
/usr/lib/
793 # exception within, recv_exit_status())
794 for worker in workers:
795 worker.
796 try:
797 time.sleep(
worker = <fabric.
worker.
/usr/lib/
10 def wrapper(*args, **kwargs):
11 try:
12 callable(*args, **kwargs)
13 except BaseException:
14 self.exception = sys.exc_info()
callable = <function output_loop>
args = (<paramiko.Channel 17 (open) window=2097145 -> <p...s128-ctr, 128 bits) (active; 1 open channel(s))>>, 'recv')
kwargs = {'capture': ['\r', '\n', '\r', '\n', '\r', '\n', ' ', '\r', '\n', '\r', '\n', '\r', '\n'], 'stream': <open file '<stdout>', mode 'w'>, 'timeout': 120}
/usr/lib/
29
30 def output_loop(*args, **kwargs):
31 OutputLooper(*args, **kwargs).loop()
32
33
global OutputLooper = <class 'fabric.
args = (<paramiko.Channel 17 (open) window=2097145 -> <p...s128-ctr, 128 bits) (active; 1 open channel(s))>>, 'recv')
kwargs = {'capture': ['\r', '\n', '\r', '\n', '\r', '\n', ' ', '\r', '\n', '\r', '\n', '\r', '\n'], 'stream': <open file '<stdout>', mode 'w'>, 'timeout': 120}
).loop undefined
/usr/lib/
84 elapsed = time.time() - start
85 if self.timeout is not None and elapsed > self.timeout:
86 raise CommandTimeout
87 continue
88 # Empty byte == EOS
global CommandTimeout = <class 'fabric.
<class 'fabric.
__class__ = <class 'fabric.
__delattr__ = <method-wrapper '__delattr__' of CommandTimeout object>
__dict__ = {}
__doc__ = None
__format__ = <built-in method __format__ of CommandTimeout object>
__getattrib
__getitem__ = <method-wrapper '__getitem__' of CommandTimeout object>
__getslice__ = <method-wrapper '__getslice__' of CommandTimeout object>
__hash__ = <method-wrapper '__hash__' of CommandTimeout object>
__init__ = <method-wrapper '__init__' of CommandTimeout object>
__module__ = 'fabric.exceptions'
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of CommandTimeout object>
__reduce_ex__ = <built-in method __reduce_ex__ of CommandTimeout object>
__repr__ = <method-wrapper '__repr__' of CommandTimeout object>
__setattr__ = <method-wrapper '__setattr__' of CommandTimeout object>
__setstate__ = <built-in method __setstate__ of CommandTimeout object>
__sizeof__ = <built-in method __sizeof__ of CommandTimeout object>
__str__ = <method-wrapper '__str__' of CommandTimeout object>
__subclassh
__unicode__ = <built-in method __unicode__ of CommandTimeout object>
__weakref__ = None
args = ()
message = ''
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "tcutils/
result = function(self, *args, **kwargs)
File "serial_
return self.test_
File "/contrail-
if not self.execute_
File "/contrail-
container=
File "common/
shell_
File "tcutils/util.py", line 814, in run_cmd_on_server
output = _run(updated_cmd, pty=pty)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
stderr=stderr, timeout=timeout, shell_escape=
File "/usr/lib/
stderr=stderr, timeout=timeout)
File "/usr/lib/
worker.
File "/usr/lib/
callable(*args, **kwargs)
File "/usr/lib/
OutputLoope
File "/usr/lib/
raise CommandTimeout
CommandTimeout
2018-05-10 15:22:50,131 - ERROR - Cores found(2): {'10.204.216.96': ['core.
2018-05-10 15:22:50,131 - INFO -
2018-05-10 15:22:50,131 - INFO - END TEST : test_run_
2018-05-10 15:22:50,131 - INFO - -------
2018-05-10 15:22:50,135 - INFO - Deleting VM ctest-vn1_
2018-05-10 15:22:50,396 - INFO - Deleting VM ctest-vn1_
2018-05-10 15:22:50,630 - INFO - Deleting VN ctest-vn1-60530942
2018-05-10 15:22:50,703 - WARNING - Deleting VN ctest-vn1-60530942 failed..Will retry
2018-05-10 15:22:56,139 - INFO - Validated that VN ctest-vn1-60530942 is not found in API Server
tcutils/
if not vnl:
2018-05-10 15:22:56,161 - INFO - Validated that VN ctest-vn1-60530942 is not in any agent
2018-05-10 15:22:56,168 - INFO - Validated that all vrouters do not have the route table for VN default-
2018-05-10 15:22:56,183 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn1-60530942 info
2018-05-10 15:22:56,520 - INFO - Deleted project: ctest-Analytics
Changed in juniperopenstack: | |
assignee: | Sundar (sundar) → nobody |
tags: |
added: sanityblocker removed: sanity |
tags: | removed: sanityblocker |
1. Provide the o/p of top from analyticsdataba se_cassandra_ 1
2. Provide the query-engine and cassandra logs