This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
CORTX-34147: Add time stamp for consul process state updated in bq #2163
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pavankrishnat
requested review from
seagate-sarang-sawant,
Shreya-18,
vaibhavparatwar,
mssawant and
d-nayak
September 15, 2022 08:38
d-nayak
approved these changes
Sep 15, 2022
vaibhavparatwar
approved these changes
Sep 15, 2022
Deployed 3N setup with PR changes. Timestamp o/p: bq-delivered/cortx-server-2.cortx-server-headless.cortx.svc.cluster.local:76 bq/10:{"timestamp": "2022-09-15 09:32:06.802311", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xc", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_HA"}} bq/11:{"timestamp": "2022-09-15 09:32:07.030644", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xc", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/12:{"timestamp": "2022-09-15 09:32:09.407068", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x9", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_HA"}} bq/13:{"timestamp": "2022-09-15 09:32:09.906653", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x9", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/14:{"timestamp": "2022-09-15 09:32:12.663020", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x0", "state": "M0_CONF_HA_PROCESS_STOPPED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/15:{"timestamp": "2022-09-15 09:32:33.500649", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x9", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_HA"}} bq/16:{"timestamp": "2022-09-15 09:32:33.774727", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x3", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_HA"}} bq/17:{"timestamp": "2022-09-15 09:32:33.800894", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x0", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_HA"}} bq/18:{"timestamp": "2022-09-15 09:32:34.885731", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x4", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/19:{"timestamp": "2022-09-15 09:32:34.981265", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xc", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_HA"}} bq/2:{"timestamp": "2022-09-15 09:32:04.270972", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x0", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_HA"}} bq/20:{"timestamp": "2022-09-15 09:32:35.313785", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x2", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/21:{"timestamp": "2022-09-15 09:32:36.003414", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x6", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_HA"}} bq/22:{"timestamp": "2022-09-15 09:32:36.369147", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x5", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/23:{"timestamp": "2022-09-15 09:32:36.403062", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x0", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/24:{"timestamp": "2022-09-15 09:32:36.370746", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xc", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/25:{"timestamp": "2022-09-15 09:32:36.618191", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x1", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/26:{"timestamp": "2022-09-15 09:32:36.874636", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xe", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/27:{"timestamp": "2022-09-15 09:32:36.783515", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xd", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/28:{"timestamp": "2022-09-15 09:32:36.382924", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x3", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/29:{"timestamp": "2022-09-15 09:32:37.098214", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x9", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/3:{"timestamp": "2022-09-15 09:32:04.520076", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x0", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/30:{"timestamp": "2022-09-15 09:32:37.403330", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x7", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/31:{"timestamp": "2022-09-15 09:32:37.199989", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xa", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/32:{"timestamp": "2022-09-15 09:32:37.812660", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x13", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_OTHER"}} bq/33:{"timestamp": "2022-09-15 09:32:37.806868", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x6", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/34:{"timestamp": "2022-09-15 09:32:38.195043", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x8", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/35:{"timestamp": "2022-09-15 09:32:38.090514", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xf", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_HA"}} bq/36:{"timestamp": "2022-09-15 09:32:37.902176", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xb", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/37:{"timestamp": "2022-09-15 09:32:39.992530", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x11", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/38:{"timestamp": "2022-09-15 09:32:40.194858", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x10", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/39:{"timestamp": "2022-09-15 09:32:41.405994", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xf", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/4:{"timestamp": "2022-09-15 09:32:05.309703", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x6", "state": "M0_CONF_HA_PROCESS_STARTING", "type": "M0_CONF_HA_PROCESS_HA"}} bq/40:{"timestamp": "2022-09-15 09:32:43.182650", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xe", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/41:{"timestamp": "2022-09-15 09:32:44.907891", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x2", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/42:{"timestamp": "2022-09-15 09:32:45.611697", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xd", "state": "M0_CONF_HA_PROCESS_STARTED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/43:{"timestamp": "2022-09-15 09:32:45.993907", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x5", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/44:{"timestamp": "2022-09-15 09:32:46.495629", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xd", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/45:{"timestamp": "2022-09-15 09:32:47.096427", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x4", "state": "M0_CONF_HA_PROCESS_STARTED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/46:{"timestamp": "2022-09-15 09:32:48.178364", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x4", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/47:{"timestamp": "2022-09-15 09:32:48.714165", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x1", "state": "M0_CONF_HA_PROCESS_STARTED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/48:{"timestamp": "2022-09-15 09:32:49.802098", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x1", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/49:{"timestamp": "2022-09-15 09:32:50.006210", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xb", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/5:{"timestamp": "2022-09-15 09:32:05.549774", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x6", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_HA"}} bq/50:{"timestamp": "2022-09-15 09:32:50.006224", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x11", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/51:{"timestamp": "2022-09-15 09:32:52.322129", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x10", "state": "M0_CONF_HA_PROCESS_STARTED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/52:{"timestamp": "2022-09-15 09:32:53.097295", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0xa", "state": "M0_CONF_HA_PROCESS_STARTED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/53:{"timestamp": "2022-09-15 09:32:53.733022", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x10", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_M0D"}} bq/54:{"timestamp": "2022-09-15 09:32:53.993844", "message_type": "PROCESS-STATE-UPDATE", "payload": {"fid": "0x7200000000000001:0x8", "state": "M0_CONF_HA_PROCESS_DTM_RECOVERED", "type": "M0_CONF_HA_PROCESS_M0D"}} |
@pavankrishnat: Please edit commit message to adhere to our format as follows: Problem: Solution: |
d-nayak
reviewed
Sep 15, 2022
Problem: HARE bq messages in Support Bundle do not contain timestamps. This is needed for effective offline debug using logs from Support bundle. Solution: Add timestamps to bq publisher; also add the consul kv dump so generated to Support Bundle. Signed-off-by: pavankrishnat <pavan.k.thunuguntla@seagate.com>
pavankrishnat
force-pushed
the
CORTX34147
branch
from
September 15, 2022 16:49
845b051
to
7bc6654
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem:
HARE bq messages in Support Bundle do not contain timestamps.
This is needed for effective offline debug using logs from Support bundle.
Solution:
Add timestamps to bq publisher; also add the consul kv dump so generated to
Support Bundle.
Signed-off-by: pavankrishnat pavan.k.thunuguntla@seagate.com