Closed ArchanaLimaye closed 2 years ago
Testing details [Detailed logs added in https://jts.seagate.com/secure/attachment/506958/testing_details_CORTX-28605.txt]
Testing the event subscription :
Deployed CORTX on 3N setup. Created HA RPM and installed it in the HA POD
a. Checked the system health keys in consul using "consul kv get -http-addr=consul-server.default.svc.cluster.local:8500 --recurse cortx/ha/v1" b. Confirmed that the keys for disk resource are not present c. Executed ha _setup explicitly : /usr/lib/python3.6/site-packages/ha/k8s_setup/ha_setup.py config --services health_monitor --config yaml:///etc/cortx/cluster.conf d. Verified that the system health in consul shows all keys for disk subscription
cortx/ha/v1: cortx/ha/v1/action/disk/failed:["publish"] cortx/ha/v1/action/disk/online:["publish"] cortx/ha/v1/events/disk/failed:["hare"] cortx/ha/v1/events/disk/online:["hare"] cortx/ha/v1/events/subscribe/hare:["node/online", "node/failed", "disk/online", "disk/failed"] cortx/ha/v1/message_type/hare:ha_event_hare
Testing publish of disk event to Hare
a. Using test code created disk online system health event and published it on message bus for message_type "health_events" b. Verified by looking at health_monitor.log file that this event is
@mukhtar-inamdar
Just 1 query why subscription for CVG is not made as other changes related to CVG you are commiting As per the LLD HA is not going to send and CVG event to Hare. So subscription should not be done for them
Problem Statement
Handling needs to be added to Subscribe for disk events from Hare and to send disk alerts to Hare
Design
Changes added for Hare subscription for resource type disk in HA mini provisioning Action Handlers added for disk and cvg resource types
LLD at https://seagate-systems.atlassian.net/wiki/spaces/PUB/pages/891781277/Action+Status+Update+LLD
Coding
Testing
https://jts.seagate.com/secure/attachment/506958/testing_details_CORTX-28605.txt
Review Checklist
Review Checklist
Documentation
Checklist for Author