Skip to content

Instantly share code, notes, and snippets.

@hkumarmk
Created March 22, 2016 06:53
Show Gist options
  • Select an option

  • Save hkumarmk/a3b7aeccc8e1cc094924 to your computer and use it in GitHub Desktop.

Select an option

Save hkumarmk/a3b7aeccc8e1cc094924 to your computer and use it in GitHub Desktop.
python -m testtools.run scripts.analytics.test_analytics.AnalyticsTestSanity3.test_verify_process_status_analytics_node
Log file : /contrail-test/logs/keystone_tests.log
Tests running...
Log file : /contrail-test/logs/analyticstestsanity3.log
2016-03-22 12:21:50,409 - INFO - Project ctest-AnalyticsTestSanity3-20973050 not found, creating it
2016-03-22 12:21:50,665 - INFO - Created Project:ctest-AnalyticsTestSanity3-20973050, ID : 38af4b35-ca50-4055-b36d-c268fc9c36c6
2016-03-22 12:21:50,872 - INFO - admin user already present
2016-03-22 12:21:56,799 - INFO - ================================================================================
2016-03-22 12:21:56,799 - INFO - STARTING TEST : test_verify_process_status_analytics_node
2016-03-22 12:21:56,799 - INFO - TEST DESCRIPTION : Test to validate process_status-Analytics-Node
2016-03-22 12:21:59,634 - INFO - Validated that for Compute 10.204.216.33, XMPP sessions are as seen in discovery
2016-03-22 12:21:59,707 - INFO - Validated that for Control node nodeb2, XMPP sessions are as seen in discovery service
2016-03-22 12:21:59,707 - INFO - Initial checks done. Running the testcase now
2016-03-22 12:21:59,707 - INFO -
2016-03-22 12:21:59,726 - ERROR - nodeb2:contrail-collector module connection to ['10.204.216.33:8086'] servers NOT UP
2016-03-22 12:21:59,727 - INFO - nodeb2:contrail-collector module connection to ['127.0.0.1:8086'] servers UP
2016-03-22 12:21:59,727 - INFO - nodeb2:contrail-collector module connection to ['127.0.0.1:8086'] servers UP
2016-03-22 12:21:59,727 - INFO - nodeb2:contrail-collector module connection to ['10.204.216.33:5998'] servers UP
2016-03-22 12:21:59,727 - ERROR - nodeb2:contrail-collector module connection to ['10.204.216.33:9160'] servers NOT UP
2016-03-22 12:21:59,728 - ERROR - nodeb2:contrail-collector module connection to ['127.0.0.1:9160'] servers NOT UP
2016-03-22 12:22:02,252 - ERROR - <type 'exceptions.AssertionError'>
Python 2.7.6: /usr/bin/python
Tue Mar 22 12:21:59 2016
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-test/tcutils/wrappers.py in wrapper(self=<scripts.analytics.test_analytics.AnalyticsTestS...analytics_node[sanity,vcenter] id=0x7f3e64e9d190>, *args=(), **kwargs={})
72 log.info('Initial checks done. Running the testcase now')
73 log.info('')
74 result = function(self, *args, **kwargs)
75 except KeyboardInterrupt:
76 raise
result = None
function = <function test_verify_process_status_analytics_node>
self = <scripts.analytics.test_analytics.AnalyticsTestS...analytics_node[sanity,vcenter] id=0x7f3e64e9d190>
args = ()
kwargs = {}
/contrail-test/scripts/analytics/test_analytics.py in test_verify_process_status_analytics_node(self=<scripts.analytics.test_analytics.AnalyticsTestS...analytics_node[sanity,vcenter] id=0x7f3e64e9d190>)
305
306 '''
307 self.analytics_obj.verify_process_and_connection_infos_analytics_node()
308
309 @test.attr(type=['sanity', 'vcenter'])
self = <scripts.analytics.test_analytics.AnalyticsTestS...analytics_node[sanity,vcenter] id=0x7f3e64e9d190>
self.analytics_obj = <tcutils.collector.analytics_tests.AnalyticsVerification object>
self.analytics_obj.verify_process_and_connection_infos_analytics_node = <bound method AnalyticsVerification.verify_proce...or.analytics_tests.AnalyticsVerification object>>
/contrail-test/tcutils/collector/analytics_tests.py in verify_process_and_connection_infos_analytics_node(self=<tcutils.collector.analytics_tests.AnalyticsVerification object>)
3543 'contrail-collector',\
3544 [server],node = collector)
3545 assert result
3546
3547
result = False
<type 'exceptions.AssertionError'>:
__class__ = <type 'exceptions.AssertionError'>
__delattr__ = <method-wrapper '__delattr__' of exceptions.AssertionError object>
__dict__ = {}
__doc__ = 'Assertion failed.'
__format__ = <built-in method __format__ of exceptions.AssertionError object>
__getattribute__ = <method-wrapper '__getattribute__' of exceptions.AssertionError object>
__getitem__ = <method-wrapper '__getitem__' of exceptions.AssertionError object>
__getslice__ = <method-wrapper '__getslice__' of exceptions.AssertionError object>
__hash__ = <method-wrapper '__hash__' of exceptions.AssertionError object>
__init__ = <method-wrapper '__init__' of exceptions.AssertionError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.AssertionError object>
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.AssertionError object>
__repr__ = <method-wrapper '__repr__' of exceptions.AssertionError object>
__setattr__ = <method-wrapper '__setattr__' of exceptions.AssertionError object>
__setstate__ = <built-in method __setstate__ of exceptions.AssertionError object>
__sizeof__ = <built-in method __sizeof__ of exceptions.AssertionError object>
__str__ = <method-wrapper '__str__' of exceptions.AssertionError object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__unicode__ = <built-in method __unicode__ of exceptions.AssertionError object>
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/wrappers.py", line 74, in wrapper
result = function(self, *args, **kwargs)
File "scripts/analytics/test_analytics.py", line 307, in test_verify_process_status_analytics_node
self.analytics_obj.verify_process_and_connection_infos_analytics_node()
File "tcutils/collector/analytics_tests.py", line 3545, in verify_process_and_connection_infos_analytics_node
assert result
AssertionError
2016-03-22 12:22:02,252 - INFO -
2016-03-22 12:22:02,252 - INFO - END TEST : test_verify_process_status_analytics_node : FAILED[0:00:06]
2016-03-22 12:22:02,253 - INFO - --------------------------------------------------------------------------------
2016-03-22 12:22:02,835 - INFO - Deleted project: ctest-AnalyticsTestSanity3-20973050, ID : 38af4b35-ca50-4055-b36d-c268fc9c36c6
======================================================================
ERROR: scripts.analytics.test_analytics.AnalyticsTestSanity3.test_verify_process_status_analytics_node[sanity,vcenter]
----------------------------------------------------------------------
Empty attachments:
pythonlogging:''
Traceback (most recent call last):
File "tcutils/wrappers.py", line 153, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: <type 'exceptions.AssertionError'>
Python 2.7.6: /usr/bin/python
Tue Mar 22 12:21:59 2016
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-test/tcutils/wrappers.py in wrapper(self=<scripts.analytics.test_analytics.AnalyticsTestS...analytics_node[sanity,vcenter] id=0x7f3e64e9d190>, *args=(), **kwargs={})
72 log.info('Initial checks done. Running the testcase now')
73 log.info('')
74 result = function(self, *args, **kwargs)
75 except KeyboardInterrupt:
76 raise
result = None
function = <function test_verify_process_status_analytics_node>
self = <scripts.analytics.test_analytics.AnalyticsTestS...analytics_node[sanity,vcenter] id=0x7f3e64e9d190>
args = ()
kwargs = {}
/contrail-test/scripts/analytics/test_analytics.py in test_verify_process_status_analytics_node(self=<scripts.analytics.test_analytics.AnalyticsTestS...analytics_node[sanity,vcenter] id=0x7f3e64e9d190>)
305
306 '''
307 self.analytics_obj.verify_process_and_connection_infos_analytics_node()
308
309 @test.attr(type=['sanity', 'vcenter'])
self = <scripts.analytics.test_analytics.AnalyticsTestS...analytics_node[sanity,vcenter] id=0x7f3e64e9d190>
self.analytics_obj = <tcutils.collector.analytics_tests.AnalyticsVerification object>
self.analytics_obj.verify_process_and_connection_infos_analytics_node = <bound method AnalyticsVerification.verify_proce...or.analytics_tests.AnalyticsVerification object>>
/contrail-test/tcutils/collector/analytics_tests.py in verify_process_and_connection_infos_analytics_node(self=<tcutils.collector.analytics_tests.AnalyticsVerification object>)
3543 'contrail-collector',\
3544 [server],node = collector)
3545 assert result
3546
3547
result = False
<type 'exceptions.AssertionError'>:
__class__ = <type 'exceptions.AssertionError'>
__delattr__ = <method-wrapper '__delattr__' of exceptions.AssertionError object>
__dict__ = {}
__doc__ = 'Assertion failed.'
__format__ = <built-in method __format__ of exceptions.AssertionError object>
__getattribute__ = <method-wrapper '__getattribute__' of exceptions.AssertionError object>
__getitem__ = <method-wrapper '__getitem__' of exceptions.AssertionError object>
__getslice__ = <method-wrapper '__getslice__' of exceptions.AssertionError object>
__hash__ = <method-wrapper '__hash__' of exceptions.AssertionError object>
__init__ = <method-wrapper '__init__' of exceptions.AssertionError object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.AssertionError object>
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.AssertionError object>
__repr__ = <method-wrapper '__repr__' of exceptions.AssertionError object>
__setattr__ = <method-wrapper '__setattr__' of exceptions.AssertionError object>
__setstate__ = <built-in method __setstate__ of exceptions.AssertionError object>
__sizeof__ = <built-in method __sizeof__ of exceptions.AssertionError object>
__str__ = <method-wrapper '__str__' of exceptions.AssertionError object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__unicode__ = <built-in method __unicode__ of exceptions.AssertionError object>
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/wrappers.py", line 74, in wrapper
result = function(self, *args, **kwargs)
File "scripts/analytics/test_analytics.py", line 307, in test_verify_process_status_analytics_node
self.analytics_obj.verify_process_and_connection_infos_analytics_node()
File "tcutils/collector/analytics_tests.py", line 3545, in verify_process_and_connection_infos_analytics_node
assert result
AssertionError
Ran 1 test in 18.129s
FAILED (failures=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment