diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0d84856da8..1b482a426f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -839,6 +839,7 @@ jobs: photofinish run hana-scale-out -u "http://$TRENTO_DEMO_IP/api/collect" "$TRENTO_API_KEY" photofinish run hana-diskless-sbd -u "http://$TRENTO_DEMO_IP/api/collect" "$TRENTO_API_KEY" photofinish run multi-tenant -u "http://$TRENTO_DEMO_IP/api/collect" "$TRENTO_API_KEY" + photofinish run hana-scale-up-angi -u "http://$TRENTO_DEMO_IP/api/collect" "$TRENTO_API_KEY" obs-commit-image: name: Commit to OBS to generate container image diff --git a/.github/workflows/pr_env.yaml b/.github/workflows/pr_env.yaml index 89400641e2..288cfdeb29 100644 --- a/.github/workflows/pr_env.yaml +++ b/.github/workflows/pr_env.yaml @@ -161,4 +161,5 @@ jobs: photofinish run healthy-27-node-SAP-cluster -u "https://$TRENTO_PR_ENV_URL/api/v1/collect" photofinish run hana-scale-out -u "https://$TRENTO_PR_ENV_URL/api/v1/collect" photofinish run hana-diskless-sbd -u "https://$TRENTO_PR_ENV_URL/api/v1/collect" - photofinish run multi-tenant -u "https://$TRENTO_PR_ENV_URL/api/v1/collect" \ No newline at end of file + photofinish run multi-tenant -u "https://$TRENTO_PR_ENV_URL/api/v1/collect" + photofinish run hana-scale-up-angi -u "https://$TRENTO_PR_ENV_URL/api/collect" \ No newline at end of file diff --git a/.photofinish.toml b/.photofinish.toml index 8bde2723e9..cb0a7a02a7 100644 --- a/.photofinish.toml +++ b/.photofinish.toml @@ -14,6 +14,10 @@ directories = ["./test/fixtures/scenarios/hana-scale-out"] directories = ["./test/fixtures/scenarios/hana-diskless-sbd"] +[hana-scale-up-angi] + +directories = ["./test/fixtures/scenarios/hana-scale-up-angi"] + [aws-landscape] directories = ["./test/fixtures/scenarios/aws-landscape"] @@ -212,6 +216,12 @@ files = [ "./test/fixtures/scenarios/hana-cluster-details/b767b3e9-e802-587e-a442-541d093b86b9_ha_cluster_discovery_nutanix_provider.json", ] +[cluster-hana-scale-up-angi-failover] + +files = [ + "./test/fixtures/scenarios/hana-cluster-details/4b67842f-ccf7-46a4-a344-9e918648b117_ha_cluster_discovery_angi_failover.json", +] + [host-details-vmhdbprd01] files = [ diff --git a/test/e2e/cypress/e2e/hana_cluster_details.cy.js b/test/e2e/cypress/e2e/hana_cluster_details.cy.js index 463dd5f3e6..05f30f5bc8 100644 --- a/test/e2e/cypress/e2e/hana_cluster_details.cy.js +++ b/test/e2e/cypress/e2e/hana_cluster_details.cy.js @@ -4,7 +4,10 @@ import { createUserRequestFactory, } from '@lib/test-utils/factories'; import { capitalize } from 'lodash'; -import { availableHanaCluster } from '../fixtures/hana-cluster-details/available_hana_cluster'; +import { + availableHanaCluster, + availableAngiCluster, +} from '../fixtures/hana-cluster-details/available_hana_cluster'; context('HANA cluster details', () => { const lastExecutionURL = `**/api/v2/checks/groups/**/executions/last`; @@ -60,6 +63,18 @@ context('HANA cluster details', () => { .contains(availableHanaCluster.clusterType); }); + it(`should have architecture type ${availableHanaCluster.clusterType}`, () => { + cy.get('.tn-cluster-details') + .contains('Cluster type') + .next() + .find('svg') + .trigger('mouseover'); + + cy.contains('span', availableHanaCluster.architectureType).should( + 'exist' + ); + }); + it(`should have log replication mode ${availableHanaCluster.hanaSystemReplicationMode}`, () => { cy.get('.tn-cluster-details') .contains('HANA log replication mode') @@ -215,6 +230,102 @@ context('HANA cluster details', () => { }); }); + describe('Angi architecture', () => { + before(() => { + cy.loadScenario('hana-scale-up-angi'); + cy.visit(`/clusters/${availableAngiCluster.id}`); + }); + + after(() => { + availableAngiCluster.hosts.forEach(({ id }) => { + cy.deregisterHost(id); + }); + }); + + it('should discover and display properly Angi architecture HANA scale up cluster', () => { + cy.get('h1').contains(availableAngiCluster.name); + + cy.get('.tn-cluster-details') + .contains('Provider') + .next() + .contains(availableAngiCluster.provider); + + cy.get('.tn-cluster-details') + .contains('SID') + .next() + .contains(availableAngiCluster.sid) + .should( + 'have.attr', + 'href', + `/databases/${availableAngiCluster.systemID}` + ); + + cy.get('.tn-cluster-details') + .contains('Cluster type') + .next() + .contains(availableAngiCluster.clusterType); + + cy.get('.tn-cluster-details') + .contains('Cluster type') + .next() + .find('svg') + .trigger('mouseover'); + + cy.contains('span', availableAngiCluster.architectureType).should( + 'exist' + ); + + cy.get('.tn-cluster-details') + .contains('HANA log replication mode') + .next() + .contains(availableAngiCluster.hanaSystemReplicationMode); + + cy.get('.tn-cluster-details') + .contains('Fencing type') + .next() + .contains(availableAngiCluster.fencingType); + + cy.get('.tn-cluster-details') + .contains('HANA secondary sync state') + .next() + .contains(availableAngiCluster.hanaSecondarySyncState); + + cy.get('.tn-cluster-details') + .contains('Cluster maintenance') + .next() + .contains('False'); + + cy.get('.tn-cluster-details') + .contains('HANA log operation mode') + .next() + .contains(availableAngiCluster.hanaSystemReplicationOperationMode); + + cy.get('.tn-cluster-details') + .contains('CIB last written') + .next() + .contains(availableAngiCluster.cibLastWritten); + + const site1 = availableAngiCluster.sites[0]; + const site2 = availableAngiCluster.sites[1]; + cy.get(`.tn-site-details-${site1.name}`).contains(site1.state); + cy.get(`.tn-site-details-${site2.name}`).contains(site2.state); + }); + + it('should discover a Angi cluster with failover', () => { + cy.loadScenario('cluster-hana-scale-up-angi-failover'); + + cy.get('.tn-cluster-details') + .contains('HANA secondary sync state') + .next() + .contains('SFAIL'); + + const site1 = availableAngiCluster.sites[0]; + const site2 = availableAngiCluster.sites[1]; + cy.get(`.tn-site-details-${site1.name}`).contains('Failed'); + cy.get(`.tn-site-details-${site2.name}`).contains(site1.state); + }); + }); + describe.skip('Check Selection should allow to enable checks from the checks catalog', () => { it('should take me to the cluster settings when pressing the settings button', () => { cy.get('button').contains('Check Selection').click(); diff --git a/test/e2e/cypress/fixtures/hana-cluster-details/available_hana_cluster.js b/test/e2e/cypress/fixtures/hana-cluster-details/available_hana_cluster.js index 4a7f3e9842..e846d84ab4 100644 --- a/test/e2e/cypress/fixtures/hana-cluster-details/available_hana_cluster.js +++ b/test/e2e/cypress/fixtures/hana-cluster-details/available_hana_cluster.js @@ -4,6 +4,7 @@ export const availableHanaCluster = { sid: 'HDP', systemID: '6c9208eb-a5bb-57ef-be5c-6422dedab602', clusterType: 'HANA Scale Up', + architectureType: 'Classic', provider: 'Azure', hanaSystemReplicationMode: 'sync', fencingType: 'external/sbd', @@ -216,3 +217,37 @@ export const availableHanaCluster = { }, ], }; + +export const availableAngiCluster = { + id: '69851bfe-5364-5ea8-93e1-cbe14268ccaf', + name: 'hana_angi', + sid: 'HN9', + systemID: '3daab481-1f21-5e32-84bc-0014bda8efdf', + clusterType: 'HANA Scale Up', + architectureType: 'Angi', + provider: 'Azure', + hanaSystemReplicationMode: 'sync', + fencingType: 'external/sbd', + maintenanceMode: false, + hanaSecondarySyncState: 'SOK', + cibLastWritten: 'Mon Jun 10 13:03:57 2024', + hanaSystemReplicationOperationMode: 'logreplay', + hosts: [ + { + id: '851a4dd3-9693-44c3-a40b-b32d22872e74', + }, + { + id: '4b67842f-ccf7-46a4-a344-9e918648b117', + }, + ], + sites: [ + { + name: 'WDF', + state: 'Primary', + }, + { + name: 'ROT', + state: 'Secondary', + }, + ], +}; diff --git a/test/fixtures/scenarios/hana-cluster-details/4b67842f-ccf7-46a4-a344-9e918648b117_ha_cluster_discovery_angi_failover.json b/test/fixtures/scenarios/hana-cluster-details/4b67842f-ccf7-46a4-a344-9e918648b117_ha_cluster_discovery_angi_failover.json new file mode 100644 index 0000000000..cfa2e08100 --- /dev/null +++ b/test/fixtures/scenarios/hana-cluster-details/4b67842f-ccf7-46a4-a344-9e918648b117_ha_cluster_discovery_angi_failover.json @@ -0,0 +1,751 @@ +{ + "agent_id": "4b67842f-ccf7-46a4-a344-9e918648b117", + "discovery_type": "ha_cluster_discovery", + "payload": { + "Cib": { + "Configuration": { + "Constraints": { + "RscLocations": null + }, + "CrmConfig": { + "ClusterProperties": [ + { + "Id": "cib-bootstrap-options-have-watchdog", + "Name": "have-watchdog", + "Value": "true" + }, + { + "Id": "cib-bootstrap-options-dc-version", + "Name": "dc-version", + "Value": "2.1.5+20221208.a3f44794f-150500.6.14.4-2.1.5+20221208.a3f44794f" + }, + { + "Id": "cib-bootstrap-options-cluster-infrastructure", + "Name": "cluster-infrastructure", + "Value": "corosync" + }, + { + "Id": "cib-bootstrap-options-cluster-name", + "Name": "cluster-name", + "Value": "hana_angi" + }, + { + "Id": "cib-bootstrap-options-stonith-timeout", + "Name": "stonith-timeout", + "Value": "150" + }, + { + "Id": "cib-bootstrap-options-stonith-enabled", + "Name": "stonith-enabled", + "Value": "true" + }, + { + "Id": "cib-bootstrap-options-stonith-action", + "Name": "stonith-action", + "Value": "reboot" + }, + { + "Id": "cib-bootstrap-options-priority-fencing-delay", + "Name": "priority-fencing-delay", + "Value": "30" + }, + { + "Id": "cib-bootstrap-options-last-lrm-refresh", + "Name": "last-lrm-refresh", + "Value": "1718007815" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lss_WDF", + "Name": "hana_hn9_site_lss_WDF", + "Value": "1" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srr_WDF", + "Name": "hana_hn9_site_srr_WDF", + "Value": "P" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lss_ROT", + "Name": "hana_hn9_site_lss_ROT", + "Value": "4" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srr_ROT", + "Name": "hana_hn9_site_srr_ROT", + "Value": "P" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srMode_ROT", + "Name": "hana_hn9_site_srMode_ROT", + "Value": "sync" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srMode_", + "Name": "hana_hn9_site_srMode_", + "Value": "sync" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srMode_WDF", + "Name": "hana_hn9_site_srMode_WDF", + "Value": "sync" + }, + { + "Id": "SAPHanaSR-hana_hn9_glob_topology", + "Name": "hana_hn9_glob_topology", + "Value": "ScaleUp" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_mns_WDF", + "Name": "hana_hn9_site_mns_WDF", + "Value": "vmangi01" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_mns_ROT", + "Name": "hana_hn9_site_mns_ROT", + "Value": "vmangi02" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lpt_ROT", + "Name": "hana_hn9_site_lpt_ROT", + "Value": "1718024814" + }, + { + "Id": "SAPHanaSR-hana_hn9_glob_sec", + "Name": "hana_hn9_glob_sec", + "Value": "-" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srHook_WDF", + "Name": "hana_hn9_site_srHook_WDF", + "Value": "PRIM" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lpt_WDF", + "Name": "hana_hn9_site_lpt_WDF", + "Value": "10" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_opMode_ROT", + "Name": "hana_hn9_site_opMode_ROT", + "Value": "logreplay" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_opMode_WDF", + "Name": "hana_hn9_site_opMode_WDF", + "Value": "logreplay" + }, + { + "Id": "SAPHanaSR-hana_hn9_glob_prim", + "Name": "hana_hn9_glob_prim", + "Value": "ROT" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srPoll_WDF", + "Name": "hana_hn9_site_srPoll_WDF", + "Value": "SFAIL" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srHook_ROT", + "Name": "hana_hn9_site_srHook_ROT", + "Value": "PRIM" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srPoll_ROT", + "Name": "hana_hn9_site_srPoll_ROT", + "Value": "PRIM" + } + ] + }, + "Nodes": [ + { + "Id": "1", + "InstanceAttributes": [ + { + "Id": "nodes-1-hana_hn9_vhost", + "Name": "hana_hn9_vhost", + "Value": "vmangi01" + }, + { + "Id": "nodes-1-hana_hn9_site", + "Name": "hana_hn9_site", + "Value": "WDF" + } + ], + "Uname": "vmangi01" + }, + { + "Id": "2", + "InstanceAttributes": [ + { + "Id": "nodes-2-hana_hn9_vhost", + "Name": "hana_hn9_vhost", + "Value": "vmangi02" + }, + { + "Id": "nodes-2-hana_hn9_site", + "Name": "hana_hn9_site", + "Value": "ROT" + } + ], + "Uname": "vmangi02" + } + ], + "Resources": { + "Clones": [ + { + "Id": "cln_SAPHanaTop_HN9_HDB09", + "MetaAttributes": [ + { + "Id": "cln_SAPHanaTop_HN9_HDB09-meta_attributes-clone-node-max", + "Name": "clone-node-max", + "Value": "1" + }, + { + "Id": "cln_SAPHanaTop_HN9_HDB09-meta_attributes-interleave", + "Name": "interleave", + "Value": "true" + } + ], + "Primitive": { + "Class": "ocf", + "Id": "rsc_SAPHanaTop_HN9_HDB09", + "InstanceAttributes": [ + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-instance_attributes-SID", + "Name": "SID", + "Value": "HN9" + }, + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-instance_attributes-InstanceNumber", + "Name": "InstanceNumber", + "Value": "09" + } + ], + "MetaAttributes": null, + "Operations": [ + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-start-0", + "Interval": "0", + "Name": "start", + "Role": "", + "Timeout": "600" + }, + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-stop-0", + "Interval": "0", + "Name": "stop", + "Role": "", + "Timeout": "300" + }, + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-monitor-50", + "Interval": "50", + "Name": "monitor", + "Role": "", + "Timeout": "600" + } + ], + "Provider": "suse", + "Type": "SAPHanaTopology" + } + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09", + "MetaAttributes": [ + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-clone-node-max", + "Name": "clone-node-max", + "Value": "1" + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-promotable", + "Name": "promotable", + "Value": "true" + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-interleave", + "Name": "interleave", + "Value": "true" + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-maintenance", + "Name": "maintenance", + "Value": "false" + } + ], + "Primitive": { + "Class": "ocf", + "Id": "rsc_SAPHanaCon_HN9_HDB09", + "InstanceAttributes": [ + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-SID", + "Name": "SID", + "Value": "HN9" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-InstanceNumber", + "Name": "InstanceNumber", + "Value": "09" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-PREFER_SITE_TAKEOVER", + "Name": "PREFER_SITE_TAKEOVER", + "Value": "true" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-DUPLICATE_PRIMARY_TIMEOUT", + "Name": "DUPLICATE_PRIMARY_TIMEOUT", + "Value": "7200" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-AUTOMATED_REGISTER", + "Name": "AUTOMATED_REGISTER", + "Value": "false" + } + ], + "MetaAttributes": [ + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-meta_attributes-priority", + "Name": "priority", + "Value": "100" + } + ], + "Operations": [ + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-start-0", + "Interval": "0", + "Name": "start", + "Role": "", + "Timeout": "3600" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-stop-0", + "Interval": "0", + "Name": "stop", + "Role": "", + "Timeout": "3600" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-promote-0", + "Interval": "0", + "Name": "promote", + "Role": "", + "Timeout": "900" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-demote-0", + "Interval": "0", + "Name": "demote", + "Role": "", + "Timeout": "320" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-monitor-60", + "Interval": "60", + "Name": "monitor", + "Role": "Promoted", + "Timeout": "700" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-monitor-61", + "Interval": "61", + "Name": "monitor", + "Role": "Unpromoted", + "Timeout": "700" + } + ], + "Provider": "suse", + "Type": "SAPHanaController" + } + } + ], + "Groups": null, + "Masters": null, + "Primitives": [ + { + "Class": "stonith", + "Id": "stonith-sbd", + "InstanceAttributes": [ + { + "Id": "stonith-sbd-instance_attributes-pcmk_delay_max", + "Name": "pcmk_delay_max", + "Value": "15" + } + ], + "MetaAttributes": null, + "Operations": null, + "Provider": "", + "Type": "external/sbd" + }, + { + "Class": "ocf", + "Id": "rsc_ip_HN9_HDB09", + "InstanceAttributes": [ + { + "Id": "rsc_ip_HN9_HDB09-instance_attributes-ip", + "Name": "ip", + "Value": "10.70.1.13" + } + ], + "MetaAttributes": null, + "Operations": [ + { + "Id": "rsc_ip_HN9_HDB09-monitor-10", + "Interval": "10", + "Name": "monitor", + "Role": "", + "Timeout": "20" + } + ], + "Provider": "heartbeat", + "Type": "IPaddr2" + } + ] + } + } + }, + "Crmmon": { + "Clones": [ + { + "Failed": false, + "FailureIgnored": false, + "Id": "cln_SAPHanaTop_HN9_HDB09", + "Managed": true, + "MultiState": false, + "Resources": [ + { + "Active": true, + "Agent": "ocf::suse:SAPHanaTopology", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaTop_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "1", + "Name": "vmangi01" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + }, + { + "Active": true, + "Agent": "ocf::suse:SAPHanaTopology", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaTop_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "2", + "Name": "vmangi02" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + } + ], + "Unique": false + }, + { + "Failed": false, + "FailureIgnored": false, + "Id": "mst_SAPHanacon_HN9_HDB09", + "Managed": true, + "MultiState": true, + "Resources": [ + { + "Active": false, + "Agent": "ocf::suse:SAPHanaController", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaCon_HN9_HDB09", + "Managed": true, + "Node": null, + "NodesRunningOn": 0, + "Orphaned": false, + "Role": "Stopped" + }, + { + "Active": true, + "Agent": "ocf::suse:SAPHanaController", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaCon_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "2", + "Name": "vmangi02" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Master" + } + ], + "Unique": false + } + ], + "Groups": null, + "NodeAttributes": { + "Nodes": [ + { + "Attributes": [ + { + "Name": "hana_hn9_clone_state", + "Value": "UNDEFINED" + }, + { + "Name": "hana_hn9_roles", + "Value": "master1::worker:" + }, + { + "Name": "hana_hn9_site", + "Value": "WDF" + }, + { + "Name": "hana_hn9_srah", + "Value": "-" + }, + { + "Name": "hana_hn9_version", + "Value": "2.00.073.00" + }, + { + "Name": "hana_hn9_vhost", + "Value": "vmangi01" + }, + { + "Name": "master-rsc_SAPHanaCon_HN9_HDB09", + "Value": "-9000" + } + ], + "Name": "vmangi01" + }, + { + "Attributes": [ + { + "Name": "hana_hn9_clone_state", + "Value": "PROMOTED" + }, + { + "Name": "hana_hn9_roles", + "Value": "master1:master:worker:master" + }, + { + "Name": "hana_hn9_site", + "Value": "ROT" + }, + { + "Name": "hana_hn9_sra", + "Value": "-" + }, + { + "Name": "hana_hn9_srah", + "Value": "-" + }, + { + "Name": "hana_hn9_version", + "Value": "2.00.073.00" + }, + { + "Name": "hana_hn9_vhost", + "Value": "vmangi02" + }, + { + "Name": "master-rsc_SAPHanaCon_HN9_HDB09", + "Value": "150" + } + ], + "Name": "vmangi02" + } + ] + }, + "NodeHistory": { + "Nodes": [ + { + "Name": "vmangi01", + "ResourceHistory": [ + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "stonith-sbd" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaTop_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_ip_HN9_HDB09" + }, + { + "FailCount": 1000000, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaCon_HN9_HDB09" + } + ] + }, + { + "Name": "vmangi02", + "ResourceHistory": [ + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaTop_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_ip_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaCon_HN9_HDB09" + } + ] + } + ] + }, + "Nodes": [ + { + "DC": false, + "ExpectedUp": true, + "Id": "1", + "Maintenance": false, + "Name": "vmangi01", + "Online": true, + "Pending": false, + "ResourcesRunning": 2, + "Shutdown": false, + "Standby": false, + "StandbyOnFail": false, + "Type": "member", + "Unclean": false + }, + { + "DC": true, + "ExpectedUp": true, + "Id": "2", + "Maintenance": false, + "Name": "vmangi02", + "Online": true, + "Pending": false, + "ResourcesRunning": 3, + "Shutdown": false, + "Standby": false, + "StandbyOnFail": false, + "Type": "member", + "Unclean": false + } + ], + "Resources": [ + { + "Active": true, + "Agent": "stonith:external/sbd", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "stonith-sbd", + "Managed": true, + "Node": { + "Cached": true, + "Id": "1", + "Name": "vmangi01" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + }, + { + "Active": true, + "Agent": "ocf::heartbeat:IPaddr2", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_ip_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "2", + "Name": "vmangi02" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + } + ], + "Summary": { + "ClusterOptions": { + "StonithEnabled": true + }, + "LastChange": { + "Time": "Mon Jun 10 13:06:54 2024" + }, + "Nodes": { + "Number": 2 + }, + "Resources": { + "Blocked": 0, + "Disabled": 0, + "Number": 6 + } + }, + "Version": "2.1.5+20221208.a3f44794f-150500.6.14.4" + }, + "DC": true, + "Id": "04dcf01eefda0e3b4cc897968150169e", + "Name": "hana_angi", + "Provider": "azure", + "SBD": { + "Config": { + "SBD_DELAY_START": "yes", + "SBD_DEVICE": "/dev/disk/by-id/scsi-3600140549ffde0461745510a8f5e399", + "SBD_MOVE_TO_ROOT_CGROUP": "auto", + "SBD_OPTS": "", + "SBD_PACEMAKER": "yes", + "SBD_STARTMODE": "clean", + "SBD_SYNC_RESOURCE_STARTUP": "yes", + "SBD_TIMEOUT_ACTION": "flush,reboot", + "SBD_WATCHDOG_DEV": "/dev/watchdog", + "SBD_WATCHDOG_TIMEOUT": "20" + }, + "Devices": [ + { + "Device": "/dev/disk/by-id/scsi-3600140549ffde0461745510a8f5e399", + "Dump": { + "Header": "2.1", + "SectorSize": 512, + "Slots": 255, + "TimeoutAllocate": 2, + "TimeoutLoop": 1, + "TimeoutMsgwait": 120, + "TimeoutWatchdog": 60, + "Uuid": "8c306a35-a58b-451e-a34b-9341076b2f49" + }, + "List": [ + { + "Id": 0, + "Name": "vmangi01", + "Status": "clear" + }, + { + "Id": 1, + "Name": "vmangi02", + "Status": "clear" + } + ], + "Status": "healthy" + } + ] + } + } +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_cloud_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_cloud_discovery.json new file mode 100644 index 0000000000..fdae9a0ec5 --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_cloud_discovery.json @@ -0,0 +1,93 @@ +{ + "agent_id": "4b67842f-ccf7-46a4-a344-9e918648b117", + "discovery_type": "cloud_discovery", + "payload": { + "Metadata": { + "compute": { + "azEnvironment": "AzurePublicCloud", + "isHostCompatibilityLayerVm": "true", + "licenseType": "SLES_BYOS", + "location": "westeurope", + "name": "vmangi02", + "offer": "sles-sap-15-sp5-byos", + "osProfile": { + "adminUsername": "cloudadmin", + "computerName": "vmangi02", + "disablePasswordAuthentication": "true" + }, + "osType": "Linux", + "plan": {}, + "platformFaultDomain": "0", + "platformUpdateDomain": "0", + "provider": "Microsoft.Compute", + "publisher": "suse", + "resourceGroupName": "hana-scale-up-angi", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hana-scale-up-angi/providers/Microsoft.Compute/virtualMachines/vmangi02", + "securityProfile": { + "secureBootEnabled": "true", + "virtualTpmEnabled": "true" + }, + "sku": "gen2", + "storageProfile": { + "imageReference": { + "offer": "sles-sap-15-sp5-byos", + "publisher": "suse", + "sku": "gen2", + "version": "latest" + }, + "osDisk": { + "caching": "ReadWrite", + "createOption": "FromImage", + "diffDiskSettings": { + "option": "" + }, + "diskSizeGB": "30", + "encryptionSettings": { + "enabled": "false" + }, + "image": { + "uri": "" + }, + "managedDisk": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hana-scale-up-angi/providers/Microsoft.Compute/disks/vmangi02_OsDisk_1", + "storageAccountType": "Premium_LRS" + }, + "name": "vmangi02_OsDisk_1", + "osType": "Linux", + "vhd": { + "uri": "" + }, + "writeAcceleratorEnabled": "false" + } + }, + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "tags": "", + "version": "2024.05.08", + "vmId": "d2239c71-086f-4375-ac20-a088a4411482", + "vmSize": "Standard_E4s_v3" + }, + "network": { + "interface": [ + { + "ipv4": { + "ipAddress": [ + { + "privateIpAddress": "10.70.1.5" + } + ], + "subnet": [ + { + "address": "10.70.1.0", + "prefix": "24" + } + ] + }, + "ipv6": {}, + "macAddress": "CEF9CDAE7CEB" + } + ] + } + }, + "Provider": "azure" + } +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_ha_cluster_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_ha_cluster_discovery.json new file mode 100644 index 0000000000..596444ee1a --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_ha_cluster_discovery.json @@ -0,0 +1,751 @@ +{ + "agent_id": "4b67842f-ccf7-46a4-a344-9e918648b117", + "discovery_type": "ha_cluster_discovery", + "payload": { + "Cib": { + "Configuration": { + "Constraints": { + "RscLocations": null + }, + "CrmConfig": { + "ClusterProperties": [ + { + "Id": "cib-bootstrap-options-have-watchdog", + "Name": "have-watchdog", + "Value": "true" + }, + { + "Id": "cib-bootstrap-options-dc-version", + "Name": "dc-version", + "Value": "2.1.5+20221208.a3f44794f-150500.6.14.4-2.1.5+20221208.a3f44794f" + }, + { + "Id": "cib-bootstrap-options-cluster-infrastructure", + "Name": "cluster-infrastructure", + "Value": "corosync" + }, + { + "Id": "cib-bootstrap-options-cluster-name", + "Name": "cluster-name", + "Value": "hana_angi" + }, + { + "Id": "cib-bootstrap-options-stonith-timeout", + "Name": "stonith-timeout", + "Value": "150" + }, + { + "Id": "cib-bootstrap-options-stonith-enabled", + "Name": "stonith-enabled", + "Value": "true" + }, + { + "Id": "cib-bootstrap-options-stonith-action", + "Name": "stonith-action", + "Value": "reboot" + }, + { + "Id": "cib-bootstrap-options-priority-fencing-delay", + "Name": "priority-fencing-delay", + "Value": "30" + }, + { + "Id": "cib-bootstrap-options-last-lrm-refresh", + "Name": "last-lrm-refresh", + "Value": "1718007815" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lss_WDF", + "Name": "hana_hn9_site_lss_WDF", + "Value": "4" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srr_WDF", + "Name": "hana_hn9_site_srr_WDF", + "Value": "P" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lss_ROT", + "Name": "hana_hn9_site_lss_ROT", + "Value": "4" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srr_ROT", + "Name": "hana_hn9_site_srr_ROT", + "Value": "S" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srMode_ROT", + "Name": "hana_hn9_site_srMode_ROT", + "Value": "sync" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srMode_", + "Name": "hana_hn9_site_srMode_", + "Value": "sync" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srMode_WDF", + "Name": "hana_hn9_site_srMode_WDF", + "Value": "sync" + }, + { + "Id": "SAPHanaSR-hana_hn9_glob_topology", + "Name": "hana_hn9_glob_topology", + "Value": "ScaleUp" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_mns_WDF", + "Name": "hana_hn9_site_mns_WDF", + "Value": "vmangi01" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_mns_ROT", + "Name": "hana_hn9_site_mns_ROT", + "Value": "vmangi02" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lpt_ROT", + "Name": "hana_hn9_site_lpt_ROT", + "Value": "30" + }, + { + "Id": "SAPHanaSR-hana_hn9_glob_sec", + "Name": "hana_hn9_glob_sec", + "Value": "ROT" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srHook_WDF", + "Name": "hana_hn9_site_srHook_WDF", + "Value": "PRIM" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lpt_WDF", + "Name": "hana_hn9_site_lpt_WDF", + "Value": "1718024637" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_opMode_ROT", + "Name": "hana_hn9_site_opMode_ROT", + "Value": "logreplay" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_opMode_WDF", + "Name": "hana_hn9_site_opMode_WDF", + "Value": "logreplay" + }, + { + "Id": "SAPHanaSR-hana_hn9_glob_prim", + "Name": "hana_hn9_glob_prim", + "Value": "WDF" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srPoll_WDF", + "Name": "hana_hn9_site_srPoll_WDF", + "Value": "PRIM" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srHook_ROT", + "Name": "hana_hn9_site_srHook_ROT", + "Value": "SOK" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srPoll_ROT", + "Name": "hana_hn9_site_srPoll_ROT", + "Value": "SOK" + } + ] + }, + "Nodes": [ + { + "Id": "1", + "InstanceAttributes": [ + { + "Id": "nodes-1-hana_hn9_vhost", + "Name": "hana_hn9_vhost", + "Value": "vmangi01" + }, + { + "Id": "nodes-1-hana_hn9_site", + "Name": "hana_hn9_site", + "Value": "WDF" + } + ], + "Uname": "vmangi01" + }, + { + "Id": "2", + "InstanceAttributes": [ + { + "Id": "nodes-2-hana_hn9_vhost", + "Name": "hana_hn9_vhost", + "Value": "vmangi02" + }, + { + "Id": "nodes-2-hana_hn9_site", + "Name": "hana_hn9_site", + "Value": "ROT" + } + ], + "Uname": "vmangi02" + } + ], + "Resources": { + "Clones": [ + { + "Id": "cln_SAPHanaTop_HN9_HDB09", + "MetaAttributes": [ + { + "Id": "cln_SAPHanaTop_HN9_HDB09-meta_attributes-clone-node-max", + "Name": "clone-node-max", + "Value": "1" + }, + { + "Id": "cln_SAPHanaTop_HN9_HDB09-meta_attributes-interleave", + "Name": "interleave", + "Value": "true" + } + ], + "Primitive": { + "Class": "ocf", + "Id": "rsc_SAPHanaTop_HN9_HDB09", + "InstanceAttributes": [ + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-instance_attributes-SID", + "Name": "SID", + "Value": "HN9" + }, + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-instance_attributes-InstanceNumber", + "Name": "InstanceNumber", + "Value": "09" + } + ], + "MetaAttributes": null, + "Operations": [ + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-start-0", + "Interval": "0", + "Name": "start", + "Role": "", + "Timeout": "600" + }, + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-stop-0", + "Interval": "0", + "Name": "stop", + "Role": "", + "Timeout": "300" + }, + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-monitor-50", + "Interval": "50", + "Name": "monitor", + "Role": "", + "Timeout": "600" + } + ], + "Provider": "suse", + "Type": "SAPHanaTopology" + } + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09", + "MetaAttributes": [ + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-clone-node-max", + "Name": "clone-node-max", + "Value": "1" + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-promotable", + "Name": "promotable", + "Value": "true" + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-interleave", + "Name": "interleave", + "Value": "true" + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-maintenance", + "Name": "maintenance", + "Value": "false" + } + ], + "Primitive": { + "Class": "ocf", + "Id": "rsc_SAPHanaCon_HN9_HDB09", + "InstanceAttributes": [ + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-SID", + "Name": "SID", + "Value": "HN9" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-InstanceNumber", + "Name": "InstanceNumber", + "Value": "09" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-PREFER_SITE_TAKEOVER", + "Name": "PREFER_SITE_TAKEOVER", + "Value": "true" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-DUPLICATE_PRIMARY_TIMEOUT", + "Name": "DUPLICATE_PRIMARY_TIMEOUT", + "Value": "7200" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-AUTOMATED_REGISTER", + "Name": "AUTOMATED_REGISTER", + "Value": "false" + } + ], + "MetaAttributes": [ + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-meta_attributes-priority", + "Name": "priority", + "Value": "100" + } + ], + "Operations": [ + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-start-0", + "Interval": "0", + "Name": "start", + "Role": "", + "Timeout": "3600" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-stop-0", + "Interval": "0", + "Name": "stop", + "Role": "", + "Timeout": "3600" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-promote-0", + "Interval": "0", + "Name": "promote", + "Role": "", + "Timeout": "900" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-demote-0", + "Interval": "0", + "Name": "demote", + "Role": "", + "Timeout": "320" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-monitor-60", + "Interval": "60", + "Name": "monitor", + "Role": "Promoted", + "Timeout": "700" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-monitor-61", + "Interval": "61", + "Name": "monitor", + "Role": "Unpromoted", + "Timeout": "700" + } + ], + "Provider": "suse", + "Type": "SAPHanaController" + } + } + ], + "Groups": null, + "Masters": null, + "Primitives": [ + { + "Class": "stonith", + "Id": "stonith-sbd", + "InstanceAttributes": [ + { + "Id": "stonith-sbd-instance_attributes-pcmk_delay_max", + "Name": "pcmk_delay_max", + "Value": "15" + } + ], + "MetaAttributes": null, + "Operations": null, + "Provider": "", + "Type": "external/sbd" + }, + { + "Class": "ocf", + "Id": "rsc_ip_HN9_HDB09", + "InstanceAttributes": [ + { + "Id": "rsc_ip_HN9_HDB09-instance_attributes-ip", + "Name": "ip", + "Value": "10.70.1.13" + } + ], + "MetaAttributes": null, + "Operations": [ + { + "Id": "rsc_ip_HN9_HDB09-monitor-10", + "Interval": "10", + "Name": "monitor", + "Role": "", + "Timeout": "20" + } + ], + "Provider": "heartbeat", + "Type": "IPaddr2" + } + ] + } + } + }, + "Crmmon": { + "Clones": [ + { + "Failed": false, + "FailureIgnored": false, + "Id": "cln_SAPHanaTop_HN9_HDB09", + "Managed": true, + "MultiState": false, + "Resources": [ + { + "Active": true, + "Agent": "ocf::suse:SAPHanaTopology", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaTop_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "1", + "Name": "vmangi01" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + }, + { + "Active": true, + "Agent": "ocf::suse:SAPHanaTopology", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaTop_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "2", + "Name": "vmangi02" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + } + ], + "Unique": false + }, + { + "Failed": false, + "FailureIgnored": false, + "Id": "mst_SAPHanacon_HN9_HDB09", + "Managed": true, + "MultiState": true, + "Resources": [ + { + "Active": true, + "Agent": "ocf::suse:SAPHanaController", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaCon_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "1", + "Name": "vmangi01" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Master" + }, + { + "Active": true, + "Agent": "ocf::suse:SAPHanaController", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaCon_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "2", + "Name": "vmangi02" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Slave" + } + ], + "Unique": false + } + ], + "Groups": null, + "NodeAttributes": { + "Nodes": [ + { + "Attributes": [ + { + "Name": "hana_hn9_clone_state", + "Value": "PROMOTED" + }, + { + "Name": "hana_hn9_roles", + "Value": "master1:master:worker:master" + }, + { + "Name": "hana_hn9_site", + "Value": "WDF" + }, + { + "Name": "hana_hn9_srah", + "Value": "-" + }, + { + "Name": "hana_hn9_version", + "Value": "2.00.073.00" + }, + { + "Name": "hana_hn9_vhost", + "Value": "vmangi01" + }, + { + "Name": "master-rsc_SAPHanaCon_HN9_HDB09", + "Value": "150" + } + ], + "Name": "vmangi01" + }, + { + "Attributes": [ + { + "Name": "hana_hn9_clone_state", + "Value": "DEMOTED" + }, + { + "Name": "hana_hn9_roles", + "Value": "master1:master:worker:master" + }, + { + "Name": "hana_hn9_site", + "Value": "ROT" + }, + { + "Name": "hana_hn9_srah", + "Value": "-" + }, + { + "Name": "hana_hn9_version", + "Value": "2.00.073.00" + }, + { + "Name": "hana_hn9_vhost", + "Value": "vmangi02" + }, + { + "Name": "master-rsc_SAPHanaCon_HN9_HDB09", + "Value": "100" + } + ], + "Name": "vmangi02" + } + ] + }, + "NodeHistory": { + "Nodes": [ + { + "Name": "vmangi01", + "ResourceHistory": [ + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "stonith-sbd" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaTop_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_ip_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaCon_HN9_HDB09" + } + ] + }, + { + "Name": "vmangi02", + "ResourceHistory": [ + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaTop_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_ip_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaCon_HN9_HDB09" + } + ] + } + ] + }, + "Nodes": [ + { + "DC": false, + "ExpectedUp": true, + "Id": "1", + "Maintenance": false, + "Name": "vmangi01", + "Online": true, + "Pending": false, + "ResourcesRunning": 4, + "Shutdown": false, + "Standby": false, + "StandbyOnFail": false, + "Type": "member", + "Unclean": false + }, + { + "DC": true, + "ExpectedUp": true, + "Id": "2", + "Maintenance": false, + "Name": "vmangi02", + "Online": true, + "Pending": false, + "ResourcesRunning": 2, + "Shutdown": false, + "Standby": false, + "StandbyOnFail": false, + "Type": "member", + "Unclean": false + } + ], + "Resources": [ + { + "Active": true, + "Agent": "stonith:external/sbd", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "stonith-sbd", + "Managed": true, + "Node": { + "Cached": true, + "Id": "1", + "Name": "vmangi01" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + }, + { + "Active": true, + "Agent": "ocf::heartbeat:IPaddr2", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_ip_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "1", + "Name": "vmangi01" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + } + ], + "Summary": { + "ClusterOptions": { + "StonithEnabled": true + }, + "LastChange": { + "Time": "Mon Jun 10 13:03:57 2024" + }, + "Nodes": { + "Number": 2 + }, + "Resources": { + "Blocked": 0, + "Disabled": 0, + "Number": 6 + } + }, + "Version": "2.1.5+20221208.a3f44794f-150500.6.14.4" + }, + "DC": true, + "Id": "04dcf01eefda0e3b4cc897968150169e", + "Name": "hana_angi", + "Provider": "azure", + "SBD": { + "Config": { + "SBD_DELAY_START": "yes", + "SBD_DEVICE": "/dev/disk/by-id/scsi-3600140549ffde0461745510a8f5e399", + "SBD_MOVE_TO_ROOT_CGROUP": "auto", + "SBD_OPTS": "", + "SBD_PACEMAKER": "yes", + "SBD_STARTMODE": "clean", + "SBD_SYNC_RESOURCE_STARTUP": "yes", + "SBD_TIMEOUT_ACTION": "flush,reboot", + "SBD_WATCHDOG_DEV": "/dev/watchdog", + "SBD_WATCHDOG_TIMEOUT": "20" + }, + "Devices": [ + { + "Device": "/dev/disk/by-id/scsi-3600140549ffde0461745510a8f5e399", + "Dump": { + "Header": "2.1", + "SectorSize": 512, + "Slots": 255, + "TimeoutAllocate": 2, + "TimeoutLoop": 1, + "TimeoutMsgwait": 120, + "TimeoutWatchdog": 60, + "Uuid": "8c306a35-a58b-451e-a34b-9341076b2f49" + }, + "List": [ + { + "Id": 0, + "Name": "vmangi01", + "Status": "clear" + }, + { + "Id": 1, + "Name": "vmangi02", + "Status": "clear" + } + ], + "Status": "healthy" + } + ] + } + } +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_host_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_host_discovery.json new file mode 100644 index 0000000000..6a54517b93 --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_host_discovery.json @@ -0,0 +1,20 @@ +{ + "agent_id": "4b67842f-ccf7-46a4-a344-9e918648b117", + "discovery_type": "host_discovery", + "payload": { + "agent_version": "2.3.0", + "cpu_count": 4, + "fully_qualified_domain_name": "vmangi02", + "hostname": "vmangi02", + "installation_source": "Suse", + "ip_addresses": [ + "127.0.0.1", + "::1", + "10.70.1.5", + "82ef:e867:1dcc:8e1a:50a6" + ], + "os_version": "15-SP5", + "socket_count": 1, + "total_memory_mb": 32043 + } +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_sap_system_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_sap_system_discovery.json new file mode 100644 index 0000000000..ce0c558eb5 --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_sap_system_discovery.json @@ -0,0 +1,236 @@ +{ + "agent_id": "4b67842f-ccf7-46a4-a344-9e918648b117", + "discovery_type": "sap_system_discovery", + "payload": [ + { + "DBAddress": "", + "Databases": [ + { + "Active": "yes", + "Container": "", + "Database": "HN9", + "Group": "", + "GroupId": "", + "Host": "vmangi02", + "SqlPort": "30915", + "User": "", + "UserId": "" + } + ], + "Id": "b5e2378f560d932d1b8ceafa86751169", + "Instances": [ + { + "HdbnsutilSRstate": { + "active_primary_site": "1", + "hasConsumers": "false", + "hintBasedRoutingSite": "", + "isConsumer": "true", + "isPrimarySuspended": "false", + "isSource": "false", + "isTakeoverActive": "false", + "isTimetravelEnabled": "false", + "mapping/vmangi02": [ + "ROT/vmangi02", + "WDF/vmangi01" + ], + "mode": "sync", + "online": "true", + "operation_mode": "logreplay", + "primary_masters": "vmangi01", + "replayMode": "auto", + "siteMapping/WDF": "ROT", + "siteOperationMode/ROT": "logreplay", + "siteOperationMode/WDF": "primary", + "siteReplicationMode/ROT": "sync", + "siteReplicationMode/WDF": "primary", + "siteTier/ROT": "2", + "siteTier/WDF": "1", + "site_id": "2", + "site_name": "ROT" + }, + "Host": "vmangi02", + "HostConfiguration": { + "failoverActualGroup": "default", + "failoverConfigGroup": "default", + "failoverStatus": "", + "host": "vmangi02", + "hostActive": "yes", + "hostActualRoles": "worker", + "hostConfigRoles": "worker", + "hostStatus": "ok", + "indexServerActualRole": "master", + "indexServerConfigRole": "worker", + "nameServerActualRole": "master", + "nameServerConfigRole": "master 1", + "removeStatus": "", + "storageActualPartition": "1", + "storageConfigPartition": "1", + "storagePartition": "1", + "workerActualGroups": "default", + "workerConfigGroups": "default" + }, + "Name": "HDB09", + "SAPControl": { + "Instances": [ + { + "dispstatus": "SAPControl-GREEN", + "features": "HDB|HDB_WORKER", + "hostname": "vmangi02", + "httpPort": 50913, + "httpsPort": 50914, + "instanceNr": 9, + "startPriority": "0.3" + } + ], + "Processes": [ + { + "description": "HDB Daemon", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:34:32", + "name": "hdbdaemon", + "pid": 15526, + "starttime": "2024 06 10 06:30:04", + "textstatus": "Running" + }, + { + "description": "HDB Compileserver", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:33:55", + "name": "hdbcompileserver", + "pid": 15686, + "starttime": "2024 06 10 06:30:41", + "textstatus": "Running" + }, + { + "description": "HDB Indexserver-HN9", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:33:55", + "name": "hdbindexserver", + "pid": 15732, + "starttime": "2024 06 10 06:30:41", + "textstatus": "Running" + }, + { + "description": "HDB Nameserver", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:34:32", + "name": "hdbnameserver", + "pid": 15551, + "starttime": "2024 06 10 06:30:04", + "textstatus": "Running" + }, + { + "description": "HDB Preprocessor", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:33:55", + "name": "hdbpreprocessor", + "pid": 15697, + "starttime": "2024 06 10 06:30:41", + "textstatus": "Running" + }, + { + "description": "HDB Web Dispatcher", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:33:15", + "name": "hdbwebdispatcher", + "pid": 16004, + "starttime": "2024 06 10 06:31:21", + "textstatus": "Running" + }, + { + "description": "HDB XSEngine-HN9", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:33:55", + "name": "hdbxsengine", + "pid": 15735, + "starttime": "2024 06 10 06:30:41", + "textstatus": "Running" + } + ], + "Properties": [ + { + "property": "Process List", + "propertytype": "NodeWebmethod", + "value": "GetProcessList" + }, + { + "property": "Access Points", + "propertytype": "NodeWebmethod", + "value": "GetAccessPointList" + }, + { + "property": "Parameter Documentation", + "propertytype": "NodeURL", + "value": "http://vmangi02:50913/sapparamEN.html" + }, + { + "property": "Protected Webmethods", + "propertytype": "Attribute", + "value": "ABAPAcknowledgeAlerts,ABAPCheckRFCDestinations,ABAPGetComponentList,ABAPGetSystemWPTable,ABAPGetWPTable,ABAPReadRawSyslog,ABAPReadSyslog,ABAPSetServerInactive,AnalyseLogFiles,Bootstrap,CheckParameter,CheckPSE,CheckUpdateSystem,ConfigureLogFileList,CreatePSECredential,CreateSnapshot,DeletePSE,DeleteSnapshots,EnqGetLockTable,EnqGetStatistic,EnqRemoveLocks,EnqRemoveUserLocks,GetAccessPointList,GetAlerts,GetAlertTree,GetCallstack,GetEnvironment,GetLogFileList,GetProcessParameter,GetQueueStatistic,GetStartProfile,GetSystemUpdateList,GetTraceFile,GetVersionInfo,GWCancelConnections,GWDeleteClients,GWDeleteConnections,GWGetConnectionList,GWGetClientList,HACheckConfig,HACheckFailoverConfig,HACheckMaintenanceMode,HAFailoverToNode,HAGetFailoverConfig,HASetMaintenanceMode,ICMGetCacheEntries,ICMGetConnectionList,ICMGetProxyConnectionList,ICMGetThreadList,InstanceStart,InstanceStop,J2EEControlCluster,J2EEControlComponents,J2EEControlProcess,J2EEDisableDbgSession,J2EEEnableDbgSession,J2EEGetApplicationAliasList,J2EEGetCacheStatistic,J2EEGetCacheStatistic2,J2EEGetClusterMsgList,J2EEGetComponentList,J2EEGetEJBSessionList,J2EEGetProcessList,J2EEGetProcessList2,J2EEGetRemoteObjectList,J2EEGetSessionList,J2EEGetSharedTableInfo,J2EEGetThreadCallStack,J2EEGetThreadList,J2EEGetThreadList2,J2EEGetThreadTaskStack,J2EEGetVMGCHistory,J2EEGetVMGCHistory2,J2EEGetVMHeapInfo,J2EEGetWebSessionList,J2EEGetWebSessionList2,ListConfigFiles,ListDeveloperTraces,ListLogFiles,ListSnapshots,OSExecute,ParameterValue,ReadConfigFile,ReadDeveloperTrace,ReadLogFile,ReadSnapshot,RestartInstance,RestartService,RestartSystem,SendSignal,SetProcessParameter,SetProcessParameter2,ShmDetach,Shutdown,Start,StartBypassHA,StartSystem,Stop,StopBypassHA,StopService,StopSystem,StorePSE,UpdateInstancePSE,UpdateSCSInstance,UpdateSystem,UpdateSystemPKI,WebDispGetServerList,WebDispGetGroupList,WebDispGetVirtHostList,WebDispGetUrlPrefixList,GetAgentConfig,GetListOfMaByCusGrp,GetMcInLocalMs,GetMtesByRequestTable,GetMtListByMtclass,InfoGetTree,MscCustomizeWrite,MscDeleteLines,MscReadCache,MsGetLocalMsInfo,MsGetMteclsInLocalMs,MtChangeStatus,MtCustomizeWrite,MtDbsetToWpsetByTid,MtDestroyMarkNTry,MteGetByToolRunstatus,MtGetAllToCust,MtGetAllToolsToSet,MtGetMteinfo,MtGetTidByName,MtRead,MtReset,PerfCustomizeWrite,PerfRead,PerfReadSmoothData,ReadDirectory,ReadFile,ReadProfileParameters,ReferenceRead,Register,RequestLogonFile,SnglmgsCustomizeWrite,SystemObjectSetValue,TextAttrRead,ToolGetEffective,ToolSet,ToolSetRuntimeStatus,TriggerDataCollection,Unregister,UtilAlChangeStatus,UtilMtGetAidByTid,UtilMtGetTreeLocal,UtilMtReadAll,UtilReadRawalertByAid,UtilSnglmsgReadRawdata" + }, + { + "property": "DBServices", + "propertytype": "Attribute", + "value": "YES" + }, + { + "property": "HANA Roles", + "propertytype": "Attribute", + "value": "worker" + }, + { + "property": "StartPriority", + "propertytype": "Attribute", + "value": "0.3" + }, + { + "property": "SAPSYSTEM", + "propertytype": "Attribute", + "value": "09" + }, + { + "property": "SAPSYSTEMNAME", + "propertytype": "Attribute", + "value": "HN9" + }, + { + "property": "SAPLOCALHOST", + "propertytype": "Attribute", + "value": "vmangi02" + }, + { + "property": "INSTANCE_NAME", + "propertytype": "Attribute", + "value": "HDB09" + }, + { + "property": "Webmethods", + "propertytype": "Attribute", + "value": "Start,InstanceStart,StartBypassHA,Bootstrap,Stop,InstanceStop,StopBypassHA,Shutdown,ParameterValue,GetProcessList,GetStartProfile,GetTraceFile,GetAlertTree,GetAlerts,RestartService,StopService,GetEnvironment,ListDeveloperTraces,ReadDeveloperTrace,RestartInstance,SendSignal,GetVersionInfo,GetQueueStatistic,GetInstanceProperties,OSExecute,ReadLogFile,AnalyseLogFiles,ListLogFiles,GetAccessPointList,GetSystemInstanceList,GetSystemUpdateList,StartSystem,StopSystem,RestartSystem,UpdateSystem,UpdateSCSInstance,CheckUpdateSystem,AccessCheck,GetProcessParameter,SetProcessParameter,SetProcessParameter2,CheckParameter,ShmDetach,GetNetworkId,GetSecNetworkId,RequestLogonFile,CreateSnapshot,ReadSnapshot,ListSnapshots,DeleteSnapshots,GetCallstack,ABAPReadSyslog,ABAPReadRawSyslog,ABAPGetWPTable,ABAPAcknowledgeAlerts,ABAPGetComponentList,ABAPCheckRFCDestinations,ABAPGetSystemWPTable,ABAPSetServerInactive,J2EEGetProcessList,J2EEGetProcessList2,J2EEControlProcess,J2EEGetThreadList,J2EEGetThreadList2,J2EEGetThreadCallStack,J2EEGetThreadTaskStack,J2EEGetSessionList,J2EEGetWebSessionList,J2EEGetWebSessionList2,J2EEGetCacheStatistic,J2EEGetCacheStatistic2,J2EEGetApplicationAliasList,J2EEGetVMGCHistory,J2EEGetVMGCHistory2,J2EEGetVMHeapInfo,J2EEGetEJBSessionList,J2EEGetRemoteObjectList,J2EEGetClusterMsgList,J2EEGetSharedTableInfo,J2EEGetComponentList,J2EEControlComponents,ICMGetThreadList,ICMGetConnectionList,ICMGetCacheEntries,ICMGetProxyConnectionList,WebDispGetServerList,WebDispGetGroupList,WebDispGetVirtHostList,WebDispGetUrlPrefixList,EnqGetLockTable,EnqRemoveLocks,EnqRemoveUserLocks,EnqGetStatistic,GWCancelConnections,GWDeleteClients,GWDeleteConnections,GWGetConnectionList,GWGetClientList,UpdateSystemPKI,UpdateInstancePSE,StorePSE,DeletePSE,CheckPSE,HACheckConfig,HACheckFailoverConfig,HAGetFailoverConfig,HAFailoverToNode,HASetMaintenanceMode,HACheckMaintenanceMode,ListConfigFiles,ReadConfigFile" + } + ] + }, + "SystemReplication": { + "local_site_id": "2", + "site/2/PRIMARY_MASTERS": "vmangi01", + "site/2/REPLICATION_MODE": "SYNC", + "site/2/SITE_NAME": "ROT", + "site/2/SOURCE_SITE_ID": "1" + }, + "Type": 1 + } + ], + "Profile": { + "HDB_LINKED_BINARIES": "yes", + "HDB_SHARED_BINARIES": "yes", + "SAPGLOBALHOST": "vmangi02", + "SAPSYSTEMNAME": "HN9", + "hdbConfigType": "DEFAULT", + "ssl/ciphersuites": "545:PFS:HIGH::EC_X25519:EC_P256:EC_HIGH", + "ssl/client_ciphersuites": "150:PFS:HIGH::EC_X25519:EC_P256:EC_HIGH" + }, + "SID": "HN9", + "Type": 1 + } + ] +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_saptune_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_saptune_discovery.json new file mode 100644 index 0000000000..910670e1ed --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_saptune_discovery.json @@ -0,0 +1,145 @@ +{ + "agent_id": "4b67842f-ccf7-46a4-a344-9e918648b117", + "discovery_type": "saptune_discovery", + "payload": { + "package_version": "3.1.2", + "saptune_installed": true, + "status": { + "$schema": "file:///usr/share/saptune/schemas/1.0/saptune_status.schema.json", + "argv": "saptune --format json status", + "command": "status", + "exit code": 0, + "messages": [ + { + "message": "sysctl.go:75: Parameter 'fs.aio-max-nr' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(18446744073709551615).\n", + "priority": "WARNING" + }, + { + "message": "ini.go:310: block device related section settings detected: Traversing all block devices can take a considerable amount of time.\n", + "priority": "NOTICE" + }, + { + "message": "sysctl.go:75: Parameter 'vm.dirty_bytes' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(629145600).\n", + "priority": "WARNING" + }, + { + "message": "sysctl.go:75: Parameter 'vm.dirty_background_bytes' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(314572800).\n", + "priority": "WARNING" + }, + { + "message": "sysctl.go:75: Parameter 'net.core.somaxconn' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(4096).\n", + "priority": "WARNING" + }, + { + "message": "sysctl.go:75: Parameter 'net.ipv4.tcp_max_syn_backlog' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(8192).\n", + "priority": "WARNING" + }, + { + "message": "sysctl.go:75: Parameter 'net.ipv4.tcp_slow_start_after_idle' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(0).\n", + "priority": "WARNING" + }, + { + "message": "sysctl.go:75: Parameter 'net.ipv4.tcp_window_scaling' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(1).\n", + "priority": "WARNING" + } + ], + "pid": 1892, + "publish time": "2024-06-10 12:57:13.784", + "result": { + "Notes applied": [ + "941735", + "1771258", + "1868829", + "1980196", + "2578899", + "2684254", + "2382421", + "2534844", + "2993054", + "1656250" + ], + "Notes applied by Solution": [ + { + "Note list": [ + "941735", + "1771258", + "1868829", + "1980196", + "2578899", + "2684254", + "2382421", + "2534844", + "2993054", + "1656250" + ], + "Solution ID": "HANA" + } + ], + "Notes enabled": [ + "941735", + "1771258", + "1868829", + "1980196", + "2578899", + "2684254", + "2382421", + "2534844", + "2993054", + "1656250" + ], + "Notes enabled additionally": [], + "Notes enabled by Solution": [ + { + "Note list": [ + "941735", + "1771258", + "1868829", + "1980196", + "2578899", + "2684254", + "2382421", + "2534844", + "2993054", + "1656250" + ], + "Solution ID": "HANA" + } + ], + "Solution applied": [ + { + "Solution ID": "HANA", + "applied partially": false + } + ], + "Solution enabled": [ + "HANA" + ], + "configured version": "3", + "package version": "3.1.2", + "remember message": "\n\n", + "services": { + "sapconf": [ + "disabled", + "inactive" + ], + "saptune": [ + "enabled", + "active" + ], + "tuned": [ + "disabled", + "inactive" + ] + }, + "staging": { + "Notes staged": [], + "Solutions staged": [], + "staging enabled": false + }, + "systemd system state": "running", + "tuning state": "compliant", + "virtualization": "microsoft" + } + } + } +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_subscription_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_subscription_discovery.json new file mode 100644 index 0000000000..0855cfc2a0 --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/4b67842f-ccf7-46a4-a344-9e918648b117_subscription_discovery.json @@ -0,0 +1,74 @@ +{ + "agent_id": "4b67842f-ccf7-46a4-a344-9e918648b117", + "discovery_type": "subscription_discovery", + "payload": [ + { + "arch": "x86_64", + "expires_at": "2025-03-01 07:00:20 UTC", + "identifier": "SLES_SAP", + "starts_at": "2021-10-18 06:23:46 UTC", + "status": "Registered", + "subscription_status": "ACTIVE", + "type": "internal", + "version": "15.5" + }, + { + "arch": "x86_64", + "expires_at": "2025-03-01 07:00:20 UTC", + "identifier": "sle-ha", + "starts_at": "2021-10-18 06:23:46 UTC", + "status": "Registered", + "subscription_status": "ACTIVE", + "type": "internal", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-basesystem", + "status": "Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-containers", + "status": "Not Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-desktop-applications", + "status": "Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-development-tools", + "status": "Not Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-public-cloud", + "status": "Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-sap-applications", + "status": "Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-server-applications", + "status": "Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-python3", + "status": "Registered", + "version": "15.5" + } + ] +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_cloud_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_cloud_discovery.json new file mode 100644 index 0000000000..887617ee3d --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_cloud_discovery.json @@ -0,0 +1,93 @@ +{ + "agent_id": "851a4dd3-9693-44c3-a40b-b32d22872e74", + "discovery_type": "cloud_discovery", + "payload": { + "Metadata": { + "compute": { + "azEnvironment": "AzurePublicCloud", + "isHostCompatibilityLayerVm": "true", + "licenseType": "SLES_BYOS", + "location": "westeurope", + "name": "vmangi01", + "offer": "sles-sap-15-sp5-byos", + "osProfile": { + "adminUsername": "cloudadmin", + "computerName": "vmangi01", + "disablePasswordAuthentication": "true" + }, + "osType": "Linux", + "plan": {}, + "platformFaultDomain": "0", + "platformUpdateDomain": "0", + "provider": "Microsoft.Compute", + "publisher": "suse", + "resourceGroupName": "hana-scale-up-angi", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hana-scale-up-angi/providers/Microsoft.Compute/virtualMachines/vmangi01", + "securityProfile": { + "secureBootEnabled": "true", + "virtualTpmEnabled": "true" + }, + "sku": "gen2", + "storageProfile": { + "imageReference": { + "offer": "sles-sap-15-sp5-byos", + "publisher": "suse", + "sku": "gen2", + "version": "latest" + }, + "osDisk": { + "caching": "ReadWrite", + "createOption": "FromImage", + "diffDiskSettings": { + "option": "" + }, + "diskSizeGB": "30", + "encryptionSettings": { + "enabled": "false" + }, + "image": { + "uri": "" + }, + "managedDisk": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hana-scale-up-angi/providers/Microsoft.Compute/disks/vmangi01_OsDisk_1", + "storageAccountType": "Premium_LRS" + }, + "name": "vmangi01_OsDisk_1", + "osType": "Linux", + "vhd": { + "uri": "" + }, + "writeAcceleratorEnabled": "false" + } + }, + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "tags": "", + "version": "2024.05.08", + "vmId": "dba1605e-ed48-47fb-b392-f53e264877a0", + "vmSize": "Standard_E4s_v3" + }, + "network": { + "interface": [ + { + "ipv4": { + "ipAddress": [ + { + "privateIpAddress": "10.70.1.4" + } + ], + "subnet": [ + { + "address": "10.70.1.0", + "prefix": "24" + } + ] + }, + "ipv6": {}, + "macAddress": "0CF33B70FE37" + } + ] + } + }, + "Provider": "azure" + } +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_ha_cluster_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_ha_cluster_discovery.json new file mode 100644 index 0000000000..a43dfc55cb --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_ha_cluster_discovery.json @@ -0,0 +1,751 @@ +{ + "agent_id": "851a4dd3-9693-44c3-a40b-b32d22872e74", + "discovery_type": "ha_cluster_discovery", + "payload": { + "Cib": { + "Configuration": { + "Constraints": { + "RscLocations": null + }, + "CrmConfig": { + "ClusterProperties": [ + { + "Id": "cib-bootstrap-options-have-watchdog", + "Name": "have-watchdog", + "Value": "true" + }, + { + "Id": "cib-bootstrap-options-dc-version", + "Name": "dc-version", + "Value": "2.1.5+20221208.a3f44794f-150500.6.14.4-2.1.5+20221208.a3f44794f" + }, + { + "Id": "cib-bootstrap-options-cluster-infrastructure", + "Name": "cluster-infrastructure", + "Value": "corosync" + }, + { + "Id": "cib-bootstrap-options-cluster-name", + "Name": "cluster-name", + "Value": "hana_angi" + }, + { + "Id": "cib-bootstrap-options-stonith-timeout", + "Name": "stonith-timeout", + "Value": "150" + }, + { + "Id": "cib-bootstrap-options-stonith-enabled", + "Name": "stonith-enabled", + "Value": "true" + }, + { + "Id": "cib-bootstrap-options-stonith-action", + "Name": "stonith-action", + "Value": "reboot" + }, + { + "Id": "cib-bootstrap-options-priority-fencing-delay", + "Name": "priority-fencing-delay", + "Value": "30" + }, + { + "Id": "cib-bootstrap-options-last-lrm-refresh", + "Name": "last-lrm-refresh", + "Value": "1718007815" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lss_WDF", + "Name": "hana_hn9_site_lss_WDF", + "Value": "4" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srr_WDF", + "Name": "hana_hn9_site_srr_WDF", + "Value": "P" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lss_ROT", + "Name": "hana_hn9_site_lss_ROT", + "Value": "4" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srr_ROT", + "Name": "hana_hn9_site_srr_ROT", + "Value": "S" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srMode_ROT", + "Name": "hana_hn9_site_srMode_ROT", + "Value": "sync" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srMode_", + "Name": "hana_hn9_site_srMode_", + "Value": "sync" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srMode_WDF", + "Name": "hana_hn9_site_srMode_WDF", + "Value": "sync" + }, + { + "Id": "SAPHanaSR-hana_hn9_glob_topology", + "Name": "hana_hn9_glob_topology", + "Value": "ScaleUp" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_mns_WDF", + "Name": "hana_hn9_site_mns_WDF", + "Value": "vmangi01" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_mns_ROT", + "Name": "hana_hn9_site_mns_ROT", + "Value": "vmangi02" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lpt_ROT", + "Name": "hana_hn9_site_lpt_ROT", + "Value": "30" + }, + { + "Id": "SAPHanaSR-hana_hn9_glob_sec", + "Name": "hana_hn9_glob_sec", + "Value": "ROT" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srHook_WDF", + "Name": "hana_hn9_site_srHook_WDF", + "Value": "PRIM" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_lpt_WDF", + "Name": "hana_hn9_site_lpt_WDF", + "Value": "1718024637" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_opMode_ROT", + "Name": "hana_hn9_site_opMode_ROT", + "Value": "logreplay" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_opMode_WDF", + "Name": "hana_hn9_site_opMode_WDF", + "Value": "logreplay" + }, + { + "Id": "SAPHanaSR-hana_hn9_glob_prim", + "Name": "hana_hn9_glob_prim", + "Value": "WDF" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srPoll_WDF", + "Name": "hana_hn9_site_srPoll_WDF", + "Value": "PRIM" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srHook_ROT", + "Name": "hana_hn9_site_srHook_ROT", + "Value": "SOK" + }, + { + "Id": "SAPHanaSR-hana_hn9_site_srPoll_ROT", + "Name": "hana_hn9_site_srPoll_ROT", + "Value": "SOK" + } + ] + }, + "Nodes": [ + { + "Id": "1", + "InstanceAttributes": [ + { + "Id": "nodes-1-hana_hn9_vhost", + "Name": "hana_hn9_vhost", + "Value": "vmangi01" + }, + { + "Id": "nodes-1-hana_hn9_site", + "Name": "hana_hn9_site", + "Value": "WDF" + } + ], + "Uname": "vmangi01" + }, + { + "Id": "2", + "InstanceAttributes": [ + { + "Id": "nodes-2-hana_hn9_vhost", + "Name": "hana_hn9_vhost", + "Value": "vmangi02" + }, + { + "Id": "nodes-2-hana_hn9_site", + "Name": "hana_hn9_site", + "Value": "ROT" + } + ], + "Uname": "vmangi02" + } + ], + "Resources": { + "Clones": [ + { + "Id": "cln_SAPHanaTop_HN9_HDB09", + "MetaAttributes": [ + { + "Id": "cln_SAPHanaTop_HN9_HDB09-meta_attributes-clone-node-max", + "Name": "clone-node-max", + "Value": "1" + }, + { + "Id": "cln_SAPHanaTop_HN9_HDB09-meta_attributes-interleave", + "Name": "interleave", + "Value": "true" + } + ], + "Primitive": { + "Class": "ocf", + "Id": "rsc_SAPHanaTop_HN9_HDB09", + "InstanceAttributes": [ + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-instance_attributes-SID", + "Name": "SID", + "Value": "HN9" + }, + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-instance_attributes-InstanceNumber", + "Name": "InstanceNumber", + "Value": "09" + } + ], + "MetaAttributes": null, + "Operations": [ + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-start-0", + "Interval": "0", + "Name": "start", + "Role": "", + "Timeout": "600" + }, + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-stop-0", + "Interval": "0", + "Name": "stop", + "Role": "", + "Timeout": "300" + }, + { + "Id": "rsc_SAPHanaTop_HN9_HDB09-monitor-50", + "Interval": "50", + "Name": "monitor", + "Role": "", + "Timeout": "600" + } + ], + "Provider": "suse", + "Type": "SAPHanaTopology" + } + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09", + "MetaAttributes": [ + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-clone-node-max", + "Name": "clone-node-max", + "Value": "1" + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-promotable", + "Name": "promotable", + "Value": "true" + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-interleave", + "Name": "interleave", + "Value": "true" + }, + { + "Id": "mst_SAPHanacon_HN9_HDB09-meta_attributes-maintenance", + "Name": "maintenance", + "Value": "false" + } + ], + "Primitive": { + "Class": "ocf", + "Id": "rsc_SAPHanaCon_HN9_HDB09", + "InstanceAttributes": [ + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-SID", + "Name": "SID", + "Value": "HN9" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-InstanceNumber", + "Name": "InstanceNumber", + "Value": "09" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-PREFER_SITE_TAKEOVER", + "Name": "PREFER_SITE_TAKEOVER", + "Value": "true" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-DUPLICATE_PRIMARY_TIMEOUT", + "Name": "DUPLICATE_PRIMARY_TIMEOUT", + "Value": "7200" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-instance_attributes-AUTOMATED_REGISTER", + "Name": "AUTOMATED_REGISTER", + "Value": "false" + } + ], + "MetaAttributes": [ + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-meta_attributes-priority", + "Name": "priority", + "Value": "100" + } + ], + "Operations": [ + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-start-0", + "Interval": "0", + "Name": "start", + "Role": "", + "Timeout": "3600" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-stop-0", + "Interval": "0", + "Name": "stop", + "Role": "", + "Timeout": "3600" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-promote-0", + "Interval": "0", + "Name": "promote", + "Role": "", + "Timeout": "900" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-demote-0", + "Interval": "0", + "Name": "demote", + "Role": "", + "Timeout": "320" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-monitor-60", + "Interval": "60", + "Name": "monitor", + "Role": "Promoted", + "Timeout": "700" + }, + { + "Id": "rsc_SAPHanaCon_HN9_HDB09-monitor-61", + "Interval": "61", + "Name": "monitor", + "Role": "Unpromoted", + "Timeout": "700" + } + ], + "Provider": "suse", + "Type": "SAPHanaController" + } + } + ], + "Groups": null, + "Masters": null, + "Primitives": [ + { + "Class": "stonith", + "Id": "stonith-sbd", + "InstanceAttributes": [ + { + "Id": "stonith-sbd-instance_attributes-pcmk_delay_max", + "Name": "pcmk_delay_max", + "Value": "15" + } + ], + "MetaAttributes": null, + "Operations": null, + "Provider": "", + "Type": "external/sbd" + }, + { + "Class": "ocf", + "Id": "rsc_ip_HN9_HDB09", + "InstanceAttributes": [ + { + "Id": "rsc_ip_HN9_HDB09-instance_attributes-ip", + "Name": "ip", + "Value": "10.70.1.13" + } + ], + "MetaAttributes": null, + "Operations": [ + { + "Id": "rsc_ip_HN9_HDB09-monitor-10", + "Interval": "10", + "Name": "monitor", + "Role": "", + "Timeout": "20" + } + ], + "Provider": "heartbeat", + "Type": "IPaddr2" + } + ] + } + } + }, + "Crmmon": { + "Clones": [ + { + "Failed": false, + "FailureIgnored": false, + "Id": "cln_SAPHanaTop_HN9_HDB09", + "Managed": true, + "MultiState": false, + "Resources": [ + { + "Active": true, + "Agent": "ocf::suse:SAPHanaTopology", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaTop_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "1", + "Name": "vmangi01" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + }, + { + "Active": true, + "Agent": "ocf::suse:SAPHanaTopology", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaTop_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "2", + "Name": "vmangi02" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + } + ], + "Unique": false + }, + { + "Failed": false, + "FailureIgnored": false, + "Id": "mst_SAPHanacon_HN9_HDB09", + "Managed": true, + "MultiState": true, + "Resources": [ + { + "Active": true, + "Agent": "ocf::suse:SAPHanaController", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaCon_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "1", + "Name": "vmangi01" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Master" + }, + { + "Active": true, + "Agent": "ocf::suse:SAPHanaController", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_SAPHanaCon_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "2", + "Name": "vmangi02" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Slave" + } + ], + "Unique": false + } + ], + "Groups": null, + "NodeAttributes": { + "Nodes": [ + { + "Attributes": [ + { + "Name": "hana_hn9_clone_state", + "Value": "PROMOTED" + }, + { + "Name": "hana_hn9_roles", + "Value": "master1:master:worker:master" + }, + { + "Name": "hana_hn9_site", + "Value": "WDF" + }, + { + "Name": "hana_hn9_srah", + "Value": "-" + }, + { + "Name": "hana_hn9_version", + "Value": "2.00.073.00" + }, + { + "Name": "hana_hn9_vhost", + "Value": "vmangi01" + }, + { + "Name": "master-rsc_SAPHanaCon_HN9_HDB09", + "Value": "150" + } + ], + "Name": "vmangi01" + }, + { + "Attributes": [ + { + "Name": "hana_hn9_clone_state", + "Value": "DEMOTED" + }, + { + "Name": "hana_hn9_roles", + "Value": "master1:master:worker:master" + }, + { + "Name": "hana_hn9_site", + "Value": "ROT" + }, + { + "Name": "hana_hn9_srah", + "Value": "-" + }, + { + "Name": "hana_hn9_version", + "Value": "2.00.073.00" + }, + { + "Name": "hana_hn9_vhost", + "Value": "vmangi02" + }, + { + "Name": "master-rsc_SAPHanaCon_HN9_HDB09", + "Value": "100" + } + ], + "Name": "vmangi02" + } + ] + }, + "NodeHistory": { + "Nodes": [ + { + "Name": "vmangi01", + "ResourceHistory": [ + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "stonith-sbd" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaTop_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_ip_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaCon_HN9_HDB09" + } + ] + }, + { + "Name": "vmangi02", + "ResourceHistory": [ + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaTop_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_ip_HN9_HDB09" + }, + { + "FailCount": 0, + "MigrationThreshold": 5000, + "Name": "rsc_SAPHanaCon_HN9_HDB09" + } + ] + } + ] + }, + "Nodes": [ + { + "DC": false, + "ExpectedUp": true, + "Id": "1", + "Maintenance": false, + "Name": "vmangi01", + "Online": true, + "Pending": false, + "ResourcesRunning": 4, + "Shutdown": false, + "Standby": false, + "StandbyOnFail": false, + "Type": "member", + "Unclean": false + }, + { + "DC": true, + "ExpectedUp": true, + "Id": "2", + "Maintenance": false, + "Name": "vmangi02", + "Online": true, + "Pending": false, + "ResourcesRunning": 2, + "Shutdown": false, + "Standby": false, + "StandbyOnFail": false, + "Type": "member", + "Unclean": false + } + ], + "Resources": [ + { + "Active": true, + "Agent": "stonith:external/sbd", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "stonith-sbd", + "Managed": true, + "Node": { + "Cached": true, + "Id": "1", + "Name": "vmangi01" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + }, + { + "Active": true, + "Agent": "ocf::heartbeat:IPaddr2", + "Blocked": false, + "Failed": false, + "FailureIgnored": false, + "Id": "rsc_ip_HN9_HDB09", + "Managed": true, + "Node": { + "Cached": true, + "Id": "1", + "Name": "vmangi01" + }, + "NodesRunningOn": 1, + "Orphaned": false, + "Role": "Started" + } + ], + "Summary": { + "ClusterOptions": { + "StonithEnabled": true + }, + "LastChange": { + "Time": "Mon Jun 10 13:03:57 2024" + }, + "Nodes": { + "Number": 2 + }, + "Resources": { + "Blocked": 0, + "Disabled": 0, + "Number": 6 + } + }, + "Version": "2.1.5+20221208.a3f44794f-150500.6.14.4" + }, + "DC": false, + "Id": "04dcf01eefda0e3b4cc897968150169e", + "Name": "hana_angi", + "Provider": "azure", + "SBD": { + "Config": { + "SBD_DELAY_START": "yes", + "SBD_DEVICE": "/dev/disk/by-id/scsi-3600140549ffde0461745510a8f5e399", + "SBD_MOVE_TO_ROOT_CGROUP": "auto", + "SBD_OPTS": "", + "SBD_PACEMAKER": "yes", + "SBD_STARTMODE": "clean", + "SBD_SYNC_RESOURCE_STARTUP": "yes", + "SBD_TIMEOUT_ACTION": "flush,reboot", + "SBD_WATCHDOG_DEV": "/dev/watchdog", + "SBD_WATCHDOG_TIMEOUT": "20" + }, + "Devices": [ + { + "Device": "/dev/disk/by-id/scsi-3600140549ffde0461745510a8f5e399", + "Dump": { + "Header": "2.1", + "SectorSize": 512, + "Slots": 255, + "TimeoutAllocate": 2, + "TimeoutLoop": 1, + "TimeoutMsgwait": 120, + "TimeoutWatchdog": 60, + "Uuid": "8c306a35-a58b-451e-a34b-9341076b2f49" + }, + "List": [ + { + "Id": 0, + "Name": "vmangi01", + "Status": "clear" + }, + { + "Id": 1, + "Name": "vmangi02", + "Status": "clear" + } + ], + "Status": "healthy" + } + ] + } + } +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_host_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_host_discovery.json new file mode 100644 index 0000000000..633fb1b061 --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_host_discovery.json @@ -0,0 +1,21 @@ +{ + "agent_id": "851a4dd3-9693-44c3-a40b-b32d22872e74", + "discovery_type": "host_discovery", + "payload": { + "agent_version": "2.3.0", + "cpu_count": 4, + "fully_qualified_domain_name": "vmangi01", + "hostname": "vmangi01", + "installation_source": "Suse", + "ip_addresses": [ + "127.0.0.1", + "::1", + "10.70.1.4", + "10.70.1.13", + "f62a:7172:570f:a509:6475" + ], + "os_version": "15-SP5", + "socket_count": 1, + "total_memory_mb": 32043 + } +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_sap_system_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_sap_system_discovery.json new file mode 100644 index 0000000000..c1855ec256 --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_sap_system_discovery.json @@ -0,0 +1,390 @@ +{ + "agent_id": "851a4dd3-9693-44c3-a40b-b32d22872e74", + "discovery_type": "sap_system_discovery", + "payload": [ + { + "DBAddress": "", + "Databases": [ + { + "Active": "yes", + "Container": "", + "Database": "HN9", + "Group": "", + "GroupId": "", + "Host": "vmangi01", + "SqlPort": "30915", + "User": "", + "UserId": "" + } + ], + "Id": "b5e2378f560d932d1b8ceafa86751169", + "Instances": [ + { + "HdbnsutilSRstate": { + "hasConsumers": "true", + "hintBasedRoutingSite": "", + "isConsumer": "false", + "isPrimarySuspended": "false", + "isSource": "true", + "isTakeoverActive": "false", + "mapping/vmangi01": [ + "ROT/vmangi02", + "WDF/vmangi01" + ], + "mode": "primary", + "online": "true", + "operation_mode": "primary", + "siteMapping/WDF": "ROT", + "siteOperationMode/ROT": "logreplay", + "siteOperationMode/WDF": "primary", + "siteReplicationMode/ROT": "sync", + "siteReplicationMode/WDF": "primary", + "siteTier/ROT": "2", + "siteTier/WDF": "1", + "site_id": "1", + "site_name": "WDF" + }, + "Host": "vmangi01", + "HostConfiguration": { + "failoverActualGroup": "default", + "failoverConfigGroup": "default", + "failoverStatus": "", + "host": "vmangi01", + "hostActive": "yes", + "hostActualRoles": "worker", + "hostConfigRoles": "worker", + "hostStatus": "ok", + "indexServerActualRole": "master", + "indexServerConfigRole": "worker", + "nameServerActualRole": "master", + "nameServerConfigRole": "master 1", + "removeStatus": "", + "storageActualPartition": "1", + "storageConfigPartition": "1", + "storagePartition": "1", + "workerActualGroups": "default", + "workerConfigGroups": "default" + }, + "Name": "HDB09", + "SAPControl": { + "Instances": [ + { + "dispstatus": "SAPControl-GREEN", + "features": "HDB|HDB_WORKER", + "hostname": "vmangi01", + "httpPort": 50913, + "httpsPort": 50914, + "instanceNr": 9, + "startPriority": "0.3" + } + ], + "Processes": [ + { + "description": "HDB Daemon", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:34:28", + "name": "hdbdaemon", + "pid": 16827, + "starttime": "2024 06 10 06:30:04", + "textstatus": "Running" + }, + { + "description": "HDB Compileserver", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:34:16", + "name": "hdbcompileserver", + "pid": 17013, + "starttime": "2024 06 10 06:30:16", + "textstatus": "Running" + }, + { + "description": "HDB Indexserver-HN9", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:34:16", + "name": "hdbindexserver", + "pid": 17049, + "starttime": "2024 06 10 06:30:16", + "textstatus": "Running" + }, + { + "description": "HDB Nameserver", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:34:27", + "name": "hdbnameserver", + "pid": 16852, + "starttime": "2024 06 10 06:30:05", + "textstatus": "Running" + }, + { + "description": "HDB Preprocessor", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:34:16", + "name": "hdbpreprocessor", + "pid": 17016, + "starttime": "2024 06 10 06:30:16", + "textstatus": "Running" + }, + { + "description": "HDB Web Dispatcher", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:33:56", + "name": "hdbwebdispatcher", + "pid": 17331, + "starttime": "2024 06 10 06:30:36", + "textstatus": "Running" + }, + { + "description": "HDB XSEngine-HN9", + "dispstatus": "SAPControl-GREEN", + "elapsedtime": "6:34:16", + "name": "hdbxsengine", + "pid": 17052, + "starttime": "2024 06 10 06:30:16", + "textstatus": "Running" + } + ], + "Properties": [ + { + "property": "Process List", + "propertytype": "NodeWebmethod", + "value": "GetProcessList" + }, + { + "property": "Access Points", + "propertytype": "NodeWebmethod", + "value": "GetAccessPointList" + }, + { + "property": "Parameter Documentation", + "propertytype": "NodeURL", + "value": "http://vmangi01:50913/sapparamEN.html" + }, + { + "property": "Protected Webmethods", + "propertytype": "Attribute", + "value": "ABAPAcknowledgeAlerts,ABAPCheckRFCDestinations,ABAPGetComponentList,ABAPGetSystemWPTable,ABAPGetWPTable,ABAPReadRawSyslog,ABAPReadSyslog,ABAPSetServerInactive,AnalyseLogFiles,Bootstrap,CheckParameter,CheckPSE,CheckUpdateSystem,ConfigureLogFileList,CreatePSECredential,CreateSnapshot,DeletePSE,DeleteSnapshots,EnqGetLockTable,EnqGetStatistic,EnqRemoveLocks,EnqRemoveUserLocks,GetAccessPointList,GetAlerts,GetAlertTree,GetCallstack,GetEnvironment,GetLogFileList,GetProcessParameter,GetQueueStatistic,GetStartProfile,GetSystemUpdateList,GetTraceFile,GetVersionInfo,GWCancelConnections,GWDeleteClients,GWDeleteConnections,GWGetConnectionList,GWGetClientList,HACheckConfig,HACheckFailoverConfig,HACheckMaintenanceMode,HAFailoverToNode,HAGetFailoverConfig,HASetMaintenanceMode,ICMGetCacheEntries,ICMGetConnectionList,ICMGetProxyConnectionList,ICMGetThreadList,InstanceStart,InstanceStop,J2EEControlCluster,J2EEControlComponents,J2EEControlProcess,J2EEDisableDbgSession,J2EEEnableDbgSession,J2EEGetApplicationAliasList,J2EEGetCacheStatistic,J2EEGetCacheStatistic2,J2EEGetClusterMsgList,J2EEGetComponentList,J2EEGetEJBSessionList,J2EEGetProcessList,J2EEGetProcessList2,J2EEGetRemoteObjectList,J2EEGetSessionList,J2EEGetSharedTableInfo,J2EEGetThreadCallStack,J2EEGetThreadList,J2EEGetThreadList2,J2EEGetThreadTaskStack,J2EEGetVMGCHistory,J2EEGetVMGCHistory2,J2EEGetVMHeapInfo,J2EEGetWebSessionList,J2EEGetWebSessionList2,ListConfigFiles,ListDeveloperTraces,ListLogFiles,ListSnapshots,OSExecute,ParameterValue,ReadConfigFile,ReadDeveloperTrace,ReadLogFile,ReadSnapshot,RestartInstance,RestartService,RestartSystem,SendSignal,SetProcessParameter,SetProcessParameter2,ShmDetach,Shutdown,Start,StartBypassHA,StartSystem,Stop,StopBypassHA,StopService,StopSystem,StorePSE,UpdateInstancePSE,UpdateSCSInstance,UpdateSystem,UpdateSystemPKI,WebDispGetServerList,WebDispGetGroupList,WebDispGetVirtHostList,WebDispGetUrlPrefixList,GetAgentConfig,GetListOfMaByCusGrp,GetMcInLocalMs,GetMtesByRequestTable,GetMtListByMtclass,InfoGetTree,MscCustomizeWrite,MscDeleteLines,MscReadCache,MsGetLocalMsInfo,MsGetMteclsInLocalMs,MtChangeStatus,MtCustomizeWrite,MtDbsetToWpsetByTid,MtDestroyMarkNTry,MteGetByToolRunstatus,MtGetAllToCust,MtGetAllToolsToSet,MtGetMteinfo,MtGetTidByName,MtRead,MtReset,PerfCustomizeWrite,PerfRead,PerfReadSmoothData,ReadDirectory,ReadFile,ReadProfileParameters,ReferenceRead,Register,RequestLogonFile,SnglmgsCustomizeWrite,SystemObjectSetValue,TextAttrRead,ToolGetEffective,ToolSet,ToolSetRuntimeStatus,TriggerDataCollection,Unregister,UtilAlChangeStatus,UtilMtGetAidByTid,UtilMtGetTreeLocal,UtilMtReadAll,UtilReadRawalertByAid,UtilSnglmsgReadRawdata" + }, + { + "property": "DBServices", + "propertytype": "Attribute", + "value": "YES" + }, + { + "property": "HANA Roles", + "propertytype": "Attribute", + "value": "worker" + }, + { + "property": "StartPriority", + "propertytype": "Attribute", + "value": "0.3" + }, + { + "property": "SAPSYSTEM", + "propertytype": "Attribute", + "value": "09" + }, + { + "property": "SAPSYSTEMNAME", + "propertytype": "Attribute", + "value": "HN9" + }, + { + "property": "SAPLOCALHOST", + "propertytype": "Attribute", + "value": "vmangi01" + }, + { + "property": "INSTANCE_NAME", + "propertytype": "Attribute", + "value": "HDB09" + }, + { + "property": "Webmethods", + "propertytype": "Attribute", + "value": "Start,InstanceStart,StartBypassHA,Bootstrap,Stop,InstanceStop,StopBypassHA,Shutdown,ParameterValue,GetProcessList,GetStartProfile,GetTraceFile,GetAlertTree,GetAlerts,RestartService,StopService,GetEnvironment,ListDeveloperTraces,ReadDeveloperTrace,RestartInstance,SendSignal,GetVersionInfo,GetQueueStatistic,GetInstanceProperties,OSExecute,ReadLogFile,AnalyseLogFiles,ListLogFiles,GetAccessPointList,GetSystemInstanceList,GetSystemUpdateList,StartSystem,StopSystem,RestartSystem,UpdateSystem,UpdateSCSInstance,CheckUpdateSystem,AccessCheck,GetProcessParameter,SetProcessParameter,SetProcessParameter2,CheckParameter,ShmDetach,GetNetworkId,GetSecNetworkId,RequestLogonFile,CreateSnapshot,ReadSnapshot,ListSnapshots,DeleteSnapshots,GetCallstack,ABAPReadSyslog,ABAPReadRawSyslog,ABAPGetWPTable,ABAPAcknowledgeAlerts,ABAPGetComponentList,ABAPCheckRFCDestinations,ABAPGetSystemWPTable,ABAPSetServerInactive,J2EEGetProcessList,J2EEGetProcessList2,J2EEControlProcess,J2EEGetThreadList,J2EEGetThreadList2,J2EEGetThreadCallStack,J2EEGetThreadTaskStack,J2EEGetSessionList,J2EEGetWebSessionList,J2EEGetWebSessionList2,J2EEGetCacheStatistic,J2EEGetCacheStatistic2,J2EEGetApplicationAliasList,J2EEGetVMGCHistory,J2EEGetVMGCHistory2,J2EEGetVMHeapInfo,J2EEGetEJBSessionList,J2EEGetRemoteObjectList,J2EEGetClusterMsgList,J2EEGetSharedTableInfo,J2EEGetComponentList,J2EEControlComponents,ICMGetThreadList,ICMGetConnectionList,ICMGetCacheEntries,ICMGetProxyConnectionList,WebDispGetServerList,WebDispGetGroupList,WebDispGetVirtHostList,WebDispGetUrlPrefixList,EnqGetLockTable,EnqRemoveLocks,EnqRemoveUserLocks,EnqGetStatistic,GWCancelConnections,GWDeleteClients,GWDeleteConnections,GWGetConnectionList,GWGetClientList,UpdateSystemPKI,UpdateInstancePSE,StorePSE,DeletePSE,CheckPSE,HACheckConfig,HACheckFailoverConfig,HAGetFailoverConfig,HAFailoverToNode,HASetMaintenanceMode,HACheckMaintenanceMode,ListConfigFiles,ReadConfigFile" + } + ] + }, + "SystemReplication": { + "service/vmangi01/30903/SERVICE_NAME": "indexserver", + "service/vmangi01/30907/SECONDARY_HOST": "vmangi02", + "service/vmangi01/30907/REPLAYED_LOG_POSITION_TIME": "2024-06-10 13:04:32.675056", + "service/vmangi01/30907/SHIPPED_SAVEPOINT_LOG_POSITION": "0", + "service/vmangi01/30903/SHIPPED_LAST_FULL_REPLICA_SIZE": "0", + "site/2/SECONDARY_FULLY_SYNCED": "True", + "service/vmangi01/30903/SECONDARY_ACTIVE_STATUS": "YES", + "service/vmangi01/30901/SHIPPED_DELTA_REPLICA_SIZE": "0", + "service/vmangi01/30907/SITE_ID": "1", + "service/vmangi01/30901/FULL_SYNC": "DISABLED", + "service/vmangi01/30901/SHIPPED_FULL_REPLICA_DURATION": "0", + "service/vmangi01/30901/REPLICATION_STATUS": "ACTIVE", + "service/vmangi01/30907/SHIPPED_LAST_FULL_REPLICA_END_TIME": "-", + "service/vmangi01/30901/LAST_LOG_POSITION": "62123648", + "service/vmangi01/30901/SHIPPED_LAST_FULL_REPLICA_SIZE": "0", + "service/vmangi01/30907/SHIPPED_LAST_DELTA_REPLICA_START_TIME": "-", + "service/vmangi01/30907/LAST_SAVEPOINT_LOG_POSITION": "1483843", + "service/vmangi01/30907/SHIPPED_DELTA_REPLICA_COUNT": "0", + "service/vmangi01/30901/HOST": "vmangi01", + "service/vmangi01/30901/SECONDARY_SITE_NAME": "ROT", + "service/vmangi01/30907/VOLUME_ID": "2", + "service/vmangi01/30901/SHIPPED_LOG_BUFFERS_SIZE": "29237248", + "service/vmangi01/30901/SECONDARY_ACTIVE_STATUS": "YES", + "service/vmangi01/30907/RESET_COUNT": "0", + "service/vmangi01/30901/CREATION_TIME": "2024-06-10 06:30:16.331405", + "service/vmangi01/30903/SHIPPED_LAST_FULL_REPLICA_END_TIME": "-", + "service/vmangi01/30907/SHIPPED_LOG_BUFFERS_DURATION": "18132527", + "service/vmangi01/30907/SECONDARY_SITE_NAME": "ROT", + "service/vmangi01/30901/SECONDARY_HOST": "vmangi02", + "service/vmangi01/30903/SHIPPED_LOG_BUFFERS_COUNT": "28505", + "service/vmangi01/30903/SECONDARY_PORT": "30903", + "service/vmangi01/30907/SHIPPED_SAVEPOINT_START_TIME": "-", + "service/vmangi01/30907/SHIPPED_LAST_FULL_REPLICA_SIZE": "0", + "service/vmangi01/30903/SHIPPED_SAVEPOINT_START_TIME": "-", + "service/vmangi01/30903/REPLICATION_STATUS_DETAILS": "", + "service/vmangi01/30903/SITE_NAME": "WDF", + "service/vmangi01/30901/SHIPPED_SAVEPOINT_VERSION": "0", + "service/vmangi01/30901/SECONDARY_SITE_ID": "2", + "service/vmangi01/30903/SHIPPED_FULL_REPLICA_DURATION": "0", + "service/vmangi01/30903/SECONDARY_CONNECT_TIME": "2024-06-10 06:31:06.483101", + "service/vmangi01/30903/LAST_SAVEPOINT_LOG_POSITION": "68886722", + "service/vmangi01/30907/SHIPPED_LOG_POSITION_TIME": "2024-06-10 13:04:32.675056", + "service/vmangi01/30907/SERVICE_NAME": "xsengine", + "site/2/SITE_NAME": "ROT", + "service/vmangi01/30901/SHIPPED_LOG_POSITION": "62123648", + "service/vmangi01/30907/REPLAYED_LOG_POSITION": "1485893", + "service/vmangi01/30901/SECONDARY_RECONNECT_COUNT": "0", + "service/vmangi01/30903/SHIPPED_DELTA_REPLICA_COUNT": "0", + "service/vmangi01/30901/SHIPPED_LAST_FULL_REPLICA_START_TIME": "-", + "service/vmangi01/30907/SHIPPED_DELTA_REPLICA_DURATION": "0", + "service/vmangi01/30907/LAST_SAVEPOINT_START_TIME": "2024-06-10 13:01:53.210930", + "service/vmangi01/30903/SECONDARY_RECONNECT_COUNT": "0", + "service/vmangi01/30907/PORT": "30907", + "service/vmangi01/30903/SHIPPED_LAST_FULL_REPLICA_START_TIME": "-", + "service/vmangi01/30907/SHIPPED_LAST_DELTA_REPLICA_END_TIME": "-", + "service/vmangi01/30903/SHIPPED_LAST_DELTA_REPLICA_SIZE": "0", + "service/vmangi01/30901/VOLUME_ID": "1", + "service/vmangi01/30903/SECONDARY_FAILOVER_COUNT": "0", + "service/vmangi01/30907/LAST_SAVEPOINT_VERSION": "503", + "service/vmangi01/30901/SHIPPED_LOG_POSITION_TIME": "2024-06-10 13:04:24.029291", + "service/vmangi01/30901/RESET_COUNT": "0", + "service/vmangi01/30903/SHIPPED_LOG_BUFFERS_SIZE": "151101440", + "service/vmangi01/30907/REPLICATION_STATUS_DETAILS": "", + "service/vmangi01/30903/SHIPPED_LAST_DELTA_REPLICA_START_TIME": "-", + "site/2/REPLICATION_STATUS": "ACTIVE", + "service/vmangi01/30901/REPLAYED_LOG_POSITION": "62123648", + "service/vmangi01/30903/SHIPPED_LOG_POSITION": "68898432", + "service/vmangi01/30907/SHIPPED_LAST_FULL_REPLICA_START_TIME": "-", + "service/vmangi01/30903/SHIPPED_SAVEPOINT_VERSION": "0", + "service/vmangi01/30907/OPERATION_MODE": "logreplay", + "service/vmangi01/30901/SHIPPED_LAST_DELTA_REPLICA_END_TIME": "-", + "local_site_id": "1", + "site/1/REPLICATION_MODE": "PRIMARY", + "service/vmangi01/30903/VOLUME_ID": "3", + "overall_in_sync_status": "SYSTEM_IN_SYNC", + "service/vmangi01/30907/SECONDARY_ACTIVE_STATUS": "YES", + "service/vmangi01/30907/LAST_LOG_POSITION": "1485952", + "service/vmangi01/30903/SHIPPED_LAST_DELTA_REPLICA_END_TIME": "-", + "service/vmangi01/30907/SITE_NAME": "WDF", + "service/vmangi01/30907/SHIPPED_LAST_DELTA_REPLICA_SIZE": "0", + "service/vmangi01/30901/SHIPPED_SAVEPOINT_START_TIME": "-", + "service/vmangi01/30907/SHIPPED_LOG_BUFFERS_COUNT": "5470", + "service/vmangi01/30907/CREATION_TIME": "2024-06-10 06:30:36.088103", + "service/vmangi01/30903/LAST_SAVEPOINT_VERSION": "505", + "service/vmangi01/30901/SHIPPED_SAVEPOINT_LOG_POSITION": "0", + "overall_replication_status": "ACTIVE", + "service/vmangi01/30901/DATABASE": "SYSTEMDB", + "service/vmangi01/30903/SECONDARY_SITE_NAME": "ROT", + "service/vmangi01/30901/SHIPPED_LOG_BUFFERS_COUNT": "5697", + "service/vmangi01/30903/DATABASE": "HN9", + "service/vmangi01/30901/REPLICATION_STATUS_DETAILS": "", + "service/vmangi01/30901/SECONDARY_CONNECT_TIME": "2024-06-10 06:30:40.954674", + "service/vmangi01/30903/SHIPPED_FULL_REPLICA_COUNT": "0", + "service/vmangi01/30903/RESET_COUNT": "0", + "service/vmangi01/30903/OPERATION_MODE": "logreplay", + "service/vmangi01/30903/SHIPPED_DELTA_REPLICA_DURATION": "0", + "service/vmangi01/30907/SHIPPED_FULL_REPLICA_SIZE": "0", + "service/vmangi01/30901/REPLICATION_MODE": "SYNC", + "site/2/SOURCE_SITE_ID": "1", + "service/vmangi01/30907/SECONDARY_FULLY_SYNCED": "True", + "service/vmangi01/30907/SHIPPED_DELTA_REPLICA_SIZE": "0", + "service/vmangi01/30901/REPLAYED_LOG_POSITION_TIME": "2024-06-10 13:04:24.029291", + "service/vmangi01/30903/SHIPPED_DELTA_REPLICA_SIZE": "0", + "service/vmangi01/30901/LAST_SAVEPOINT_LOG_POSITION": "62120898", + "service/vmangi01/30903/SECONDARY_SITE_ID": "2", + "service/vmangi01/30903/PORT": "30903", + "service/vmangi01/30901/LAST_RESET_TIME": "2024-06-10 06:30:16.331405", + "service/vmangi01/30907/SHIPPED_FULL_REPLICA_DURATION": "0", + "service/vmangi01/30901/OPERATION_MODE": "logreplay", + "service/vmangi01/30903/SHIPPED_SAVEPOINT_LOG_POSITION": "0", + "service/vmangi01/30903/SHIPPED_LOG_POSITION_TIME": "2024-06-10 13:04:33.369570", + "service/vmangi01/30901/SHIPPED_FULL_REPLICA_SIZE": "0", + "service/vmangi01/30903/LAST_LOG_POSITION_TIME": "2024-06-10 13:04:33.369570", + "service/vmangi01/30907/SECONDARY_SITE_ID": "2", + "service/vmangi01/30901/SHIPPED_DELTA_REPLICA_DURATION": "0", + "service/vmangi01/30901/SECONDARY_PORT": "30901", + "service/vmangi01/30901/LAST_LOG_POSITION_TIME": "2024-06-10 13:04:24.029291", + "service/vmangi01/30901/SECONDARY_FAILOVER_COUNT": "0", + "service/vmangi01/30901/LAST_SAVEPOINT_START_TIME": "2024-06-10 13:01:16.520336", + "service/vmangi01/30907/REPLICATION_STATUS": "ACTIVE", + "service/vmangi01/30907/DATABASE": "HN9", + "service/vmangi01/30907/SECONDARY_CONNECT_TIME": "2024-06-10 06:31:07.207182", + "service/vmangi01/30901/SHIPPED_LOG_BUFFERS_DURATION": "26259041", + "service/vmangi01/30903/SITE_ID": "1", + "service/vmangi01/30903/REPLAYED_LOG_POSITION": "68898432", + "service/vmangi01/30907/REPLICATION_MODE": "SYNC", + "service/vmangi01/30903/FULL_SYNC": "DISABLED", + "service/vmangi01/30907/SHIPPED_LOG_POSITION": "1485952", + "service/vmangi01/30901/LAST_SAVEPOINT_VERSION": "501", + "service/vmangi01/30903/SECONDARY_HOST": "vmangi02", + "service/vmangi01/30901/SHIPPED_LAST_DELTA_REPLICA_SIZE": "0", + "service/vmangi01/30907/SHIPPED_FULL_REPLICA_COUNT": "0", + "service/vmangi01/30903/HOST": "vmangi01", + "service/vmangi01/30907/HOST": "vmangi01", + "service/vmangi01/30903/SHIPPED_LOG_BUFFERS_DURATION": "80580707", + "service/vmangi01/30903/LAST_LOG_POSITION": "68898432", + "service/vmangi01/30901/SERVICE_NAME": "nameserver", + "service/vmangi01/30901/PORT": "30901", + "service/vmangi01/30901/SITE_NAME": "WDF", + "service/vmangi01/30903/LAST_SAVEPOINT_START_TIME": "2024-06-10 13:01:49.641346", + "service/vmangi01/30901/SHIPPED_LAST_DELTA_REPLICA_START_TIME": "-", + "service/vmangi01/30907/SHIPPED_LOG_BUFFERS_SIZE": "22405120", + "service/vmangi01/30903/REPLAYED_LOG_POSITION_TIME": "2024-06-10 13:04:33.369570", + "service/vmangi01/30907/SHIPPED_SAVEPOINT_VERSION": "0", + "service/vmangi01/30907/SECONDARY_PORT": "30907", + "service/vmangi01/30903/LAST_RESET_TIME": "2024-06-10 06:30:32.382926", + "service/vmangi01/30901/SECONDARY_FULLY_SYNCED": "True", + "service/vmangi01/30903/CREATION_TIME": "2024-06-10 06:30:32.382926", + "service/vmangi01/30903/REPLICATION_STATUS": "ACTIVE", + "service/vmangi01/30901/SHIPPED_FULL_REPLICA_COUNT": "0", + "service/vmangi01/30901/SHIPPED_DELTA_REPLICA_COUNT": "0", + "site/1/SITE_NAME": "WDF", + "service/vmangi01/30907/SECONDARY_RECONNECT_COUNT": "0", + "service/vmangi01/30901/SITE_ID": "1", + "service/vmangi01/30907/LAST_RESET_TIME": "2024-06-10 06:30:36.088103", + "service/vmangi01/30903/SHIPPED_FULL_REPLICA_SIZE": "0", + "site/2/REPLICATION_MODE": "SYNC", + "service/vmangi01/30903/SECONDARY_FULLY_SYNCED": "True", + "service/vmangi01/30907/LAST_LOG_POSITION_TIME": "2024-06-10 13:04:32.675056", + "service/vmangi01/30907/FULL_SYNC": "DISABLED", + "service/vmangi01/30901/SHIPPED_LAST_FULL_REPLICA_END_TIME": "-", + "service/vmangi01/30903/REPLICATION_MODE": "SYNC", + "service/vmangi01/30907/SECONDARY_FAILOVER_COUNT": "0" + }, + "Type": 1 + } + ], + "Profile": { + "HDB_LINKED_BINARIES": "yes", + "HDB_SHARED_BINARIES": "yes", + "SAPGLOBALHOST": "vmangi01", + "SAPSYSTEMNAME": "HN9", + "hdbConfigType": "DEFAULT", + "ssl/ciphersuites": "545:PFS:HIGH::EC_X25519:EC_P256:EC_HIGH", + "ssl/client_ciphersuites": "150:PFS:HIGH::EC_X25519:EC_P256:EC_HIGH" + }, + "SID": "HN9", + "Type": 1 + } + ] +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_saptune_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_saptune_discovery.json new file mode 100644 index 0000000000..28aa1876f6 --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_saptune_discovery.json @@ -0,0 +1,145 @@ +{ + "agent_id": "851a4dd3-9693-44c3-a40b-b32d22872e74", + "discovery_type": "saptune_discovery", + "payload": { + "package_version": "3.1.2", + "saptune_installed": true, + "status": { + "$schema": "file:///usr/share/saptune/schemas/1.0/saptune_status.schema.json", + "argv": "saptune --format json status", + "command": "status", + "exit code": 0, + "messages": [ + { + "message": "sysctl.go:75: Parameter 'fs.aio-max-nr' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(18446744073709551615).\n", + "priority": "WARNING" + }, + { + "message": "ini.go:310: block device related section settings detected: Traversing all block devices can take a considerable amount of time.\n", + "priority": "NOTICE" + }, + { + "message": "sysctl.go:75: Parameter 'vm.dirty_bytes' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(629145600).\n", + "priority": "WARNING" + }, + { + "message": "sysctl.go:75: Parameter 'vm.dirty_background_bytes' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(314572800).\n", + "priority": "WARNING" + }, + { + "message": "sysctl.go:75: Parameter 'net.core.somaxconn' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(4096).\n", + "priority": "WARNING" + }, + { + "message": "sysctl.go:75: Parameter 'net.ipv4.tcp_max_syn_backlog' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(8192).\n", + "priority": "WARNING" + }, + { + "message": "sysctl.go:75: Parameter 'net.ipv4.tcp_slow_start_after_idle' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(0).\n", + "priority": "WARNING" + }, + { + "message": "sysctl.go:75: Parameter 'net.ipv4.tcp_window_scaling' additional defined in the following sysctl config file /usr/lib/sysctl.d/99-sysctl.conf(1).\n", + "priority": "WARNING" + } + ], + "pid": 4241, + "publish time": "2024-06-10 12:57:39.876", + "result": { + "Notes applied": [ + "941735", + "1771258", + "1868829", + "1980196", + "2578899", + "2684254", + "2382421", + "2534844", + "2993054", + "1656250" + ], + "Notes applied by Solution": [ + { + "Note list": [ + "941735", + "1771258", + "1868829", + "1980196", + "2578899", + "2684254", + "2382421", + "2534844", + "2993054", + "1656250" + ], + "Solution ID": "HANA" + } + ], + "Notes enabled": [ + "941735", + "1771258", + "1868829", + "1980196", + "2578899", + "2684254", + "2382421", + "2534844", + "2993054", + "1656250" + ], + "Notes enabled additionally": [], + "Notes enabled by Solution": [ + { + "Note list": [ + "941735", + "1771258", + "1868829", + "1980196", + "2578899", + "2684254", + "2382421", + "2534844", + "2993054", + "1656250" + ], + "Solution ID": "HANA" + } + ], + "Solution applied": [ + { + "Solution ID": "HANA", + "applied partially": false + } + ], + "Solution enabled": [ + "HANA" + ], + "configured version": "3", + "package version": "3.1.2", + "remember message": "\n\n", + "services": { + "sapconf": [ + "disabled", + "inactive" + ], + "saptune": [ + "enabled", + "active" + ], + "tuned": [ + "disabled", + "inactive" + ] + }, + "staging": { + "Notes staged": [], + "Solutions staged": [], + "staging enabled": false + }, + "systemd system state": "running", + "tuning state": "compliant", + "virtualization": "microsoft" + } + } + } +} \ No newline at end of file diff --git a/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_subscription_discovery.json b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_subscription_discovery.json new file mode 100644 index 0000000000..689dd3c650 --- /dev/null +++ b/test/fixtures/scenarios/hana-scale-up-angi/851a4dd3-9693-44c3-a40b-b32d22872e74_subscription_discovery.json @@ -0,0 +1,74 @@ +{ + "agent_id": "851a4dd3-9693-44c3-a40b-b32d22872e74", + "discovery_type": "subscription_discovery", + "payload": [ + { + "arch": "x86_64", + "expires_at": "2025-03-01 07:00:20 UTC", + "identifier": "SLES_SAP", + "starts_at": "2021-10-18 06:23:46 UTC", + "status": "Registered", + "subscription_status": "ACTIVE", + "type": "internal", + "version": "15.5" + }, + { + "arch": "x86_64", + "expires_at": "2025-03-01 07:00:20 UTC", + "identifier": "sle-ha", + "starts_at": "2021-10-18 06:23:46 UTC", + "status": "Registered", + "subscription_status": "ACTIVE", + "type": "internal", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-basesystem", + "status": "Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-containers", + "status": "Not Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-desktop-applications", + "status": "Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-development-tools", + "status": "Not Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-public-cloud", + "status": "Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-sap-applications", + "status": "Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-server-applications", + "status": "Registered", + "version": "15.5" + }, + { + "arch": "x86_64", + "identifier": "sle-module-python3", + "status": "Registered", + "version": "15.5" + } + ] +} \ No newline at end of file