RHOSP13- R5.0-162-Automation: docker container names in RHOSP13 are different than centos setup, causing the contrail-status validation to fail

Bug #1785762 reported by alok kumar on 2018-08-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
High
alok kumar
Trunk
Fix Committed
High
alok kumar

Bug Description

test case test_contrail_status and alarm cases failed while validating contrail-status with below services as inactive.
This is because of container names in RHOSP13 setup is different than centos setup.
we need to consider new names too in test script.

2018-08-04 06:40:02,132 - INFO - Failed services are : defaultdict(<type 'dict'>, {'10.1.0.17': {'snmp-collector': {'status': 'inactive', 'description': None}, 'query-engine': {'status': 'inactive', 'description': None}, 'svc-monitor': {'status': 'inactive', 'description': None}, 'analytics-api': {'status': 'inactive', 'description': None}, 'config-zookeeper': {'status': 'inactive', 'description': None}, 'analytics-zookeeper': {'status': 'inactive', 'description': None}, 'analytics-kafka': {'status': 'inactive', 'description': None}, 'alarm-gen': {'status': 'inactive', 'description': None}, 'device-manager': {'status': 'inactive', 'description': None}, 'config-cassandra': {'status': 'inactive', 'description': None}, 'analyticsdb-nodemgr': {'status': 'initializing', 'description': 'Disk for DB is too low. '}, 'analytics-cassandra': {'status': 'inactive', 'description': None}}, '10.0.0.16': {'agent': {'status': 'inactive', 'description': None}, 'vrouter-nodemgr': {'status': 'inactive', 'description': None}}, '10.0.0.10': {'agent': {'status': 'inactive', 'description': None}, 'vrouter-nodemgr': {'status': 'inactive', 'description': None}}, '10.1.0.11': {'snmp-collector': {'status': 'inactive', 'description': None}, 'query-engine': {'status': 'inactive', 'description': None}, 'svc-monitor': {'status': 'inactive', 'description': None}, 'analytics-api': {'status': 'inactive', 'description': None}, 'config-zookeeper': {'status': 'inactive', 'description': None}, 'analytics-zookeeper': {'status': 'inactive', 'description': None}, 'analytics-kafka': {'status': 'inactive', 'description': None}, 'alarm-gen': {'status': 'inactive', 'description': None}, 'device-manager': {'status': 'inactive', 'description': None}, 'config-cassandra': {'status': 'inactive', 'description': None}, 'analyticsdb-nodemgr': {'status': 'initializing', 'description': 'Disk for DB is too low. '}, 'analytics-cassandra': {'status': 'inactive', 'description': None}}, '10.0.0.19': {'agent': {'status': 'inactive', 'description': None}, 'vrouter-nodemgr': {'status': 'inactive', 'description': None}}, '10.1.0.27': {'snmp-collector': {'status': 'inactive', 'description': None}, 'query-engine': {'status': 'inactive', 'description': None}, 'svc-monitor': {'status': 'inactive', 'description': None}, 'analytics-api': {'status': 'inactive', 'description': None}, 'config-zookeeper': {'status': 'inactive', 'description': None}, 'analytics-zookeeper': {'status': 'inactive', 'description': None}, 'analytics-kafka': {'status': 'inactive', 'description': None}, 'alarm-gen': {'status': 'inactive', 'description': None}, 'device-manager': {'status': 'inactive', 'description': None}, 'config-cassandra': {'status': 'inactive', 'description': None}, 'analyticsdb-nodemgr': {'status': 'initializing', 'description': 'Disk for DB is too low. '}, 'analytics-cassandra': {'status': 'inactive', 'description': None}}})

For instance, agent container name in centos setup is vrouter_vrouter-agent_1 and RHOSP13 setup is contrail_vrouter_agent.

we need to add new container names for all the services in CONTRAIL_SERVICES_CONTAINER_MAP in contrail_services.py

Review in progress for https://review.opencontrail.org/45360
Submitter: alok kumar (<email address hidden>)

Reviewed: https://review.opencontrail.org/45360
Committed: http://github.com/Juniper/contrail-test/commit/a8846a03975dc189bc309afc358b3d16e777c0bf
Submitter: Zuul v3 CI (<email address hidden>)
Branch: R5.0

commit a8846a03975dc189bc309afc358b3d16e777c0bf
Author: Alok Kumar <email address hidden>
Date: Tue Aug 7 23:32:31 2018 +0530

Add few more variations of container names for RHOSP13 setup

Change-Id: Iadc50e9cd87716d74e5ff4c221db398dda52e23f
Closes-bug: #1785762

Review in progress for https://review.opencontrail.org/47361
Submitter: alok kumar (<email address hidden>)

Reviewed: https://review.opencontrail.org/47361
Committed: http://github.com/Juniper/contrail-test/commit/3bddb5ab9d6998c061b7bda578fe9dad6dd6ef8e
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 3bddb5ab9d6998c061b7bda578fe9dad6dd6ef8e
Author: Alok Kumar <email address hidden>
Date: Tue Aug 7 23:32:31 2018 +0530

Add few more variations of container names for RHOSP13 setup

Change-Id: Icd7d9565f868b862914f1e0e289f484363cfecaf
Closes-bug: #1785762

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers