Closed akash2144 closed 2 years ago
Test Details :
By calling API from HA utils we will get the list of CVG's & Disks
[root@cortx-ha-headless-svc /]# python3 test_conf_store_search_api.py
2022-03-03 12:06:48 test_conf_store_search_api [89]: INFO [init] Started logging for service test_conf_store_search_api
******** Testing confstore search APIs for data and server PODs ********
2022-03-03 12:06:48 test_conf_store_search_api [89]: INFO [set_cluster_cardinality] Cluster cardinality: number of nodes 6, machine ids for nodes ['a94b5143999447aeb1f735b6e53931c4', 'f32db33f32a54927a91e52e3ec9c491a', '4368536608504e3a973dd16c066884ff', '39c238927338485c8bccfcbe1effe68f', '73aadfc83aab4cd1ad965ac2825345af', '21d6291109304485b3daff43a06cff77']
Following clsuter cardinality is set: (6, ['a94b5143999447aeb1f735b6e53931c4', 'f32db33f32a54927a91e52e3ec9c491a', '4368536608504e3a973dd16c066884ff', '39c238927338485c8bccfcbe1effe68f', '73aadfc83aab4cd1ad965ac2825345af', '21d6291109304485b3daff43a06cff77'])
************** Testing confstore search APIs for CVG & disk ***********
CVG's presents under node 21d6291109304485b3daff43a06cff77 are : ['cvg-01', 'cvg-02']
Disks present under node 21d6291109304485b3daff43a06cff77 are : ['/dev/sdd', '/dev/sde', '/dev/sdc', '/dev/sdg', '/dev/sdh', '/dev/sdf']
Disk present under node 21d6291109304485b3daff43a06cff77 & CVG cvg-01 are : ['/dev/sdd', '/dev/sde', '/dev/sdc']
Signed-off-by: Akash Dudhane akash.a.dudhane@seagate.com
Problem Statement
Design
Coding
Testing
Review Checklist
Review Checklist
Documentation
Checklist for Author