From 45c786057f7a1cf96a47b94a7227e49ab6975e9b Mon Sep 17 00:00:00 2001 From: Fabrizio Sestito Date: Fri, 23 Sep 2022 17:43:39 +0200 Subject: [PATCH] Add acceptance test --- .photofinish.toml | 114 ++- .../integration/hana_cluster_details.js | 28 + ...6b9_ha_cluster_discovery_kvm_provider.json | 784 ++++++++++++++++++ ...ha_cluster_discovery_nutanix_provider.json | 784 ++++++++++++++++++ 4 files changed, 1685 insertions(+), 25 deletions(-) create mode 100644 test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_kvm_provider.json create mode 100644 test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_nutanix_provider.json diff --git a/.photofinish.toml b/.photofinish.toml index 6ca79f80ea..5b448b36ad 100644 --- a/.photofinish.toml +++ b/.photofinish.toml @@ -12,100 +12,164 @@ directories = ["./test/fixtures/scenarios/gcp-landscape"] [sap-system-detail-GRAY] -files = ["./test/fixtures/scenarios/sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_GRAY.json"] +files = [ + "./test/fixtures/scenarios/sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_GRAY.json", +] [sap-system-detail-GREEN] -files = ["./test/fixtures/scenarios/sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_GREEN.json"] +files = [ + "./test/fixtures/scenarios/sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_GREEN.json", +] [sap-system-detail-YELLOW] -files = ["./test/fixtures/scenarios/sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_YELLOW.json"] +files = [ + "./test/fixtures/scenarios/sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_YELLOW.json", +] [sap-system-detail-RED] -files = ["./test/fixtures/scenarios/sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_RED.json"] +files = [ + "./test/fixtures/scenarios/sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_RED.json", +] [sap-system-detail-NEW] -files = ["./test/fixtures/scenarios/sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_new.json"] +files = [ + "./test/fixtures/scenarios/sap-system-details/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_new.json", +] [hana-database-detail-GRAY] -files = ["./test/fixtures/scenarios/hana-database-details/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery_GRAY.json"] +files = [ + "./test/fixtures/scenarios/hana-database-details/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery_GRAY.json", +] [hana-database-detail-GREEN] -files = ["./test/fixtures/scenarios/hana-database-details/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery_GREEN.json"] +files = [ + "./test/fixtures/scenarios/hana-database-details/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery_GREEN.json", +] [hana-database-detail-YELLOW] -files = ["./test/fixtures/scenarios/hana-database-details/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery_YELLOW.json"] +files = [ + "./test/fixtures/scenarios/hana-database-details/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery_YELLOW.json", +] [hana-database-detail-RED] -files = ["./test/fixtures/scenarios/hana-database-details/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery_RED.json"] +files = [ + "./test/fixtures/scenarios/hana-database-details/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery_RED.json", +] [hana-database-detail-NEW] -files = ["./test/fixtures/scenarios/hana-database-details/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery_new.json"] +files = [ + "./test/fixtures/scenarios/hana-database-details/0a055c90-4cb6-54ce-ac9c-ae3fedaf40d4_sap_system_discovery_new.json", +] [sap-systems-overview-GRAY] -files = ["./test/fixtures/scenarios/sap-systems-overview/7269ee51-5007-5849-aaa7-7c4a98b0c9ce_sap_system_discovery_GRAY.json"] +files = [ + "./test/fixtures/scenarios/sap-systems-overview/7269ee51-5007-5849-aaa7-7c4a98b0c9ce_sap_system_discovery_GRAY.json", +] [sap-systems-overview-YELLOW] -files = ["./test/fixtures/scenarios/sap-systems-overview/9a3ec76a-dd4f-5013-9cf0-5eb4cf89898f_sap_system_discovery_YELLOW.json"] +files = [ + "./test/fixtures/scenarios/sap-systems-overview/9a3ec76a-dd4f-5013-9cf0-5eb4cf89898f_sap_system_discovery_YELLOW.json", +] [sap-systems-overview-RED] -files = ["./test/fixtures/scenarios/sap-systems-overview/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_RED.json"] +files = [ + "./test/fixtures/scenarios/sap-systems-overview/1b0e9297-97dd-55d6-9874-8efde4d84c90_sap_system_discovery_RED.json", +] [sap-systems-overview-hana-RED] -files = ["./test/fixtures/scenarios/sap-systems-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_sap_system_discovery_RED.json"] +files = [ + "./test/fixtures/scenarios/sap-systems-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_sap_system_discovery_RED.json", +] [sap-systems-overview-DAA] -files = ["./test/fixtures/scenarios/sap-systems-overview/2ace860d-38e9-55f4-b051-faf4336e71d6_sap_system_discovery_DAA.json"] +files = [ + "./test/fixtures/scenarios/sap-systems-overview/2ace860d-38e9-55f4-b051-faf4336e71d6_sap_system_discovery_DAA.json", +] [cluster-4-SOK] -files = ["./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_4_SOK.json"] +files = [ + "./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_4_SOK.json", +] [cluster-1-SOK] -files = ["./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_1_SOK.json"] +files = [ + "./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_1_SOK.json", +] [cluster-4-SFAIL] -files = ["./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_4_SFAIL.json"] +files = [ + "./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_4_SFAIL.json", +] [cluster-1-SFAIL] -files = ["./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_1_SFAIL.json"] +files = [ + "./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_1_SFAIL.json", +] [cluster-unnamed] -files = ["./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_unnamed.json"] +files = [ + "./test/fixtures/scenarios/clusters-overview/13e8c25c-3180-5a9a-95c8-51ec38e50cfc_ha_cluster_discovery_unnamed.json", +] [cluster-unknown-provider] -files = ["./test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_unknown_provider.json"] +files = [ + "./test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_unknown_provider.json", +] + + +[cluster-kvm-provider] + +files = [ + "./test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_kvm_provider.json", +] + + +[cluster-nutanix-provider] + +files = [ + "./test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_nutanix_provider.json", +] [host-details-azure] -files = ["./test/fixtures/scenarios/healthy-27-node-SAP-cluster/9cd46919-5f19-59aa-993e-cf3736c71053_cloud_discovery.json"] +files = [ + "./test/fixtures/scenarios/healthy-27-node-SAP-cluster/9cd46919-5f19-59aa-993e-cf3736c71053_cloud_discovery.json", +] [host-details-aws] -files = ["./test/fixtures/scenarios/host-details/9cd46919-5f19-59aa-993e-cf3736c71053_cloud_discovery_aws.json"] +files = [ + "./test/fixtures/scenarios/host-details/9cd46919-5f19-59aa-993e-cf3736c71053_cloud_discovery_aws.json", +] [host-details-gcp] -files = ["./test/fixtures/scenarios/host-details/9cd46919-5f19-59aa-993e-cf3736c71053_cloud_discovery_gcp.json"] +files = [ + "./test/fixtures/scenarios/host-details/9cd46919-5f19-59aa-993e-cf3736c71053_cloud_discovery_gcp.json", +] [host-details-unknown] -files = ["./test/fixtures/scenarios/host-details/9cd46919-5f19-59aa-993e-cf3736c71053_cloud_discovery_unknown.json"] \ No newline at end of file +files = [ + "./test/fixtures/scenarios/host-details/9cd46919-5f19-59aa-993e-cf3736c71053_cloud_discovery_unknown.json", +] diff --git a/test/e2e/cypress/integration/hana_cluster_details.js b/test/e2e/cypress/integration/hana_cluster_details.js index cda49e47c5..06dd16212a 100644 --- a/test/e2e/cypress/integration/hana_cluster_details.js +++ b/test/e2e/cypress/integration/hana_cluster_details.js @@ -1,5 +1,7 @@ import { availableHanaCluster } from '../fixtures/hana-cluster-details/available_hana_cluster'; +import { checkDataByProvider } from '../fixtures/checks-catalog/available_checks'; + context('HANA database details', () => { before(() => { cy.visit(`/clusters/${availableHanaCluster.id}`); @@ -168,4 +170,30 @@ context('HANA database details', () => { ); }); }); + + describe('Cluster with kvm provider', () => { + before(() => { + cy.loadScenario('cluster-kvm-provider'); + cy.visit(`/clusters/${availableHanaCluster.id}`); + }); + + it(`should show the default catalog`, () => { + cy.contains('button', 'Settings').click(); + cy.contains('Corosync').click(); + cy.get('li').first().contains(checkDataByProvider.get('default')); + }); + }); + + describe('Cluster with nutanix provider', () => { + before(() => { + cy.loadScenario('cluster-nutanix-provider'); + cy.visit(`/clusters/${availableHanaCluster.id}`); + }); + + it(`should show the default catalog`, () => { + cy.contains('button', 'Settings').click(); + cy.contains('Corosync').click(); + cy.get('li').first().contains(checkDataByProvider.get('default')); + }); + }); }); diff --git a/test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_kvm_provider.json b/test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_kvm_provider.json new file mode 100644 index 0000000000..e5b5ea822c --- /dev/null +++ b/test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_kvm_provider.json @@ -0,0 +1,784 @@ +{ + "agent_id": "b767b3e9-e802-587e-a442-541d093b86b9", + "discovery_type": "ha_cluster_discovery", + "payload": { + "DC": true, + "Provider": "kvm", + "Id": "9c832998801e28cd70ad77380e82a5c0", + "Cib": { + "Configuration": { + "Nodes": [ + { + "Id": "1", + "Uname": "vmhdbprd01", + "InstanceAttributes": [ + { + "Id": "nodes-1-lpa_hdp_lpt", + "Name": "lpa_hdp_lpt", + "Value": "1643125019" + }, + { + "Id": "nodes-1-hana_hdp_vhost", + "Name": "hana_hdp_vhost", + "Value": "vmhdbprd01" + }, + { + "Id": "nodes-1-hana_hdp_site", + "Name": "hana_hdp_site", + "Value": "NBG" + }, + { + "Id": "nodes-1-hana_hdp_op_mode", + "Name": "hana_hdp_op_mode", + "Value": "logreplay" + }, + { + "Id": "nodes-1-hana_hdp_srmode", + "Name": "hana_hdp_srmode", + "Value": "sync" + }, + { + "Id": "nodes-1-hana_hdp_remoteHost", + "Name": "hana_hdp_remoteHost", + "Value": "vmhdbprd02" + } + ] + }, + { + "Id": "2", + "Uname": "vmhdbprd02", + "InstanceAttributes": [ + { + "Id": "nodes-2-lpa_hdp_lpt", + "Name": "lpa_hdp_lpt", + "Value": "30" + }, + { + "Id": "nodes-2-hana_hdp_op_mode", + "Name": "hana_hdp_op_mode", + "Value": "logreplay" + }, + { + "Id": "nodes-2-hana_hdp_vhost", + "Name": "hana_hdp_vhost", + "Value": "vmhdbprd02" + }, + { + "Id": "nodes-2-hana_hdp_remoteHost", + "Name": "hana_hdp_remoteHost", + "Value": "vmhdbprd01" + }, + { + "Id": "nodes-2-hana_hdp_site", + "Name": "hana_hdp_site", + "Value": "WDF" + }, + { + "Id": "nodes-2-hana_hdp_srmode", + "Name": "hana_hdp_srmode", + "Value": "sync" + } + ] + } + ], + "CrmConfig": { + "ClusterProperties": [ + { + "Id": "cib-bootstrap-options-have-watchdog", + "Name": "have-watchdog", + "Value": "true" + }, + { + "Id": "cib-bootstrap-options-dc-version", + "Name": "dc-version", + "Value": "2.0.5+20201202.ba59be712-4.13.1-2.0.5+20201202.ba59be712" + }, + { + "Id": "cib-bootstrap-options-cluster-infrastructure", + "Name": "cluster-infrastructure", + "Value": "corosync" + }, + { + "Id": "cib-bootstrap-options-cluster-name", + "Name": "cluster-name", + "Value": "hana_cluster_3" + }, + { + "Id": "cib-bootstrap-options-stonith-enabled", + "Name": "stonith-enabled", + "Value": "true" + }, + { + "Id": "cib-bootstrap-options-stonith-timeout", + "Name": "stonith-timeout", + "Value": "24" + }, + { + "Id": "cib-bootstrap-options-maintenance-mode", + "Name": "maintenance-mode", + "Value": "false" + }, + { + "Id": "SAPHanaSR-hana_hdp_site_srHook_WDF", + "Name": "hana_hdp_site_srHook_WDF", + "Value": "SOK" + } + ] + }, + "Resources": { + "Clones": [ + { + "Id": "cln_SAPHanaTopology_HDP_HDB10", + "Primitive": { + "Id": "rsc_SAPHanaTopology_HDP_HDB10", + "Type": "SAPHanaTopology", + "Class": "ocf", + "Provider": "suse", + "Operations": [ + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10-monitor-10", + "Name": "monitor", + "Role": "", + "Timeout": "600", + "Interval": "10" + }, + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10-start-0", + "Name": "start", + "Role": "", + "Timeout": "600", + "Interval": "0" + }, + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10-stop-0", + "Name": "stop", + "Role": "", + "Timeout": "300", + "Interval": "0" + } + ], + "MetaAttributes": null, + "InstanceAttributes": [ + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10-instance_attributes-SID", + "Name": "SID", + "Value": "HDP" + }, + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10-instance_attributes-InstanceNumber", + "Name": "InstanceNumber", + "Value": "10" + } + ] + }, + "MetaAttributes": [ + { + "Id": "cln_SAPHanaTopology_HDP_HDB10-meta_attributes-clone-node-max", + "Name": "clone-node-max", + "Value": "1" + }, + { + "Id": "cln_SAPHanaTopology_HDP_HDB10-meta_attributes-interleave", + "Name": "interleave", + "Value": "true" + } + ] + } + ], + "Groups": [ + { + "Id": "g_ip_HDP_HDB10", + "Primitives": [ + { + "Id": "rsc_ip_HDP_HDB10", + "Type": "IPaddr2", + "Class": "ocf", + "Provider": "heartbeat", + "Operations": [ + { + "Id": "rsc_ip_HDP_HDB10-start-0", + "Name": "start", + "Role": "", + "Timeout": "20", + "Interval": "0" + }, + { + "Id": "rsc_ip_HDP_HDB10-stop-0", + "Name": "stop", + "Role": "", + "Timeout": "20", + "Interval": "0" + }, + { + "Id": "rsc_ip_HDP_HDB10-monitor-10", + "Name": "monitor", + "Role": "", + "Timeout": "20", + "Interval": "10" + } + ], + "MetaAttributes": null, + "InstanceAttributes": [ + { + "Id": "rsc_ip_HDP_HDB10-instance_attributes-ip", + "Name": "ip", + "Value": "10.80.1.13" + }, + { + "Id": "rsc_ip_HDP_HDB10-instance_attributes-cidr_netmask", + "Name": "cidr_netmask", + "Value": "24" + }, + { + "Id": "rsc_ip_HDP_HDB10-instance_attributes-nic", + "Name": "nic", + "Value": "eth0" + } + ] + }, + { + "Id": "rsc_socat_HDP_HDB10", + "Type": "azure-lb", + "Class": "ocf", + "Provider": "heartbeat", + "Operations": [ + { + "Id": "rsc_socat_HDP_HDB10-monitor-10", + "Name": "monitor", + "Role": "", + "Timeout": "20", + "Interval": "10" + } + ], + "MetaAttributes": null, + "InstanceAttributes": [ + { + "Id": "rsc_socat_HDP_HDB10-instance_attributes-port", + "Name": "port", + "Value": "62510" + } + ] + } + ] + } + ], + "Masters": [ + { + "Id": "msl_SAPHana_HDP_HDB10", + "Primitive": { + "Id": "rsc_SAPHana_HDP_HDB10", + "Type": "SAPHana", + "Class": "ocf", + "Provider": "suse", + "Operations": [ + { + "Id": "rsc_SAPHana_HDP_HDB10-start-0", + "Name": "start", + "Role": "", + "Timeout": "3600", + "Interval": "0" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-stop-0", + "Name": "stop", + "Role": "", + "Timeout": "3600", + "Interval": "0" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-promote-0", + "Name": "promote", + "Role": "", + "Timeout": "3600", + "Interval": "0" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-monitor-60", + "Name": "monitor", + "Role": "Master", + "Timeout": "700", + "Interval": "60" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-monitor-61", + "Name": "monitor", + "Role": "Slave", + "Timeout": "700", + "Interval": "61" + } + ], + "MetaAttributes": null, + "InstanceAttributes": [ + { + "Id": "rsc_SAPHana_HDP_HDB10-instance_attributes-SID", + "Name": "SID", + "Value": "HDP" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-instance_attributes-InstanceNumber", + "Name": "InstanceNumber", + "Value": "10" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-instance_attributes-PREFER_SITE_TAKEOVER", + "Name": "PREFER_SITE_TAKEOVER", + "Value": "True" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-instance_attributes-AUTOMATED_REGISTER", + "Name": "AUTOMATED_REGISTER", + "Value": "False" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-instance_attributes-DUPLICATE_PRIMARY_TIMEOUT", + "Name": "DUPLICATE_PRIMARY_TIMEOUT", + "Value": "7200" + } + ] + }, + "MetaAttributes": [ + { + "Id": "msl_SAPHana_HDP_HDB10-meta_attributes-clone-max", + "Name": "clone-max", + "Value": "2" + }, + { + "Id": "msl_SAPHana_HDP_HDB10-meta_attributes-clone-node-max", + "Name": "clone-node-max", + "Value": "1" + }, + { + "Id": "msl_SAPHana_HDP_HDB10-meta_attributes-interleave", + "Name": "interleave", + "Value": "true" + } + ] + } + ], + "Primitives": [ + { + "Id": "stonith-sbd", + "Type": "external/sbd", + "Class": "stonith", + "Provider": "", + "Operations": [ + { + "Id": "stonith-sbd-monitor-15", + "Name": "monitor", + "Role": "", + "Timeout": "15", + "Interval": "15" + } + ], + "MetaAttributes": null, + "InstanceAttributes": [ + { + "Id": "stonith-sbd-instance_attributes-pcmk_delay_max", + "Name": "pcmk_delay_max", + "Value": "15" + } + ] + } + ] + }, + "Constraints": { + "RscLocations": null + } + } + }, + "SBD": { + "Config": { + "SBD_DEVICE": "/dev/disk/by-id/scsi-SLIO-ORG_IBLOCK_8d286026-c3a6-4404-90ac-f2549b924e77", + "SBD_PACEMAKER": "yes", + "SBD_STARTMODE": "always", + "SBD_DELAY_START": "yes", + "SBD_WATCHDOG_DEV": "/dev/watchdog", + "SBD_TIMEOUT_ACTION": "flush,reboot", + "SBD_WATCHDOG_TIMEOUT": "5", + "SBD_MOVE_TO_ROOT_CGROUP": "auto", + "SBD_SYNC_RESOURCE_STARTUP": "no" + }, + "Devices": [ + { + "Dump": { + "Uuid": "a7a18c6b-7c8e-4bda-bb77-45e4b5dc8478", + "Slots": 255, + "Header": "2.1", + "SectorSize": 512, + "TimeoutLoop": 1, + "TimeoutMsgwait": 10, + "TimeoutAllocate": 2, + "TimeoutWatchdog": 5 + }, + "List": [ + { + "Id": 0, + "Name": "vmhdbprd01", + "Status": "clear" + }, + { + "Id": 1, + "Name": "vmhdbprd02", + "Status": "clear" + } + ], + "Device": "/dev/disk/by-id/scsi-SLIO-ORG_IBLOCK_8d286026-c3a6-4404-90ac-f2549b924e77", + "Status": "healthy" + } + ] + }, + "Name": "hana_cluster_3", + "Crmmon": { + "Nodes": [ + { + "DC": true, + "Id": "1", + "Name": "vmhdbprd01", + "Type": "member", + "Online": true, + "Pending": false, + "Standby": false, + "Unclean": false, + "Shutdown": false, + "ExpectedUp": true, + "Maintenance": false, + "StandbyOnFail": false, + "ResourcesRunning": 5 + }, + { + "DC": false, + "Id": "2", + "Name": "vmhdbprd02", + "Type": "member", + "Online": true, + "Pending": false, + "Standby": false, + "Unclean": false, + "Shutdown": false, + "ExpectedUp": true, + "Maintenance": false, + "StandbyOnFail": false, + "ResourcesRunning": 2 + } + ], + "Clones": [ + { + "Id": "msl_SAPHana_HDP_HDB10", + "Failed": false, + "Unique": false, + "Managed": true, + "Resources": [ + { + "Id": "rsc_SAPHana_HDP_HDB10", + "Node": { + "Id": "1", + "Name": "vmhdbprd01", + "Cached": true + }, + "Role": "Master", + "Agent": "ocf::suse:SAPHana", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + }, + { + "Id": "rsc_SAPHana_HDP_HDB10", + "Node": { + "Id": "2", + "Name": "vmhdbprd02", + "Cached": true + }, + "Role": "Slave", + "Agent": "ocf::suse:SAPHana", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + } + ], + "MultiState": true, + "FailureIgnored": false + }, + { + "Id": "cln_SAPHanaTopology_HDP_HDB10", + "Failed": false, + "Unique": false, + "Managed": true, + "Resources": [ + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10", + "Node": { + "Id": "1", + "Name": "vmhdbprd01", + "Cached": true + }, + "Role": "Started", + "Agent": "ocf::suse:SAPHanaTopology", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + }, + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10", + "Node": { + "Id": "2", + "Name": "vmhdbprd02", + "Cached": true + }, + "Role": "Started", + "Agent": "ocf::suse:SAPHanaTopology", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + } + ], + "MultiState": false, + "FailureIgnored": false + } + ], + "Groups": [ + { + "Id": "g_ip_HDP_HDB10", + "Resources": [ + { + "Id": "rsc_ip_HDP_HDB10", + "Node": { + "Id": "1", + "Name": "vmhdbprd01", + "Cached": true + }, + "Role": "Started", + "Agent": "ocf::heartbeat:IPaddr2", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + }, + { + "Id": "rsc_socat_HDP_HDB10", + "Node": { + "Id": "1", + "Name": "vmhdbprd01", + "Cached": true + }, + "Role": "Started", + "Agent": "ocf::heartbeat:azure-lb", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + } + ] + } + ], + "Summary": { + "Nodes": { + "Number": 2 + }, + "Resources": { + "Number": 7, + "Blocked": 0, + "Disabled": 0 + }, + "LastChange": { + "Time": "Tue Jan 25 15:36:59 2022" + }, + "ClusterOptions": { + "StonithEnabled": true + } + }, + "Version": "2.0.5", + "Resources": [ + { + "Id": "stonith-sbd", + "Node": { + "Id": "1", + "Name": "vmhdbprd01", + "Cached": true + }, + "Role": "Started", + "Agent": "stonith:external/sbd", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + } + ], + "NodeHistory": { + "Nodes": [ + { + "Name": "vmhdbprd01", + "ResourceHistory": [ + { + "Name": "stonith-sbd", + "FailCount": 0, + "MigrationThreshold": 5000 + }, + { + "Name": "rsc_SAPHanaTopology_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + }, + { + "Name": "rsc_socat_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + }, + { + "Name": "rsc_ip_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + }, + { + "Name": "rsc_SAPHana_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + } + ] + }, + { + "Name": "vmhdbprd02", + "ResourceHistory": [ + { + "Name": "rsc_SAPHana_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + }, + { + "Name": "rsc_SAPHanaTopology_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + } + ] + } + ] + }, + "NodeAttributes": { + "Nodes": [ + { + "Name": "vmhdbprd01", + "Attributes": [ + { + "Name": "hana_hdp_clone_state", + "Value": "PROMOTED" + }, + { + "Name": "hana_hdp_op_mode", + "Value": "logreplay" + }, + { + "Name": "hana_hdp_remoteHost", + "Value": "vmhdbprd02" + }, + { + "Name": "hana_hdp_roles", + "Value": "4:P:master1:master:worker:master" + }, + { + "Name": "hana_hdp_site", + "Value": "NBG" + }, + { + "Name": "hana_hdp_srmode", + "Value": "sync" + }, + { + "Name": "hana_hdp_sync_state", + "Value": "PRIM" + }, + { + "Name": "hana_hdp_version", + "Value": "2.00.057.00.1629894416" + }, + { + "Name": "hana_hdp_vhost", + "Value": "vmhdbprd01" + }, + { + "Name": "lpa_hdp_lpt", + "Value": "1643125019" + }, + { + "Name": "master-rsc_SAPHana_HDP_HDB10", + "Value": "150" + } + ] + }, + { + "Name": "vmhdbprd02", + "Attributes": [ + { + "Name": "hana_hdp_clone_state", + "Value": "DEMOTED" + }, + { + "Name": "hana_hdp_op_mode", + "Value": "logreplay" + }, + { + "Name": "hana_hdp_remoteHost", + "Value": "vmhdbprd01" + }, + { + "Name": "hana_hdp_roles", + "Value": "4:S:master1:master:worker:master" + }, + { + "Name": "hana_hdp_site", + "Value": "WDF" + }, + { + "Name": "hana_hdp_srmode", + "Value": "sync" + }, + { + "Name": "hana_hdp_sync_state", + "Value": "SOK" + }, + { + "Name": "hana_hdp_version", + "Value": "2.00.057.00.1629894416" + }, + { + "Name": "hana_hdp_vhost", + "Value": "vmhdbprd02" + }, + { + "Name": "lpa_hdp_lpt", + "Value": "30" + }, + { + "Name": "master-rsc_SAPHana_HDP_HDB10", + "Value": "100" + } + ] + } + ] + } + } + } +} diff --git a/test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_nutanix_provider.json b/test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_nutanix_provider.json new file mode 100644 index 0000000000..ecdc0a4a00 --- /dev/null +++ b/test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_nutanix_provider.json @@ -0,0 +1,784 @@ +{ + "agent_id": "b767b3e9-e802-587e-a442-541d093b86b9", + "discovery_type": "ha_cluster_discovery", + "payload": { + "DC": true, + "Provider": "nutanix", + "Id": "9c832998801e28cd70ad77380e82a5c0", + "Cib": { + "Configuration": { + "Nodes": [ + { + "Id": "1", + "Uname": "vmhdbprd01", + "InstanceAttributes": [ + { + "Id": "nodes-1-lpa_hdp_lpt", + "Name": "lpa_hdp_lpt", + "Value": "1643125019" + }, + { + "Id": "nodes-1-hana_hdp_vhost", + "Name": "hana_hdp_vhost", + "Value": "vmhdbprd01" + }, + { + "Id": "nodes-1-hana_hdp_site", + "Name": "hana_hdp_site", + "Value": "NBG" + }, + { + "Id": "nodes-1-hana_hdp_op_mode", + "Name": "hana_hdp_op_mode", + "Value": "logreplay" + }, + { + "Id": "nodes-1-hana_hdp_srmode", + "Name": "hana_hdp_srmode", + "Value": "sync" + }, + { + "Id": "nodes-1-hana_hdp_remoteHost", + "Name": "hana_hdp_remoteHost", + "Value": "vmhdbprd02" + } + ] + }, + { + "Id": "2", + "Uname": "vmhdbprd02", + "InstanceAttributes": [ + { + "Id": "nodes-2-lpa_hdp_lpt", + "Name": "lpa_hdp_lpt", + "Value": "30" + }, + { + "Id": "nodes-2-hana_hdp_op_mode", + "Name": "hana_hdp_op_mode", + "Value": "logreplay" + }, + { + "Id": "nodes-2-hana_hdp_vhost", + "Name": "hana_hdp_vhost", + "Value": "vmhdbprd02" + }, + { + "Id": "nodes-2-hana_hdp_remoteHost", + "Name": "hana_hdp_remoteHost", + "Value": "vmhdbprd01" + }, + { + "Id": "nodes-2-hana_hdp_site", + "Name": "hana_hdp_site", + "Value": "WDF" + }, + { + "Id": "nodes-2-hana_hdp_srmode", + "Name": "hana_hdp_srmode", + "Value": "sync" + } + ] + } + ], + "CrmConfig": { + "ClusterProperties": [ + { + "Id": "cib-bootstrap-options-have-watchdog", + "Name": "have-watchdog", + "Value": "true" + }, + { + "Id": "cib-bootstrap-options-dc-version", + "Name": "dc-version", + "Value": "2.0.5+20201202.ba59be712-4.13.1-2.0.5+20201202.ba59be712" + }, + { + "Id": "cib-bootstrap-options-cluster-infrastructure", + "Name": "cluster-infrastructure", + "Value": "corosync" + }, + { + "Id": "cib-bootstrap-options-cluster-name", + "Name": "cluster-name", + "Value": "hana_cluster_3" + }, + { + "Id": "cib-bootstrap-options-stonith-enabled", + "Name": "stonith-enabled", + "Value": "true" + }, + { + "Id": "cib-bootstrap-options-stonith-timeout", + "Name": "stonith-timeout", + "Value": "24" + }, + { + "Id": "cib-bootstrap-options-maintenance-mode", + "Name": "maintenance-mode", + "Value": "false" + }, + { + "Id": "SAPHanaSR-hana_hdp_site_srHook_WDF", + "Name": "hana_hdp_site_srHook_WDF", + "Value": "SOK" + } + ] + }, + "Resources": { + "Clones": [ + { + "Id": "cln_SAPHanaTopology_HDP_HDB10", + "Primitive": { + "Id": "rsc_SAPHanaTopology_HDP_HDB10", + "Type": "SAPHanaTopology", + "Class": "ocf", + "Provider": "suse", + "Operations": [ + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10-monitor-10", + "Name": "monitor", + "Role": "", + "Timeout": "600", + "Interval": "10" + }, + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10-start-0", + "Name": "start", + "Role": "", + "Timeout": "600", + "Interval": "0" + }, + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10-stop-0", + "Name": "stop", + "Role": "", + "Timeout": "300", + "Interval": "0" + } + ], + "MetaAttributes": null, + "InstanceAttributes": [ + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10-instance_attributes-SID", + "Name": "SID", + "Value": "HDP" + }, + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10-instance_attributes-InstanceNumber", + "Name": "InstanceNumber", + "Value": "10" + } + ] + }, + "MetaAttributes": [ + { + "Id": "cln_SAPHanaTopology_HDP_HDB10-meta_attributes-clone-node-max", + "Name": "clone-node-max", + "Value": "1" + }, + { + "Id": "cln_SAPHanaTopology_HDP_HDB10-meta_attributes-interleave", + "Name": "interleave", + "Value": "true" + } + ] + } + ], + "Groups": [ + { + "Id": "g_ip_HDP_HDB10", + "Primitives": [ + { + "Id": "rsc_ip_HDP_HDB10", + "Type": "IPaddr2", + "Class": "ocf", + "Provider": "heartbeat", + "Operations": [ + { + "Id": "rsc_ip_HDP_HDB10-start-0", + "Name": "start", + "Role": "", + "Timeout": "20", + "Interval": "0" + }, + { + "Id": "rsc_ip_HDP_HDB10-stop-0", + "Name": "stop", + "Role": "", + "Timeout": "20", + "Interval": "0" + }, + { + "Id": "rsc_ip_HDP_HDB10-monitor-10", + "Name": "monitor", + "Role": "", + "Timeout": "20", + "Interval": "10" + } + ], + "MetaAttributes": null, + "InstanceAttributes": [ + { + "Id": "rsc_ip_HDP_HDB10-instance_attributes-ip", + "Name": "ip", + "Value": "10.80.1.13" + }, + { + "Id": "rsc_ip_HDP_HDB10-instance_attributes-cidr_netmask", + "Name": "cidr_netmask", + "Value": "24" + }, + { + "Id": "rsc_ip_HDP_HDB10-instance_attributes-nic", + "Name": "nic", + "Value": "eth0" + } + ] + }, + { + "Id": "rsc_socat_HDP_HDB10", + "Type": "azure-lb", + "Class": "ocf", + "Provider": "heartbeat", + "Operations": [ + { + "Id": "rsc_socat_HDP_HDB10-monitor-10", + "Name": "monitor", + "Role": "", + "Timeout": "20", + "Interval": "10" + } + ], + "MetaAttributes": null, + "InstanceAttributes": [ + { + "Id": "rsc_socat_HDP_HDB10-instance_attributes-port", + "Name": "port", + "Value": "62510" + } + ] + } + ] + } + ], + "Masters": [ + { + "Id": "msl_SAPHana_HDP_HDB10", + "Primitive": { + "Id": "rsc_SAPHana_HDP_HDB10", + "Type": "SAPHana", + "Class": "ocf", + "Provider": "suse", + "Operations": [ + { + "Id": "rsc_SAPHana_HDP_HDB10-start-0", + "Name": "start", + "Role": "", + "Timeout": "3600", + "Interval": "0" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-stop-0", + "Name": "stop", + "Role": "", + "Timeout": "3600", + "Interval": "0" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-promote-0", + "Name": "promote", + "Role": "", + "Timeout": "3600", + "Interval": "0" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-monitor-60", + "Name": "monitor", + "Role": "Master", + "Timeout": "700", + "Interval": "60" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-monitor-61", + "Name": "monitor", + "Role": "Slave", + "Timeout": "700", + "Interval": "61" + } + ], + "MetaAttributes": null, + "InstanceAttributes": [ + { + "Id": "rsc_SAPHana_HDP_HDB10-instance_attributes-SID", + "Name": "SID", + "Value": "HDP" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-instance_attributes-InstanceNumber", + "Name": "InstanceNumber", + "Value": "10" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-instance_attributes-PREFER_SITE_TAKEOVER", + "Name": "PREFER_SITE_TAKEOVER", + "Value": "True" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-instance_attributes-AUTOMATED_REGISTER", + "Name": "AUTOMATED_REGISTER", + "Value": "False" + }, + { + "Id": "rsc_SAPHana_HDP_HDB10-instance_attributes-DUPLICATE_PRIMARY_TIMEOUT", + "Name": "DUPLICATE_PRIMARY_TIMEOUT", + "Value": "7200" + } + ] + }, + "MetaAttributes": [ + { + "Id": "msl_SAPHana_HDP_HDB10-meta_attributes-clone-max", + "Name": "clone-max", + "Value": "2" + }, + { + "Id": "msl_SAPHana_HDP_HDB10-meta_attributes-clone-node-max", + "Name": "clone-node-max", + "Value": "1" + }, + { + "Id": "msl_SAPHana_HDP_HDB10-meta_attributes-interleave", + "Name": "interleave", + "Value": "true" + } + ] + } + ], + "Primitives": [ + { + "Id": "stonith-sbd", + "Type": "external/sbd", + "Class": "stonith", + "Provider": "", + "Operations": [ + { + "Id": "stonith-sbd-monitor-15", + "Name": "monitor", + "Role": "", + "Timeout": "15", + "Interval": "15" + } + ], + "MetaAttributes": null, + "InstanceAttributes": [ + { + "Id": "stonith-sbd-instance_attributes-pcmk_delay_max", + "Name": "pcmk_delay_max", + "Value": "15" + } + ] + } + ] + }, + "Constraints": { + "RscLocations": null + } + } + }, + "SBD": { + "Config": { + "SBD_DEVICE": "/dev/disk/by-id/scsi-SLIO-ORG_IBLOCK_8d286026-c3a6-4404-90ac-f2549b924e77", + "SBD_PACEMAKER": "yes", + "SBD_STARTMODE": "always", + "SBD_DELAY_START": "yes", + "SBD_WATCHDOG_DEV": "/dev/watchdog", + "SBD_TIMEOUT_ACTION": "flush,reboot", + "SBD_WATCHDOG_TIMEOUT": "5", + "SBD_MOVE_TO_ROOT_CGROUP": "auto", + "SBD_SYNC_RESOURCE_STARTUP": "no" + }, + "Devices": [ + { + "Dump": { + "Uuid": "a7a18c6b-7c8e-4bda-bb77-45e4b5dc8478", + "Slots": 255, + "Header": "2.1", + "SectorSize": 512, + "TimeoutLoop": 1, + "TimeoutMsgwait": 10, + "TimeoutAllocate": 2, + "TimeoutWatchdog": 5 + }, + "List": [ + { + "Id": 0, + "Name": "vmhdbprd01", + "Status": "clear" + }, + { + "Id": 1, + "Name": "vmhdbprd02", + "Status": "clear" + } + ], + "Device": "/dev/disk/by-id/scsi-SLIO-ORG_IBLOCK_8d286026-c3a6-4404-90ac-f2549b924e77", + "Status": "healthy" + } + ] + }, + "Name": "hana_cluster_3", + "Crmmon": { + "Nodes": [ + { + "DC": true, + "Id": "1", + "Name": "vmhdbprd01", + "Type": "member", + "Online": true, + "Pending": false, + "Standby": false, + "Unclean": false, + "Shutdown": false, + "ExpectedUp": true, + "Maintenance": false, + "StandbyOnFail": false, + "ResourcesRunning": 5 + }, + { + "DC": false, + "Id": "2", + "Name": "vmhdbprd02", + "Type": "member", + "Online": true, + "Pending": false, + "Standby": false, + "Unclean": false, + "Shutdown": false, + "ExpectedUp": true, + "Maintenance": false, + "StandbyOnFail": false, + "ResourcesRunning": 2 + } + ], + "Clones": [ + { + "Id": "msl_SAPHana_HDP_HDB10", + "Failed": false, + "Unique": false, + "Managed": true, + "Resources": [ + { + "Id": "rsc_SAPHana_HDP_HDB10", + "Node": { + "Id": "1", + "Name": "vmhdbprd01", + "Cached": true + }, + "Role": "Master", + "Agent": "ocf::suse:SAPHana", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + }, + { + "Id": "rsc_SAPHana_HDP_HDB10", + "Node": { + "Id": "2", + "Name": "vmhdbprd02", + "Cached": true + }, + "Role": "Slave", + "Agent": "ocf::suse:SAPHana", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + } + ], + "MultiState": true, + "FailureIgnored": false + }, + { + "Id": "cln_SAPHanaTopology_HDP_HDB10", + "Failed": false, + "Unique": false, + "Managed": true, + "Resources": [ + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10", + "Node": { + "Id": "1", + "Name": "vmhdbprd01", + "Cached": true + }, + "Role": "Started", + "Agent": "ocf::suse:SAPHanaTopology", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + }, + { + "Id": "rsc_SAPHanaTopology_HDP_HDB10", + "Node": { + "Id": "2", + "Name": "vmhdbprd02", + "Cached": true + }, + "Role": "Started", + "Agent": "ocf::suse:SAPHanaTopology", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + } + ], + "MultiState": false, + "FailureIgnored": false + } + ], + "Groups": [ + { + "Id": "g_ip_HDP_HDB10", + "Resources": [ + { + "Id": "rsc_ip_HDP_HDB10", + "Node": { + "Id": "1", + "Name": "vmhdbprd01", + "Cached": true + }, + "Role": "Started", + "Agent": "ocf::heartbeat:IPaddr2", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + }, + { + "Id": "rsc_socat_HDP_HDB10", + "Node": { + "Id": "1", + "Name": "vmhdbprd01", + "Cached": true + }, + "Role": "Started", + "Agent": "ocf::heartbeat:azure-lb", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + } + ] + } + ], + "Summary": { + "Nodes": { + "Number": 2 + }, + "Resources": { + "Number": 7, + "Blocked": 0, + "Disabled": 0 + }, + "LastChange": { + "Time": "Tue Jan 25 15:36:59 2022" + }, + "ClusterOptions": { + "StonithEnabled": true + } + }, + "Version": "2.0.5", + "Resources": [ + { + "Id": "stonith-sbd", + "Node": { + "Id": "1", + "Name": "vmhdbprd01", + "Cached": true + }, + "Role": "Started", + "Agent": "stonith:external/sbd", + "Active": true, + "Failed": false, + "Blocked": false, + "Managed": true, + "Orphaned": false, + "FailureIgnored": false, + "NodesRunningOn": 1 + } + ], + "NodeHistory": { + "Nodes": [ + { + "Name": "vmhdbprd01", + "ResourceHistory": [ + { + "Name": "stonith-sbd", + "FailCount": 0, + "MigrationThreshold": 5000 + }, + { + "Name": "rsc_SAPHanaTopology_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + }, + { + "Name": "rsc_socat_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + }, + { + "Name": "rsc_ip_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + }, + { + "Name": "rsc_SAPHana_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + } + ] + }, + { + "Name": "vmhdbprd02", + "ResourceHistory": [ + { + "Name": "rsc_SAPHana_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + }, + { + "Name": "rsc_SAPHanaTopology_HDP_HDB10", + "FailCount": 0, + "MigrationThreshold": 5000 + } + ] + } + ] + }, + "NodeAttributes": { + "Nodes": [ + { + "Name": "vmhdbprd01", + "Attributes": [ + { + "Name": "hana_hdp_clone_state", + "Value": "PROMOTED" + }, + { + "Name": "hana_hdp_op_mode", + "Value": "logreplay" + }, + { + "Name": "hana_hdp_remoteHost", + "Value": "vmhdbprd02" + }, + { + "Name": "hana_hdp_roles", + "Value": "4:P:master1:master:worker:master" + }, + { + "Name": "hana_hdp_site", + "Value": "NBG" + }, + { + "Name": "hana_hdp_srmode", + "Value": "sync" + }, + { + "Name": "hana_hdp_sync_state", + "Value": "PRIM" + }, + { + "Name": "hana_hdp_version", + "Value": "2.00.057.00.1629894416" + }, + { + "Name": "hana_hdp_vhost", + "Value": "vmhdbprd01" + }, + { + "Name": "lpa_hdp_lpt", + "Value": "1643125019" + }, + { + "Name": "master-rsc_SAPHana_HDP_HDB10", + "Value": "150" + } + ] + }, + { + "Name": "vmhdbprd02", + "Attributes": [ + { + "Name": "hana_hdp_clone_state", + "Value": "DEMOTED" + }, + { + "Name": "hana_hdp_op_mode", + "Value": "logreplay" + }, + { + "Name": "hana_hdp_remoteHost", + "Value": "vmhdbprd01" + }, + { + "Name": "hana_hdp_roles", + "Value": "4:S:master1:master:worker:master" + }, + { + "Name": "hana_hdp_site", + "Value": "WDF" + }, + { + "Name": "hana_hdp_srmode", + "Value": "sync" + }, + { + "Name": "hana_hdp_sync_state", + "Value": "SOK" + }, + { + "Name": "hana_hdp_version", + "Value": "2.00.057.00.1629894416" + }, + { + "Name": "hana_hdp_vhost", + "Value": "vmhdbprd02" + }, + { + "Name": "lpa_hdp_lpt", + "Value": "30" + }, + { + "Name": "master-rsc_SAPHana_HDP_HDB10", + "Value": "100" + } + ] + } + ] + } + } + } +}