Skip to content

Commit 15051b5

Browse files
authored
Minor changes to STAF documentation (#144)
1 parent c3b09fb commit 15051b5

File tree

3 files changed

+52
-49
lines changed

3 files changed

+52
-49
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SAP Testing Automation is designed as a scalable framework to orchestrate and va
2323
>
2424
> The High Availability testing scenario in the SAP Testing Framework is **generally available (GA)**, while the Configuration Checks scenario is currently in **public preview**.
2525
26-
### High Availability Testing
26+
### High Availability Testing
2727

2828
In the SAP Testing Automation Framework, thorough validation of high availability SAP HANA scale-up and SAP Central Services failover mechanism in a two node pacemaker cluster can be performed, ensuring the system operates correctly across different situations.
2929

docs/CONFIGURATION_CHECKS.md

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# SAP Configuration Checks
22

3-
## Overview
4-
53
SAP Configuration Checks is an integral part of the SAP Testing Automation framework, providing comprehensive validation of SAP system configurations on Azure infrastructure. This module ensures that SAP Database and SAP Central Services deployments meet enterprise requirements for compliance before entering production. This tool is designed to identify misconfigurations, deviations from best practices, and potential issues that could impact system's stability and performance.
64

75
This tool is a new version of the existing [Quality Checks scripts](https://github.com/Azure/SAP-on-Azure-Scripts-and-Utilities/tree/main/QualityCheck), re-architected to provide a extensible, and maintainable solution. It leverages Python for core logic and Ansible for orchestration.
86

9-
## Purpose
7+
## Overview
108

119
Configuration validation serves as a critical quality gate in the SAP deployment lifecycle by:
1210

@@ -20,30 +18,27 @@ Configuration validation serves as a critical quality gate in the SAP deployment
2018
The configuration checks are organized into logical groups that can be executed independently or all at once. The main categories are:
2119

2220
1. **Infrastructure**
23-
24-
- While not a separate execution category, infrastructure checks are performed as part of the other categories.
25-
- **Azure Compute**: VM SKU, Accelerated Networking, Availability Set/Zone, Proximity Placement Group.
26-
- **Storage**: Use of Premium SSD/Ultra Disk, Write Accelerator, disk caching policies, and redundancy settings.
21+
- While not a separate execution category, infrastructure checks are performed as part of the other categories.
22+
- **Azure Compute**: VM SKU, Accelerated Networking, Availability Set/Zone, Proximity Placement Group.
23+
- **Storage**: Use of Premium SSD/Ultra Disk, Write Accelerator, disk caching policies, and redundancy settings.
2724

2825
2. **Database**
29-
3026
- Validates SAP HANA or IBM DB2 specific settings.
3127
- **SAP HANA**: Checks memory allocation, system replication parameters, and Pacemaker cluster configurations (resource agents, fencing, constraints).
3228
- **IBM DB2**: Verifies hardware requirements, system language, and OS tuning parameters.
3329

3430
3. **Central Services**
31+
- Validates the configuration of ASCS (ABAP SAP Central Services) and ERS (Enqueue Replication Server) instances.
32+
- Checks for virtual hostname configuration, file system mount options, and service startup ordering.
3533

36-
- Validates the configuration of ASCS (ABAP SAP Central Services) and ERS (Enqueue Replication Server) instances.
37-
38-
- Checks for virtual hostname configuration, file system mount options, and service startup ordering.
34+
4. **Application Servers**
35+
- Validates the configuration of the application server instances.
3936

37+
> [!NOTE]
38+
>
39+
> High Availability (HA) configuration checks and functional tests are currently supported only for SAP HANA databases. For IBM DB2 databases, only non-HA configuration checks are available.
4040
41-
3. **Application Servers**
42-
- Validates the configuration of the application server instances.
43-
44-
45-
> **Note**: High Availability (HA) configuration checks and functional tests are currently supported only for SAP HANA databases. For IBM DB2 databases, only non-HA configuration checks are available.
46-
41+
## Pre-requisites
4742

4843
### 1. Setup Configuration
4944

@@ -55,20 +50,18 @@ Update the `TEST_TYPE` parameter in [`vars.yaml`](./../vars.yaml) file to `Confi
5550

5651
Follow the steps (2.1 - 2.2) in [Setup Guide for SAP Testing Automation Framework](./SETUP.MD#2-system-configuration) to configure your system details.
5752

58-
> **Note**: High Availability (HA) configuration checks and functional tests are currently supported only for SAP HANA databases. For IBM DB2 databases, only non-HA configuration checks are available.
59-
6053
### 3. Required Access and Permissions (required)
6154

62-
Effective configuration validation requires that the management server's managed identity (system or user assigned) has read permissions on all target Azure resources. This allows the framework to inspect the settings of services including, but not limited to, Azure Load Balancers, storage solutions (Managed Disks, Azure Files, Azure NetApp Files), and network infrastructure. Lacking the necessary access will prevent the configuration checks from identifying potential misconfigurations in the environment. For more details on configuring system assigned managed identity vs user assigned managed identity, see [Setup Guide for SAP Testing Automation Framework](./SETUP.MD#configuring-access-using-managed-identity).
55+
Effective configuration validation requires that the management server's managed identity (system or user assigned) has read permissions on all target Azure resources. This allows the framework to inspect the settings of services including, but not limited to, Azure Load Balancers, storage solutions (Managed Disks, Azure Files, Azure NetApp Files), and network infrastructure. Lacking the necessary access will prevent the configuration checks from identifying potential misconfigurations in the environment. For more details on configuring system assigned managed identity vs user assigned managed identity, see [Setup Guide for SAP Testing Automation Framework](./SETUP.MD#4-identity-and-authorization).
6356

6457
1. Depending on the type of managed identity method you want to use, configure managed identity on management server
65-
- [Configuring access using system-assigned managed identity](./SETUP.MD#configuring-access-using-system-assigned-managed-identity).
66-
- [Configuring access using user-assigned managed identity](SETUP.MD#configuring-access-using-user-assigned-managed-identity).
58+
- [Configuring access using user-assigned managed identity](./SETUP.MD#option-1-user-assigned-managed-identity).
59+
- [Configuring access using system-assigned managed identity](./SETUP.MD#option-2-system-assigned-managed-identity).
6760
2. Grant the managed identity (system- or user-assigned) the built-in **Reader** role on every resource group that contains SAP system components (VMs, managed disks, load balancers, virtual network, shared storage such as Azure NetApp Files or Azure Files). If everything resides in a single resource group, one assignment there is sufficient; if components are split across multiple resource groups, add a **Reader** role assignment on each resource group to allow the configuration checks to read and validate all infrastructure settings.
6861

69-
### 4. Azure Login (required)
62+
## Test Execution
7063

71-
Ensure that you are logged into Azure CLI on the management server VM with the appropriate subscription context:
64+
You first need to make sure that you are logged into Azure CLI on the management server VM with the appropriate subscription context:
7265

7366
```bash
7467
# Login to Azure using System Assigned Managed Identity
@@ -81,8 +74,6 @@ az login --identity -u <client-id-of-user-assigned-managed-identity>
8174
az account set --subscription <subscription-id>
8275
```
8376

84-
### 5. Test Execution
85-
8677
To execute the script, run following command:
8778

8879
```bash
@@ -105,7 +96,7 @@ To execute the script, run following command:
10596
./scripts/sap_automation_qa.sh --extra-vars='{"configuration_test_type":"ApplicationInstances"}'
10697
```
10798

108-
### 6. Viewing Test Results
99+
## Viewing Test Results
109100

110101
After the test execution completes, a detailed HTML report is generated. The report provide the summary of each test cases that got executed for each VM.
111102

@@ -118,21 +109,21 @@ After the test execution completes, a detailed HTML report is generated. The rep
118109
```bash
119110
cd WORKSPACES/SYSTEM/<SYSTEM_CONFIG_NAME>/quality_assurance/
120111
```
121-
112+
122113
2. **Find your report file:**
123114

124115
The report file is named using the following format:
125116

126-
```
117+
```html
127118
all_{DISTRO}_{INVOCATION_ID}.html
128119
```
129120

130121
- `DISTRO`: Linux distribution (SLES or RHEL)
131122

132123
- `INVOCATION_ID`: A unique identifier (Group invocation ID) for the test run which is logged at the end of test execution. Find example screenshot below:
133124

134-
![Test Execution Completion Screenshot](./images/execution_screenshot.png)
125+
![Test Execution Completion Screenshot](./images/execution_screenshot.png)
135126

136127
3. **View the report**
137128

138-
You can open the HTML report in any web browser to review the results and logs.
129+
You can open the HTML report in any web browser to review the results and logs.

docs/HIGH_AVAILABILITY.md

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,21 @@ Follow the steps in the [Setup Guide for SAP Testing Automation Framework](./SET
3030

3131
### 3. Configure the System for HA Testing
3232

33-
1. Update the `TEST_TYPE` parameter in the `vars.yaml` file to `SAPFunctionalTests` to enable the High Availability test scenarios.
34-
2. Follow the steps in the [System Configuration section of the Setup Guide](./SETUP.MD#2-system-configuration) to provide the details of your SAP system.
33+
1. Update the `TEST_TYPE` parameter in the `vars.yaml` file to `SAPFunctionalTests` to enable the High Availability test scenarios.
34+
2. Follow the steps in the [System Configuration section of the Setup Guide](./SETUP.MD#2-system-configuration) to provide the details of your SAP system.
3535

36+
### 4. Required Access and Permission (required for Load Balancer)
37+
38+
In the High Availability testing scenario, one of the test cases validates the configuration of the Azure Load Balancer used in the SAP high availability setup. To retrieve the properties of the Azure Load Balancer, the management server VM must have read access to it.
39+
40+
Access can be granted by configuring a managed identity for the management server. For more information on setting up system-assigned or user-assigned managed identities, see [Setup Guide for SAP Testing Automation Framework](./SETUP.MD#4-identity-and-authorization).
41+
42+
1. Depending on the type of managed identity method you want to use, configure managed identity on management server.
43+
44+
- [Configuring access using user-assigned managed identity](./SETUP.MD#option-1-user-assigned-managed-identity).
45+
- [Configuring access using system-assigned managed identity](./SETUP.MD#option-2-system-assigned-managed-identity).
46+
47+
1. Grant the managed identity (system- or user-assigned) the built-in **Reader** role on the Azure load balancer used in the SAP high availability cluster configuration.
3648

3749
## Test Execution
3850

@@ -56,26 +68,26 @@ Execute the tests using the `sap_automation_qa.sh` script from the `scripts` dir
5668

5769
Upon completion, the framework generates a detailed HTML report that summarizes the PASS/FAIL status of each test case and provides detailed execution logs.
5870

59-
1. **Navigate to the workspace directory for your SAP system.**
71+
1. **Navigate to the workspace directory for your SAP system.**
6072

61-
Replace `<SYSTEM_CONFIG_NAME>` with the name of your SAP system configuration (e.g., `DEV-WEEU-SAP01-X00`).
73+
Replace `<SYSTEM_CONFIG_NAME>` with the name of your SAP system configuration (e.g., `DEV-WEEU-SAP01-X00`).
6274

63-
```bash
64-
cd WORKSPACES/SYSTEM/<SYSTEM_CONFIG_NAME>/quality_assurance/
65-
```
75+
```bash
76+
cd WORKSPACES/SYSTEM/<SYSTEM_CONFIG_NAME>/quality_assurance/
77+
```
6678

67-
2. **Identify the report file.**
79+
2. **Identify the report file.**
6880

69-
The report file name follows this format:
70-
`HA_{SAP_TIER}_{DATABASE_TYPE}_{OS_DISTRO_NAME}_{INVOCATION_ID}.html`
81+
The report file name follows this format:
82+
`HA_{SAP_TIER}_{DATABASE_TYPE}_{OS_DISTRO_NAME}_{INVOCATION_ID}.html`
7183

72-
* `SAP_TIER`: The SAP tier tested (e.g., DB, SCS).
73-
* `DATABASE_TYPE`: The database type (e.g., HANA).
74-
* `OS_DISTRO_NAME`: The operating system (e.g., SLES15SP4).
75-
* `INVOCATION_ID`: A unique identifier for the test run, which is logged at the end of the test execution.
84+
- `SAP_TIER`: The SAP tier tested (e.g., DB, SCS).
85+
- `DATABASE_TYPE`: The database type (e.g., HANA).
86+
- `OS_DISTRO_NAME`: The operating system (e.g., SLES15SP4).
87+
- `INVOCATION_ID`: A unique identifier for the test run, which is logged at the end of the test execution.
7688

77-
![Test Execution Completion Screenshot](./images/execution_screenshot.png)
89+
![Test Execution Completion Screenshot](./images/execution_screenshot.png)
7890

79-
3. **View the report.**
91+
3. **View the report.**
8092

81-
Open the HTML file in any web browser to review the test results and logs.
93+
Open the HTML file in any web browser to review the test results and logs.

0 commit comments

Comments
 (0)