Skip to content

Conversation

@devanshjainms
Copy link
Contributor

@devanshjainms devanshjainms commented Nov 24, 2025

Description

This pull request introduces several improvements and updates to the HA cluster validation and configuration management, particularly for SAP HANA and SCS roles. The main focus is on enhancing cluster configuration snapshotting, improving parameter validation messaging, updating constants for resource and operation defaults, and extending support for new resource types.

Cluster configuration snapshotting and reporting:

  • Added tasks in both ha_db_hana and ha_scs roles to capture a cluster configuration snapshot using the appropriate command for the OS, and include this snapshot in the test case report for improved diagnostics. (src/roles/ha_db_hana/tasks/ha-config.yml [1] [2]; src/roles/ha_scs/tasks/ha-config.yml [3] [4]; src/vars/input-api.yaml [5]

Parameter validation and messaging improvements:

  • Enhanced the validate_from_constants method to provide more detailed and user-friendly error messages, including specific failed parameter names and categories, and clearer status messages for warnings and successes. (src/module_utils/get_pcmk_properties.py src/module_utils/get_pcmk_properties.pyR564-L577)

Resource and operation defaults updates:

Resource and validation support extensions:

Validation argument updates:

Problem Statement

Solution Details

  • Implementation changes
  • Configuration updates
  • Documentation updates

Test Cases

  • Unit tests added/updated
  • Manual Testing done

Checklist

  • Code follows project style guidelines
  • Documentation has been updated
  • Tests are passing
  • PR title follows conventional commit format
  • Breaking changes are clearly marked

Dependencies

  • Depends on: #issue_number

Screenshots/Logs

Additional Notes

@devanshjainms devanshjainms requested a review from a team as a code owner November 24, 2025 02:12
Copilot finished reviewing on behalf of devanshjainms November 24, 2025 02:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request enhances HA cluster validation and configuration management for SAP HANA and SCS deployments on Azure. The changes focus on improving diagnostic capabilities, refining parameter validation messaging, updating cluster resource defaults, and extending support for filesystem resources.

Key Changes

  • Cluster configuration snapshotting: Added automated capture of cluster configuration snapshots using OS-specific commands (crm config show for SUSE, pcs config show for REDHAT) to include in test case reports for improved troubleshooting
  • Enhanced validation messaging: Improved error messages in parameter validation to include specific failed parameter names with their categories for better operator diagnostics
  • Resource and operation defaults updates: Updated filesystem resource operation defaults for both SUSE and REDHAT, changed HANA migration-threshold to required, corrected REDHAT ChkSrv provider configuration, and added have-watchdog parameter

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/vars/input-api.yaml Added ha_cluster_config_dump command definition for both SUSE and REDHAT
src/roles/ha_scs/tasks/ha-config.yml Implemented cluster configuration snapshot capture and included it in telemetry data
src/roles/ha_db_hana/tasks/ha-config.yml Implemented cluster configuration snapshot capture with trimmed output and included it in telemetry data
src/roles/ha_scs/tasks/files/constants.yaml Added filesystem resource operation defaults for both SUSE (60s stop timeout) and REDHAT (120s stop timeout)
src/roles/ha_db_hana/tasks/files/constants.yaml Changed migration-threshold to required, added have-watchdog parameter, and updated ChkSrv provider configuration (execution_order: 2, action_on_host: kill)
src/roles/configuration_checks/tasks/files/hana.yml Extended valid stonith-action list to include "stonith-action=reboot (default)" format
src/modules/get_pcmk_properties_scs.py Added filesystem resource type to RESOURCE_CATEGORIES for validation support
src/module_utils/get_pcmk_properties.py Enhanced validate_from_constants to provide detailed error messages with parameter names and categories, plus improved success/warning messaging

@hdamecharla hdamecharla self-assigned this Nov 26, 2025
@hdamecharla hdamecharla self-requested a review November 26, 2025 02:55
dhruvmicrosoft
dhruvmicrosoft previously approved these changes Dec 2, 2025
Copy link
Contributor

@dhruvmicrosoft dhruvmicrosoft left a comment

Choose a reason for hiding this comment

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

LG!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants