Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding template for Metrocluster diagnostics check #2601

Merged
merged 14 commits into from
Feb 12, 2024
Merged

Conversation

Hardikl
Copy link
Contributor

@Hardikl Hardikl commented Jan 24, 2024

Monitoring the mcc diagnostics for these objects: Cluster, Node, Aggregate, Volume
Cluster
image

Node
image

Aggregate
image

Volume
image

@cla-bot cla-bot bot added the cla-signed label Jan 24, 2024
@Hardikl Hardikl linked an issue Jan 24, 2024 that may be closed by this pull request
conf/rest/9.12.0/metrocluster_check.yaml Show resolved Hide resolved
conf/rest/9.12.0/metrocluster_check.yaml Show resolved Hide resolved
return []*matrix.Matrix{m.data}, nil
}

func (m *MetroclusterCheck) update(objectDetail string, object string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you attach a sample response here on what's the input and the relevant processed output.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, seems earlier cluster not responding now, checking for other one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the response of the REST call api/cluster/metrocluster/diagnostics?fields=cluster,node,aggregate,volume

{
    "node": {
        "timestamp": "2024-01-29T10:15:04+00:00",
        "state": "ok",
        "details": [
            {
                "node": {
                    "uuid": "4cae6f09-2b39-11ee-9792-00a098b924e1",
                    "name": "stiA800-mccip-htp-005",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/peers/e98a95df-2b3a-11ee-9792-00a098b924e1/cluster/nodes/4cae6f09-2b39-11ee-9792-00a098b924e1"
                        }
                    }
                },
                "cluster": {
                    "uuid": "e98a95df-2b3a-11ee-9792-00a098b924e1",
                    "name": "stiA800-mccip-htp-00506_siteB",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/e98a95df-2b3a-11ee-9792-00a098b924e1"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "node_reachable",
                        "result": "ok"
                    },
                    {
                        "name": "metrocluster_ready",
                        "result": "ok"
                    },
                    {
                        "name": "local_ha_partner",
                        "result": "ok"
                    },
                    {
                        "name": "ha_mirroring_on",
                        "result": "ok"
                    },
                    {
                        "name": "ha_mirroring_op_state",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_ha_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "remote_dr_partner",
                        "result": "ok"
                    },
                    {
                        "name": "dr_mirroring_on",
                        "result": "ok"
                    },
                    {
                        "name": "dr_mirroring_op_state",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_dr_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "remote_dr_auxiliary_partner",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_dr_auxiliary_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "storage_failover_enabled",
                        "result": "ok"
                    },
                    {
                        "name": "has_intercluster_lif",
                        "result": "ok"
                    },
                    {
                        "name": "node_object_limit",
                        "result": "ok"
                    },
                    {
                        "name": "automatic_uso",
                        "result": "not_applicable",
                        "additional_info": "Automatic switchover is not supported in MetroCluster over IP configurations."
                    }
                ]
            },
            {
                "node": {
                    "uuid": "4cc7e187-2b39-11ee-acb7-d039ea9eec66",
                    "name": "stiA800-mccip-htp-006",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/peers/e98a95df-2b3a-11ee-9792-00a098b924e1/cluster/nodes/4cc7e187-2b39-11ee-acb7-d039ea9eec66"
                        }
                    }
                },
                "cluster": {
                    "uuid": "e98a95df-2b3a-11ee-9792-00a098b924e1",
                    "name": "stiA800-mccip-htp-00506_siteB",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/e98a95df-2b3a-11ee-9792-00a098b924e1"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "node_reachable",
                        "result": "ok"
                    },
                    {
                        "name": "metrocluster_ready",
                        "result": "ok"
                    },
                    {
                        "name": "local_ha_partner",
                        "result": "ok"
                    },
                    {
                        "name": "ha_mirroring_on",
                        "result": "ok"
                    },
                    {
                        "name": "ha_mirroring_op_state",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_ha_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "remote_dr_partner",
                        "result": "ok"
                    },
                    {
                        "name": "dr_mirroring_on",
                        "result": "ok"
                    },
                    {
                        "name": "dr_mirroring_op_state",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_dr_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "remote_dr_auxiliary_partner",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_dr_auxiliary_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "storage_failover_enabled",
                        "result": "ok"
                    },
                    {
                        "name": "has_intercluster_lif",
                        "result": "ok"
                    },
                    {
                        "name": "node_object_limit",
                        "result": "ok"
                    },
                    {
                        "name": "automatic_uso",
                        "result": "not_applicable",
                        "additional_info": "Automatic switchover is not supported in MetroCluster over IP configurations."
                    }
                ]
            },
            {
                "node": {
                    "uuid": "5c2fb5dc-2b39-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-003",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/nodes/5c2fb5dc-2b39-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "cluster": {
                    "uuid": "f5302836-2b3a-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-00304_siteA",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/f5302836-2b3a-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "node_reachable",
                        "result": "ok"
                    },
                    {
                        "name": "metrocluster_ready",
                        "result": "ok"
                    },
                    {
                        "name": "local_ha_partner",
                        "result": "ok"
                    },
                    {
                        "name": "ha_mirroring_on",
                        "result": "ok"
                    },
                    {
                        "name": "ha_mirroring_op_state",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_ha_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "remote_dr_partner",
                        "result": "ok"
                    },
                    {
                        "name": "dr_mirroring_on",
                        "result": "ok"
                    },
                    {
                        "name": "dr_mirroring_op_state",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_dr_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "remote_dr_auxiliary_partner",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_dr_auxiliary_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "storage_failover_enabled",
                        "result": "ok"
                    },
                    {
                        "name": "has_intercluster_lif",
                        "result": "ok"
                    },
                    {
                        "name": "node_object_limit",
                        "result": "ok"
                    },
                    {
                        "name": "automatic_uso",
                        "result": "not_applicable",
                        "additional_info": "Automatic switchover is not supported in MetroCluster over IP configurations."
                    }
                ]
            },
            {
                "node": {
                    "uuid": "5ae26324-2b39-11ee-b047-00a098b96111",
                    "name": "stiA800-mccip-htp-004",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/nodes/5ae26324-2b39-11ee-b047-00a098b96111"
                        }
                    }
                },
                "cluster": {
                    "uuid": "f5302836-2b3a-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-00304_siteA",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/f5302836-2b3a-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "node_reachable",
                        "result": "ok"
                    },
                    {
                        "name": "metrocluster_ready",
                        "result": "ok"
                    },
                    {
                        "name": "local_ha_partner",
                        "result": "ok"
                    },
                    {
                        "name": "ha_mirroring_on",
                        "result": "ok"
                    },
                    {
                        "name": "ha_mirroring_op_state",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_ha_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "remote_dr_partner",
                        "result": "ok"
                    },
                    {
                        "name": "dr_mirroring_on",
                        "result": "ok"
                    },
                    {
                        "name": "dr_mirroring_op_state",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_dr_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "remote_dr_auxiliary_partner",
                        "result": "ok"
                    },
                    {
                        "name": "symmetric_dr_auxiliary_relationship",
                        "result": "ok"
                    },
                    {
                        "name": "storage_failover_enabled",
                        "result": "ok"
                    },
                    {
                        "name": "has_intercluster_lif",
                        "result": "ok"
                    },
                    {
                        "name": "node_object_limit",
                        "result": "ok"
                    },
                    {
                        "name": "automatic_uso",
                        "result": "not_applicable",
                        "additional_info": "Automatic switchover is not supported in MetroCluster over IP configurations."
                    }
                ]
            }
        ],
        "summary": {
            "message": ""
        }
    },
    "aggregate": {
        "timestamp": "2024-01-29T10:15:04+00:00",
        "state": "warning",
        "details": [
            {
                "node": {
                    "uuid": "4cae6f09-2b39-11ee-9792-00a098b924e1",
                    "name": "stiA800-mccip-htp-005",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/peers/e98a95df-2b3a-11ee-9792-00a098b924e1/cluster/nodes/4cae6f09-2b39-11ee-9792-00a098b924e1"
                        }
                    }
                },
                "aggregate": {
                    "uuid": "a020c482-f04d-409c-bfd6-d38f14e3aa55",
                    "name": "aggr0_stiA800_mccip_htp_005",
                    "_links": {
                        "self": {
                            "href": "/api/storage/aggregates/a020c482-f04d-409c-bfd6-d38f14e3aa55"
                        }
                    }
                },
                "cluster": {
                    "uuid": "e98a95df-2b3a-11ee-9792-00a098b924e1",
                    "name": "stiA800-mccip-htp-00506_siteB",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/e98a95df-2b3a-11ee-9792-00a098b924e1"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "mirroring_status",
                        "result": "ok"
                    },
                    {
                        "name": "ownership_state",
                        "result": "ok"
                    }
                ]
            },
            {
                "node": {
                    "uuid": "4cae6f09-2b39-11ee-9792-00a098b924e1",
                    "name": "stiA800-mccip-htp-005",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/peers/e98a95df-2b3a-11ee-9792-00a098b924e1/cluster/nodes/4cae6f09-2b39-11ee-9792-00a098b924e1"
                        }
                    }
                },
                "aggregate": {
                    "uuid": "6b25887e-22ab-4a07-8b08-72a0cbc7ed01",
                    "name": "stiA800_mccip_htp_005_aggr1",
                    "_links": {
                        "self": {
                            "href": "/api/storage/aggregates/6b25887e-22ab-4a07-8b08-72a0cbc7ed01"
                        }
                    }
                },
                "cluster": {
                    "uuid": "e98a95df-2b3a-11ee-9792-00a098b924e1",
                    "name": "stiA800-mccip-htp-00506_siteB",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/e98a95df-2b3a-11ee-9792-00a098b924e1"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "mirroring_status",
                        "result": "ok"
                    },
                    {
                        "name": "ownership_state",
                        "result": "ok"
                    }
                ]
            },
            {
                "node": {
                    "uuid": "4cc7e187-2b39-11ee-acb7-d039ea9eec66",
                    "name": "stiA800-mccip-htp-006",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/peers/e98a95df-2b3a-11ee-9792-00a098b924e1/cluster/nodes/4cc7e187-2b39-11ee-acb7-d039ea9eec66"
                        }
                    }
                },
                "aggregate": {
                    "uuid": "3bdb8c7a-0bd5-4be1-b372-fbc13191d7f6",
                    "name": "aggr0_stiA800_mccip_htp_006",
                    "_links": {
                        "self": {
                            "href": "/api/storage/aggregates/3bdb8c7a-0bd5-4be1-b372-fbc13191d7f6"
                        }
                    }
                },
                "cluster": {
                    "uuid": "e98a95df-2b3a-11ee-9792-00a098b924e1",
                    "name": "stiA800-mccip-htp-00506_siteB",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/e98a95df-2b3a-11ee-9792-00a098b924e1"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "mirroring_status",
                        "result": "ok"
                    },
                    {
                        "name": "ownership_state",
                        "result": "ok"
                    }
                ]
            },
            {
                "node": {
                    "uuid": "4cc7e187-2b39-11ee-acb7-d039ea9eec66",
                    "name": "stiA800-mccip-htp-006",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/peers/e98a95df-2b3a-11ee-9792-00a098b924e1/cluster/nodes/4cc7e187-2b39-11ee-acb7-d039ea9eec66"
                        }
                    }
                },
                "aggregate": {
                    "uuid": "cd09327d-1706-49ce-b93a-0ae76b75631f",
                    "name": "stiA800_mccip_htp_006_aggr1",
                    "_links": {
                        "self": {
                            "href": "/api/storage/aggregates/cd09327d-1706-49ce-b93a-0ae76b75631f"
                        }
                    }
                },
                "cluster": {
                    "uuid": "e98a95df-2b3a-11ee-9792-00a098b924e1",
                    "name": "stiA800-mccip-htp-00506_siteB",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/e98a95df-2b3a-11ee-9792-00a098b924e1"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "mirroring_status",
                        "result": "ok"
                    },
                    {
                        "name": "ownership_state",
                        "result": "ok"
                    }
                ]
            },
            {
                "node": {
                    "uuid": "5c2fb5dc-2b39-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-003",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/nodes/5c2fb5dc-2b39-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "aggregate": {
                    "uuid": "6614650f-2e91-4c62-9f3e-87c4bea7132d",
                    "name": "aggr0_stiA800_mccip_htp_003",
                    "_links": {
                        "self": {
                            "href": "/api/storage/aggregates/6614650f-2e91-4c62-9f3e-87c4bea7132d"
                        }
                    }
                },
                "cluster": {
                    "uuid": "f5302836-2b3a-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-00304_siteA",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/f5302836-2b3a-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "mirroring_status",
                        "result": "ok"
                    },
                    {
                        "name": "ownership_state",
                        "result": "ok"
                    }
                ]
            },
            {
                "node": {
                    "uuid": "5c2fb5dc-2b39-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-003",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/nodes/5c2fb5dc-2b39-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "aggregate": {
                    "uuid": "eac7c651-2ecb-4889-bf79-692e3262e62c",
                    "name": "stiA800_mccip_htp_003_aggr1",
                    "_links": {
                        "self": {
                            "href": "/api/storage/aggregates/eac7c651-2ecb-4889-bf79-692e3262e62c"
                        }
                    }
                },
                "cluster": {
                    "uuid": "f5302836-2b3a-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-00304_siteA",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/f5302836-2b3a-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "mirroring_status",
                        "result": "ok"
                    },
                    {
                        "name": "ownership_state",
                        "result": "ok"
                    }
                ]
            },
            {
                "node": {
                    "uuid": "5ae26324-2b39-11ee-b047-00a098b96111",
                    "name": "stiA800-mccip-htp-004",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/nodes/5ae26324-2b39-11ee-b047-00a098b96111"
                        }
                    }
                },
                "aggregate": {
                    "uuid": "60c30258-52fe-45c1-a368-2f6b23032a0f",
                    "name": "aggr0_stiA800_mccip_htp_004",
                    "_links": {
                        "self": {
                            "href": "/api/storage/aggregates/60c30258-52fe-45c1-a368-2f6b23032a0f"
                        }
                    }
                },
                "cluster": {
                    "uuid": "f5302836-2b3a-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-00304_siteA",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/f5302836-2b3a-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "mirroring_status",
                        "result": "ok"
                    },
                    {
                        "name": "ownership_state",
                        "result": "ok"
                    }
                ]
            },
            {
                "node": {
                    "uuid": "5ae26324-2b39-11ee-b047-00a098b96111",
                    "name": "stiA800-mccip-htp-004",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/nodes/5ae26324-2b39-11ee-b047-00a098b96111"
                        }
                    }
                },
                "aggregate": {
                    "uuid": "f6303613-abb1-470e-abdb-2e889fc22c8a",
                    "name": "stiA800_mccip_htp_004_aggr1",
                    "_links": {
                        "self": {
                            "href": "/api/storage/aggregates/f6303613-abb1-470e-abdb-2e889fc22c8a"
                        }
                    }
                },
                "cluster": {
                    "uuid": "f5302836-2b3a-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-00304_siteA",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/f5302836-2b3a-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "mirroring_status",
                        "result": "ok"
                    },
                    {
                        "name": "ownership_state",
                        "result": "ok"
                    }
                ]
            },
            {
                "node": {
                    "uuid": "5ae26324-2b39-11ee-b047-00a098b96111",
                    "name": "stiA800-mccip-htp-004",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/nodes/5ae26324-2b39-11ee-b047-00a098b96111"
                        }
                    }
                },
                "aggregate": {
                    "uuid": "40cd009f-713a-4302-8efb-24aaa7052d5f",
                    "name": "stiA800_mccip_htp_004_unmirrored_aggr",
                    "_links": {
                        "self": {
                            "href": "/api/storage/aggregates/40cd009f-713a-4302-8efb-24aaa7052d5f"
                        }
                    }
                },
                "cluster": {
                    "uuid": "f5302836-2b3a-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-00304_siteA",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/f5302836-2b3a-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "mirroring_status",
                        "result": "warning",
                        "additional_info": "Aggregate \"stiA800_mccip_htp_004_unmirrored_aggr\" is not mirrored. If you use un-mirrored aggregates in MetroCluster configurations, you will not be able to benefit from synchronous data protection on these un-mirrored aggregates."
                    },
                    {
                        "name": "ownership_state",
                        "result": "ok"
                    }
                ]
            }
        ],
        "summary": {
            "message": "Use the \"metrocluster check aggregate show -instance\" command for detailed results."
        }
    },
    "cluster": {
        "timestamp": "2024-01-29T10:15:04+00:00",
        "state": "ok",
        "details": [
            {
                "cluster": {
                    "uuid": "e98a95df-2b3a-11ee-9792-00a098b924e1",
                    "name": "stiA800-mccip-htp-00506_siteB",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/e98a95df-2b3a-11ee-9792-00a098b924e1"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "negotiated_switchover_ready",
                        "result": "not_applicable",
                        "additional_info": "Disaster recovery readiness checks are not performed as part of periodic MetroCluster check. To run these checks, use the \"metrocluster check run\" command."
                    },
                    {
                        "name": "switchback_ready",
                        "result": "not_applicable",
                        "additional_info": "Disaster recovery readiness checks are not performed as part of periodic MetroCluster check. To run these checks, use the \"metrocluster check run\" command."
                    },
                    {
                        "name": "job_schedules",
                        "result": "ok"
                    },
                    {
                        "name": "licenses",
                        "result": "ok"
                    },
                    {
                        "name": "periodic_check_enabled",
                        "result": "ok"
                    },
                    {
                        "name": "onboard_key_management",
                        "result": "ok"
                    },
                    {
                        "name": "external_key_management",
                        "result": "ok"
                    }
                ]
            },
            {
                "cluster": {
                    "uuid": "f5302836-2b3a-11ee-b937-d039ea9eebee",
                    "name": "stiA800-mccip-htp-00304_siteA",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/f5302836-2b3a-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "negotiated_switchover_ready",
                        "result": "not_applicable",
                        "additional_info": "Disaster recovery readiness checks are not performed as part of periodic MetroCluster check. To run these checks, use the \"metrocluster check run\" command."
                    },
                    {
                        "name": "switchback_ready",
                        "result": "not_applicable",
                        "additional_info": "Disaster recovery readiness checks are not performed as part of periodic MetroCluster check. To run these checks, use the \"metrocluster check run\" command."
                    },
                    {
                        "name": "job_schedules",
                        "result": "ok"
                    },
                    {
                        "name": "licenses",
                        "result": "ok"
                    },
                    {
                        "name": "periodic_check_enabled",
                        "result": "ok"
                    },
                    {
                        "name": "onboard_key_management",
                        "result": "ok"
                    },
                    {
                        "name": "external_key_management",
                        "result": "ok"
                    }
                ]
            }
        ],
        "summary": {
            "message": ""
        }
    },
    "volume": {
        "timestamp": "2024-01-29T10:15:04+00:00",
        "state": "warning",
        "details": [
            {
                "cluster": {
                    "uuid": "f5302836-2b3a-11ee-b937-d039ea9eebee",
                    "_links": {
                        "self": {
                            "href": "/api/cluster/f5302836-2b3a-11ee-b937-d039ea9eebee"
                        }
                    }
                },
                "timestamp": "2024-01-29T10:15:04+00:00",
                "checks": [
                    {
                        "name": "unmirrored_flexgroups",
                        "result": "warning",
                        "additional_info": "FlexGroup \"fg_oss_1691411903\" resides on unmirrored aggregates. Parts of the FlexGroup may not be available after an unplanned switchover. Refer to the MetroCluster documentation on unmirrored aggregates for more information."
                    }
                ],
                "svm": {
                    "name": "S3_vserver_1"
                },
                "volume": {
                    "name": "fg_oss_1691411903"
                }
            }
        ],
        "summary": {
            "message": "Use the \"metrocluster check volume show -instance\" command for detailed results."
        }
    },
    "_links": {
        "self": {
            "href": "/api/cluster/metrocluster/diagnostics"
        }
    }
}

