R4-02-Analytics test case are checking for object uve in analytics-db instead of cfgm in split db

Bug #1721890 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Invalid
Medium
shajuvk
Trunk
Invalid
Medium
shajuvk

Bug Description

Analytics test case checking for object uves in analytics db instead of cfgm.
split db case it testcase check on cfgm .

test cases:

AnalyticsTestSanity3.test_verify_process_status_config[cb_sanity,sanity,vcenter]
AnalyticsTestSanity3.test_verify_process_status_control_node[cb_sanity,sanity,vcenter

env.roledefs = {
        'all': [host1, host2, host3, host7, host10, host14, host15, host16, host17, host18, host19],
        'openstack': [host10, host11, host12],
        'cfgm': [host1, host2, host3],
        'control': [host1, host2, host3],
        'compute': [host7],
        'collector': [host14, host15, host16],
# 'webui': [host13],
        'database': [host17, host18, host19],
        'undercloud' : [undercloud_host],
        'rh_hypervisor' : [ hypervisor_host ],
        'build': [host_build],

Tags: automation
shajuvk (shajuvk)
information type: Proprietary → Public
shajuvk (shajuvk)
summary: - R4-02-Analytics test case are checking for object uve in a analytics-
- db not in cfgm incase of split db
+ R4-02-Analytics test case are checking for object uve in analytics-db
+ instead of cfgm in split db
description: updated
Revision history for this message
Ankit Jain (ankitja) wrote :
Download full text (4.4 KiB)

Hi Shaju,

Need more info on this bug.

I've tried this on 3 node setup with the following role distribution:

node1: controller, openstack
node2: analytics, analytics db
node3: contrail-compute

Both the test cases passed on R4.1 build 13

2017-10-11 09:58:39,999 - INFO - STARTING TEST : test_verify_process_status_config
2017-10-11 09:58:39,999 - INFO - TEST DESCRIPTION : Test to validate process_status-Config

2017-10-11 09:58:42,263 - INFO - Initial checks done. Running the testcase now
2017-10-11 09:58:42,263 - INFO -
2017-10-11 09:58:42,612 - INFO - nodec64:contrail-api module connection to 10.204.217.58:8086 servers UP
2017-10-11 09:58:42,612 - INFO - nodec64:contrail-api module connection to 10.204.217.104:2181 servers UP
2017-10-11 09:58:42,612 - INFO - nodec64:contrail-api module connection to 10.204.217.104:9161 servers UP
2017-10-11 09:58:42,612 - INFO - nodec64:contrail-api module connection to 10.204.217.104:5672 servers UP
2017-10-11 09:58:42,643 - INFO - nodec64:contrail-device-manager module connection to 10.204.217.58:8086 servers UP
2017-10-11 09:58:42,643 - INFO - nodec64:contrail-device-manager module connection to 10.204.217.104:2181 servers UP
2017-10-11 09:58:42,643 - INFO - nodec64:contrail-device-manager module connection to 10.204.217.104:9161 servers UP
2017-10-11 09:58:42,643 - INFO - nodec64:contrail-device-manager module connection to 10.204.217.104:5672 servers UP
2017-10-11 09:58:42,672 - INFO - nodec64:contrail-schema module connection to 10.204.217.58:8086 servers UP
2017-10-11 09:58:42,672 - INFO - nodec64:contrail-schema module connection to 10.204.217.104:2181 servers UP
2017-10-11 09:58:42,673 - INFO - nodec64:contrail-schema module connection to 10.204.217.104:9161 servers UP
2017-10-11 09:58:42,702 - INFO - nodec64:contrail-svc-monitor module connection to 10.204.217.58:8086 servers UP
2017-10-11 09:58:42,702 - INFO - nodec64:contrail-svc-monitor module connection to 10.204.217.104:2181 servers UP
2017-10-11 09:58:42,702 - INFO - nodec64:contrail-svc-monitor module connection to 10.204.217.104:9161 servers UP
2017-10-11 09:58:44,349 - INFO - END TEST : test_verify_process_status_config : PASSED[0:00:05]
2017-10-11 09:58:44,349 - INFO - --------------------------------------------------------------------------------
2017-10-11 09:58:44,951 - INFO - Deleted project: ctest-AnalyticsTestSanity3-97765004, ID : df6111bf-743c-4cb0-8c8b-f53ac227d20c

Ran 1 test in 9.683s
OK
root@94bd3032cb73:/contrail-test# python -m testtools.run scripts.analytics.test_analytics.AnalyticsTestSanity3.test_verify_process_status_control_node
Tests running...
2017-10-11 09:59:11,515 - INFO - Project ctest-AnalyticsTestSanity3-82509944 not found, creating it
2017-10-11 09:59:11,757 - ...

Read more...

Revision history for this message
shajuvk (shajuvk) wrote :

Hi Ankit,

Redhat, we are not using docker for contrail roles. All the contrail roles are installed on a vm.
I think that cased the issue.

Could please check below location for testbed and test logs:

/cs-shared/bugs/1721890

Thanks,
Shaju

shajuvk (shajuvk)
tags: added: sanityblocker
Revision history for this message
Ankit Jain (ankitja) wrote :

HI Shaju,

I need the access to debug the setup. There seems to be some issue with the setup. Below is the error I'm seeing : Could you please check ?

root@80bdda771374:/contrail-test# python -m testtools.run scripts.analytics.test_analytics.AnalyticsTestSanity3.test_verify_process_status_config
Tests running...
======================================================================
ERROR: setUpClass (scripts.analytics.test_analytics.AnalyticsTestSanity3)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "scripts/analytics/test_analytics.py", line 245, in setUpClass
    super(AnalyticsTestSanity3, cls).setUpClass()
  File "/contrail-test/scripts/analytics/base.py", line 11, in setUpClass
    super(AnalyticsBaseTest, cls).setUpClass()
  File "test_v1.py", line 13, in setUpClass
    super(BaseTestCase_v1, cls).setUpClass()
  File "test.py", line 76, in setUpClass
    cls.inputs = ContrailTestInit(cls.ini_file,logger = cls.logger)
  File "common/contrail_test_init.py", line 1058, in __init__
    self.inputs = TestInputs(ini_file, self.logger)
  File "tcutils/util.py", line 1028, in __call__
    Singleton, cls).__call__(*args, **kwargs)
  File "common/contrail_test_init.py", line 400, in __init__
    self.prov_data = self.read_prov_file()
  File "common/contrail_test_init.py", line 614, in read_prov_file
    self._check_containers(host)
  File "common/contrail_test_init.py", line 533, in _check_containers
    output = self.run_cmd_on_server(host_dict['ip'], cmd)
  File "common/contrail_test_init.py", line 1039, in run_cmd_on_server
    detach=detach)
  File "tcutils/util.py", line 845, in run_cmd_on_server
    output = _run(updated_cmd, pty=pty)
  File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 677, in host_prompting_wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 1146, in sudo
    capture_buffer_size=capture_buffer_size,
  File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 928, in _run_command
    channel=default_channel(), command=wrapped_command, pty=pty,
  File "/usr/local/lib/python2.7/dist-packages/fabric/state.py", line 418, in default_channel
    chan = _open_session()
  File "/usr/local/lib/python2.7/dist-packages/fabric/state.py", line 410, in _open_session
    return connections[env.host_string].get_transport().open_session()
  File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 159, in __getitem__
    self.connect(key)
  File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 151, in connect
    user, host, port, cache=self, seek_gateway=seek_gateway)
  File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 603, in connect
    raise NetworkError(msg, e)
fabric.exceptions.NetworkError: Timed out trying to connect to 192.168.24.12 (tried 1 time)

shajuvk (shajuvk)
tags: removed: sanityblocker
no longer affects: juniperopenstack/r4.1
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.