Skip to content

Commit

Permalink
Pre release improvements and fixes (#19)
Browse files Browse the repository at this point in the history
* Improve description and abstract in some checks

* Add metadata filters for ensa and filesystem type checks

* Set checks that fail as wip

* Remove ensa filter and add ensa1 reference
  • Loading branch information
arbulu89 authored Oct 16, 2024
1 parent d14f2d9 commit be22dd0
Show file tree
Hide file tree
Showing 33 changed files with 82 additions and 10 deletions.
3 changes: 3 additions & 0 deletions checks/0D636F.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
ensa_version:
- ensa2
- mixed_versions
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
3 changes: 3 additions & 0 deletions checks/1E91FF.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- simple_mount
- mixed_fs_types
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
4 changes: 2 additions & 2 deletions checks/32CFC6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ id: "32CFC6"
name: corosync running 2 ring configuration
group: Corosync
description: |
Corosync is running with at least 2 rings
Corosync is running with minimum number of recommended rings
remediation: |
## Abstract
It is strongly recommended to add a second ring to the corosync communication.
The general recommendation is to add a second ring for the corosync communication but some platforms are good with only one.
## References
Azure:
Expand Down
1 change: 0 additions & 1 deletion checks/3A59DC.yaml → checks/3A59DC.yaml.wip
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ remediation: |
## References
- https://documentation.suse.com/sles-sap/15-SP5/single-html/SLES-SAP-guide/#sec-saptune-switch-solution

metadata:
target_type: cluster

Expand Down
File renamed without changes.
7 changes: 5 additions & 2 deletions checks/3AA324.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
id: "3AA324"
name: sapping/sapping enabled - simple_mount
name: sapping/sappong enabled - simple_mount
group: OS services
description: |
The sapping/sapping systemd services are enabled on simple mount.
The sapping/sappong systemd services are enabled on simple mount.
remediation: |
## Abstract
sapping/sappong systemd services must be enabled on every cluster node in the simple mount setup.
Expand All @@ -20,6 +20,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- simple_mount
- mixed_fs_types
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions checks/3EB4C0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- simple_mount
- mixed_fs_types
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
3 changes: 3 additions & 0 deletions checks/4DD3B5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
ensa_version:
- ensa1
- mixed_versions
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
2 changes: 2 additions & 0 deletions checks/61451E.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ remediation: |
Attention: Please do not use consecutive semicolons in the **SBD_DEVICE** variable in the SBD configuration file. This can cause problems in the cluster functionality as ``sbd`` ignores consecutive semicolons, but the ``fencing agent`` does not. Therefore they should be avoided.
This check is only applicable when disk-based SBD is configured.
The SBD is not used in GCP or AWS environments.
## References
Expand Down
3 changes: 3 additions & 0 deletions checks/62A0E0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- simple_mount
- mixed_fs_types
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
10 changes: 9 additions & 1 deletion checks/68626E.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@ group: SBD
description: |
SBD msgwait timeout value is at least two times the watchdog timeout
remediation: |
## Abstract
Configure SBD msgwait timeout value to be at least two times the watchdog timeout.
This check is only applicable when disk-based SBD is configured.
The SBD is not used in GCP or AWS environments.
## Remediation
Make sure you configure your the SBD msgwait to 2 * (SBD Watchdog Timeout) as recommended on the best practices.
The SBD is not used in GCP or AWS environments.
## References
- https://www.suse.com/support/kb/doc/?id=000017952
Azure:
- https://learn.microsoft.com/en-us/azure/sap/workloads/high-availability-guide-suse-pacemaker#set-up-the-iscsi-target-server-sbd-device
Expand Down
3 changes: 3 additions & 0 deletions checks/801E6A.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- simple_mount
- mixed_fs_types

facts:
- name: compare_sapstartsrv_resource_agents
Expand Down
3 changes: 3 additions & 0 deletions checks/802D5D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- resource_managed
- mixed_fs_types
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
3 changes: 3 additions & 0 deletions checks/805CA4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- simple_mount
- mixed_fs_types
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
3 changes: 3 additions & 0 deletions checks/83952D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- simple_mount
- mixed_fs_types
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
3 changes: 3 additions & 0 deletions checks/8D5080.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- resource_managed
- mixed_fs_types
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
1 change: 1 addition & 0 deletions checks/8E6110.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ remediation: |
```
## Reference
- https://documentation.suse.com/sbp/sap-15/html/SAP-nw740-sle15-setupguide/index.html#id-disabling-systemd-services-of-the-ascs-and-the-ers-sap-instance
- https://documentation.suse.com/sbp/sap-15/single-html/SAP-S4HA10-setupguide-simplemount-sle15/index.html#id-disabling-systemd-services-of-the-ascs-and-the-ers-sap-instance
metadata:
target_type: cluster
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions checks/AFDA1E.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
ensa_version:
- ensa2
- mixed_versions
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
9 changes: 7 additions & 2 deletions checks/B089BE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ group: SBD
description: |
SBD watchdog timeout is set to the recommended value
remediation: |
## Remediation
Make sure you configure your SBD Watchdog Timeout to `the recommended value` seconds as recommended on the best practices.
## Abstract
Configure the SBD watchdog to use the recommended value.
This check is only applicable when disk-based SBD is configured.
The SBD is not used in GCP or AWS environments.
## Remediation
Make sure you configure your SBD Watchdog Timeout to `the recommended value` seconds as recommended on the best practices.
## References
Azure:
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions checks/C835E0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
ensa_version:
- ensa1
- mixed_versions
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
3 changes: 3 additions & 0 deletions checks/CCEF3B.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- resource_managed
- mixed_fs_types
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
4 changes: 2 additions & 2 deletions checks/DA114A.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ id: "DA114A"
name: Corosync rings
group: Corosync
description: |
Corosync has at least 2 rings configured
Corosync has the minimum number of recommended rings configured
remediation: |
## Abstract
It is strongly recommended to add a second ring to the corosync communication.
The general recommendation is to add a second ring for the corosync communication but some platforms are good with only one.
## References
Azure:
Expand Down
3 changes: 3 additions & 0 deletions checks/DAD58C.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
filesystem_type:
- simple_mount
- mixed_fs_types
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
3 changes: 3 additions & 0 deletions checks/F0337F.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
ensa_version:
- ensa2
- mixed_versions
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
3 changes: 3 additions & 0 deletions checks/F55857.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
ensa_version:
- ensa2
- mixed_versions
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
3 changes: 3 additions & 0 deletions checks/F6CFDB.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
ensa_version:
- ensa1
- mixed_versions
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down
3 changes: 3 additions & 0 deletions checks/F98557.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ remediation: |
metadata:
target_type: cluster
cluster_type: ascs_ers
ensa_version:
- ensa1
- mixed_versions
facts:
- name: cluster_sids
gatherer: ascsers_cluster@v1
Expand Down

0 comments on commit be22dd0

Please sign in to comment.