Result for the same
cluster_status
image

node_status
image

aggr_status
image

volume_status
image

@Hardikl
Copy link
Contributor Author

Hardikl commented Jan 30, 2024

Added new Row in Mcc dashboard
image

image

grafana/dashboards/cmode/mcc_cluster.json Outdated Show resolved Hide resolved
grafana/dashboards/cmode/mcc_cluster.json Outdated Show resolved Hide resolved
grafana/dashboards/cmode/mcc_cluster.json Outdated Show resolved Hide resolved
grafana/dashboards/cmode/mcc_cluster.json Outdated Show resolved Hide resolved
grafana/dashboards/cmode/mcc_cluster.json Outdated Show resolved Hide resolved
@rahulguptajss
Copy link
Contributor

CI is still failing. Can you check?

@Hardikl
Copy link
Contributor Author

Hardikl commented Feb 7, 2024

CI is still failing. Can you check?

This template should be disabled by default, but one of the intermediate commit made it enable, Which cause CI to fail.
Now, it will be fine and added rest only docs in dashboard as well.

image

@rahulguptajss
Copy link
Contributor

CI is still failing. Can you check?

This template should be disabled by default, but one of the intermediate commit made it enable, Which cause CI to fail. Now, it will be fine and added rest only docs in dashboard as well.

image

Why should we disable a template that is being used in dashboards? Does it generate too many metrics?

rahulguptajss
rahulguptajss previously approved these changes Feb 8, 2024
@cgrinds cgrinds merged commit b7bb8ff into main Feb 12, 2024
10 checks passed
@cgrinds cgrinds deleted the hl_mcc_diag branch February 12, 2024 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Harvest should monitor metrocluster diagnostics
3 participants