UT failure: test_analytics_db

Bug #1578655 reported by Sundaresan Rajangam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Sundaresan Rajangam
Trunk
Fix Committed
High
Sundaresan Rajangam

Bug Description

2016-05-03 09:36:27 ======================================================================
2016-05-03 09:36:27 FAIL: test.test_analytics_db.AnalyticsDbTest.test_00_verify_database_purge_with_percentage_input
2016-05-03 09:36:27 ----------------------------------------------------------------------
2016-05-03 09:36:27 Traceback (most recent call last):
2016-05-03 09:36:27 testtools.testresult.real._StringException: Traceback (most recent call last):
2016-05-03 09:36:27 File "/home/jenkins/workspace/ci-contrail-sandesh-unittest-ubuntu14/repo/build/debug/opserver/test/test_analytics_db.py", line 84, in test_00_verify_database_purge_with_percentage_input
2016-05-03 09:36:27 assert vizd_obj.verify_database_purge_with_percentage_input()
2016-05-03 09:36:27 File "/home/jenkins/workspace/ci-contrail-sandesh-unittest-ubuntu14/repo/build/debug/opserver/test/utils/analytics_fixture.py", line 2189, in verify_database_purge_with_percentage_input
2016-05-03 09:36:27 purge_id = self.verify_database_purge_query(json_qstr)
2016-05-03 09:36:27 File "/home/jenkins/workspace/ci-contrail-sandesh-unittest-ubuntu14/repo/build/debug/opserver/test/utils/analytics_fixture.py", line 2144, in verify_database_purge_query
2016-05-03 09:36:27 assert(res['status'] == 'started')
2016-05-03 09:36:27 TypeError: 'NoneType' object has no attribute '__getitem__'

[10:22]
2016-05-03 09:36:29 unit-test failures:
2016-05-03 09:36:29
2016-05-03 09:36:29 /home/jenkins/workspace/ci-contrail-sandesh-unittest-ubuntu14/repo/build/debug/bgp/test/graceful_restart_test FAIL
2016-05-03 09:36:29 /home/jenkins/workspace/ci-contrail-sandesh-unittest-ubuntu14/repo/build/debug/io/test/udp_io_test FAIL
2016-05-03 09:36:29 test_00_verify_database_purge_with_percentage_input FAIL
2016-05-03 09:36:29 test_02_verify_database_purge_support_datetime_format FAIL
2016-05-03 09:36:29 test_03_verify_database_purge_support_deltatime_format FAIL
2016-05-03 09:36:29 test_04_verify_database_purge_request_limit FAIL
2016-05-03 09:36:29 test_09_verify_database_purge_request_limit_with_redis_password FAIL
2016-05-03 09:36:29 test_00_verify_database_purge_with_percentage_input FAIL
2016-05-03 09:36:29 test_01_verify_database_purge_support_utc_time_format FAIL
2016-05-03 09:36:29 test_02_verify_database_purge_support_datetime_format FAIL
2016-05-03 09:36:29 test_03_verify_database_purge_support_deltatime_format FAIL
2016-05-03 09:36:29 *****************************************************************
2016-05-03 09:36:29 info: displaying retry unit-test results
2016-05-03 09:36:29 *****************************************************************
2016-05-03 09:36:29 Displaying test results from: /home/jenkins/workspace/ci-contrail-sandesh-unittest-ubuntu14/scons_test_retry.log
2016-05-03 09:36:29
2016-05-03 09:36:29 Number of PASS tests: 2
2016-05-03 09:36:29 Number of FAIL tests: 9
2016-05-03 09:36:29
2016-05-03 09:36:29 unit-test failures:
2016-05-03 09:36:29
2016-05-03 09:36:29 test_00_verify_database_purge_with_percentage_input FAIL
2016-05-03 09:36:29 test_02_verify_database_purge_support_datetime_format FAIL
2016-05-03 09:36:29 test_03_verify_database_purge_support_deltatime_format FAIL
2016-05-03 09:36:29 test_04_verify_database_purge_request_limit FAIL
2016-05-03 09:36:29 test_09_verify_database_purge_request_limit_with_redis_password FAIL
2016-05-03 09:36:29 test_00_verify_database_purge_with_percentage_input FAIL
2016-05-03 09:36:29 test_01_verify_database_purge_support_utc_time_format FAIL
2016-05-03 09:36:29 test_02_verify_database_purge_support_datetime_format FAIL
2016-05-03 09:36:29 test_03_verify_database_purge_support_deltatime_format FAIL
2016-05-03 09:36:29 *****************************************************************

Tags: analytics
Changed in juniperopenstack:
assignee: nobody → Sundaresan Rajangam (srajanga)
Changed in juniperopenstack:
milestone: none → r3.1.0.0-fcs
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/19934
Submitter: Sundaresan Rajangam (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/19935
Submitter: Sundaresan Rajangam (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/19935
Committed: http://github.org/Juniper/contrail-controller/commit/b4276b9321acddf8bbd3709855958fb1b5a12217
Submitter: Zuul
Branch: R3.0

commit b4276b9321acddf8bbd3709855958fb1b5a12217
Author: Sundaresan Rajangam <email address hidden>
Date: Thu May 5 07:50:21 2016 -0700

Fix test_analytics_db UT failure

The cql connection times out in 5 seconds after connection
establishment due to idle session. The default idle_heartbeat_interval
is 30 seconds. On changing idle_heartbeat_interval to less than
5 seconds, the issue got resolved. This behavior is seen with
new cassandra-driver (3.3.0). In production, we use
cassandra-driver version 3.0.0. Hence forcing the systemless
test to use version 3.0.0 instead of latest.

Change-Id: I02aa30f2deb777bb95d0d37de80d0395fec6479d
Closes-Bug: #1578655
(cherry picked from commit 90b3c879ce52aa427eb4f13945084c80628f390f)

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

Reviewed: https://review.opencontrail.org/19934
Committed: http://github.org/Juniper/contrail-controller/commit/90b3c879ce52aa427eb4f13945084c80628f390f
Submitter: Zuul
Branch: master

commit 90b3c879ce52aa427eb4f13945084c80628f390f
Author: Sundaresan Rajangam <email address hidden>
Date: Thu May 5 07:50:21 2016 -0700

Fix test_analytics_db UT failure

The cql connection times out in 5 seconds after connection
establishment due to idle session. The default idle_heartbeat_interval
is 30 seconds. On changing idle_heartbeat_interval to less than
5 seconds, the issue got resolved. This behavior is seen with
new cassandra-driver (3.3.0). In production, we use
cassandra-driver version 3.0.0. Hence forcing the systemless
test to use version 3.0.0 instead of latest.

Change-Id: I02aa30f2deb777bb95d0d37de80d0395fec6479d
Closes-Bug: #1578655

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.