Skip to content

Update Azure VM OS health checks and scripts#539

Merged
stewartshea merged 2 commits intorunwhen-contrib:mainfrom
stewartshea:updates/250804-01
Aug 6, 2025
Merged

Update Azure VM OS health checks and scripts#539
stewartshea merged 2 commits intorunwhen-contrib:mainfrom
stewartshea:updates/250804-01

Conversation

@stewartshea
Copy link
Copy Markdown
Contributor

  • Add new VM filtering options to include/exclude specific VMs based on naming patterns.
  • Implement robust error handling for VM connection issues, ensuring graceful failures and detailed logging.
  • Enhance disk, memory, and uptime check scripts to skip Windows VMs and provide clearer output for Linux VMs.
  • Update README.md to reflect new features and usage instructions, including environment variable configurations.
  • Remove deprecated files and update permissions for various scripts to ensure proper execution.

This update improves the overall functionality and usability of the Azure VM health check suite, enhancing monitoring capabilities and error reporting.

- Add new VM filtering options to include/exclude specific VMs based on naming patterns.
- Implement robust error handling for VM connection issues, ensuring graceful failures and detailed logging.
- Enhance disk, memory, and uptime check scripts to skip Windows VMs and provide clearer output for Linux VMs.
- Update README.md to reflect new features and usage instructions, including environment variable configurations.
- Remove deprecated files and update permissions for various scripts to ensure proper execution.

This update improves the overall functionality and usability of the Azure VM health check suite, enhancing monitoring capabilities and error reporting.
@stewartshea stewartshea requested a review from a team as a code owner August 6, 2025 04:05
… streamlining the project structure and eliminating deprecated components.
@stewartshea stewartshea merged commit b3e2265 into runwhen-contrib:main Aug 6, 2025
2 checks passed
Set Suite Variable
... ${env}
... {"VM_NAME":"${VM_NAME}", "AZ_RESOURCE_GROUP":"${AZ_RESOURCE_GROUP}", "DISK_THRESHOLD": "${DISK_THRESHOLD}", "UPTIME_THRESHOLD": "${UPTIME_THRESHOLD}", "MEMORY_THRESHOLD": "${MEMORY_THRESHOLD}", "MAX_PARALLEL_JOBS": "${MAX_PARALLEL_JOBS}", "TIMEOUT_SECONDS": "${TIMEOUT_SECONDS}", "AZURE_SUBSCRIPTION_ID":"${AZURE_RESOURCE_SUBSCRIPTION_ID}", "AZURE_SUBSCRIPTION_NAME":"${AZURE_SUBSCRIPTION_NAME}"}
... {"AZ_RESOURCE_GROUP":"${AZ_RESOURCE_GROUP}", "DISK_THRESHOLD": "${DISK_THRESHOLD}", "UPTIME_THRESHOLD": "${UPTIME_THRESHOLD}", "MEMORY_THRESHOLD": "${MEMORY_THRESHOLD}", "MAX_PARALLEL_JOBS": "${MAX_PARALLEL_JOBS}", "TIMEOUT_SECONDS": "${TIMEOUT_SECONDS}", "AZURE_SUBSCRIPTION_ID":"${AZURE_RESOURCE_SUBSCRIPTION_ID}", "AZURE_SUBSCRIPTION_NAME":"${AZURE_SUBSCRIPTION_NAME}"}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Runbook Fails to Pass VM Filtering Variables

The runbook.robot file fails to pass VM_INCLUDE_LIST and VM_OMIT_LIST environment variables to its shell scripts. Despite being imported and set as suite variables, they are omitted from the hardcoded env JSON string, preventing VM filtering from working in runbook tasks. This is inconsistent with sli.robot, which correctly includes these variables.

Fix in Cursor Fix in Web

Set To Dictionary ${base_env} VM_OMIT_LIST=${VM_OMIT_LIST}
END

Set Suite Variable ${env} ${base_env}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Environment Variable Type Mismatch Causes Failures

The env suite variable in sli.robot is now set as a Robot Framework dictionary instead of a JSON string. This change, resulting from using Create Dictionary and Set To Dictionary, creates an inconsistency with runbook.robot and RW.CLI.Run Cli, which expect env to be a JSON string for passing environment variables to shell commands. This type mismatch will cause runtime failures.

Fix in Cursor Fix in Web

@stewartshea stewartshea deleted the updates/250804-01 branch August 15, 2025 11:30
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.

1 participant