Skip to content

Releases: ha-lizard/iscsi-ha

v2.5.0-rc1

26 Dec 23:10
f4113aa

Choose a tag to compare

v2.5.0-rc1 Pre-release
Pre-release

Release Notes for Version v2.5.0-rc1

New Features:

  • Global Variable Refactoring:
    • Made local_ip_list a global variable and enhanced the validate_drbd_resources_loaded function to improve resource validation across all DRBD nodes.

Enhancements:

  • Script Refactoring:

    • Refactored email_alert.py to maintain compatibility with Python 2.7, ensuring support for older environments.
    • Optimized the watchdog initialization process to better handle PID changes, enabling more reliable service restarts.
    • Refactored variable handling to work seamlessly with arrays, improving script robustness and flexibility.
  • Background Execution Support:

    • Rolled back the check_process_status function in the HA-Lizard watchdog to run in the background, ensuring non-blocking operations and improved system stability.

Bug Fixes:

  • File Path Corrections:

    • Fixed issues with source file paths to ensure proper loading and execution of scripts.
  • DRBD Resource Validation:

    • Rolled back incorrect validation logic for DRBD resources, which was preventing nodes from becoming primary under certain conditions. The updated logic ensures accurate validation and reliable resource management.
  • Process Management:

    • Enhanced the watchdog process to correctly handle PID changes, reducing the likelihood of initialization errors.
  • Variable Corrections:

    • Fixed issues with variable handling, especially for arrays, ensuring accurate data processing and improved runtime behavior.

Full Changelog:

  • Fix source file paths
  • Refactor email_alert.py for Python 2.7 compatibility
  • Rollback check_process_status to run in background
  • Fix local_ip_list to be GLOBAL and validate_drbd_resources_loaded
  • Rollback incorrect DRBD resources validation
  • Refactor watchdog process initialization
  • Refactor variables for array compatibility

Full Changelog: v2.5.0-rc...v2.5.0-rc1

v2.3.1

20 Dec 17:12
eb1e154

Choose a tag to compare

What's Changed

  • Add roadmap for the project. by @vhsantos in #3
  • Fix permissions of init scripts to 755 for correct execution by @vhsantos in #4

Full Changelog: v2.3.0...v2.3.1

v2.5.0-rc

17 Dec 11:38
12eb8c8

Choose a tag to compare

v2.5.0-rc Pre-release
Pre-release

Release Notes for Version v2.5.0-rc

New Features:

  • Enhanced Package Structure:

    • Refactored and updated iscsi-ha.spec to improve package organization and dependencies.
    • Introduced architecture-specific builds, changing from noarch to x86_64.
    • Improved compatibility checks for XenServer and XCP-ng during pre-installation.
    • Defined a new documentation directory macro to better manage doc files.
  • New System Configuration:

    • Added an override configuration for the TGTD system for better customization and control.

Enhancements:

  • Directory Structure Improvements:

    • Moved documentation files to the /usr/share/doc directory for consistency.
    • Relocated legacy install/uninstall scripts to the /usr/libexec directory.
    • Transferred various configuration files to the /etc directory, aligning with standard practices.
    • Updated paths for runtime state files and system initialization scripts to /usr/libexec and /etc/init.d.
  • Script Refactoring:

    • Refactored numerous scripts for improved readability, maintainability, and error handling:
      • iscsi-cfg: Enhanced readability and maintainability by aligning with standard naming conventions, ensuring consistent quoting and formatting, and consolidating redundant logic.
      • post_version.py: Resolved functionality issues and optimized for better modularity.
      • timeout, status, log, drbd-split-brain-alert, config_manager, become_primary, fw_init, email_alert, and replug_pbd scripts: Addressed ShellCheck issues, improved modularity, and enhanced error reporting.
    • Ensured consistent formatting in all scripts, including iscsi-ha.sh and iscsi-mon, with resolved ShellCheck warnings.

ShellCheck Fixes:

A wide range of ShellCheck issues were resolved across the codebase, addressing common scripting pitfalls:

  • Fixed quoting issues to prevent word splitting and glob expansion.
  • Replaced legacy backticks with modern $(...) command substitution.
  • Transitioned from [ p -a q ] and [ p -o q ] to well-defined constructs like [ p ] && [ q ].
  • Replaced inefficient constructs like cat file | cmd with cmd < file.
  • Improved handling of arrays, loops, and exit codes to align with best practices.
  • Utilized safer alternatives such as pgrep, find, and grep -c for better performance and robustness.
  • Resolved variable handling and formatting issues in commands like printf and tr.

Bug Fixes:

  • Improved Script Compatibility:

    • Fixed ShellCheck issues across all major scripts, including deprecated syntax, missing quotes, and redundant commands.
    • Enhanced script logic to handle edge cases and improve error detection.
  • Resolved Packaging Issues:

    • Updated the %files section of the RPM spec to correctly manage configuration, documentation, and application-specific files.
    • Fixed state and log directory handling with %ghost files in the RPM spec.
  • Improved Initialization and Service Management:

    • Refined initialization scripts for better compatibility with service management tools.
    • Adjusted service installation logic to disable unused services (e.g., scsi-target and drbd) during package installation.

Documentation Updates:

  • Man Pages:

    • Created a Linux man page for the iscsi-cfg script to improve user accessibility and guidance.
  • Documentation Files:

    • Updated documentation paths and filenames for better organization and alignment with best practices.

Miscellaneous:

  • Code Cleanup:

    • Removed unused scripts, such as check_disk_smart_status, to streamline the codebase.
    • Synced development support files with the ha-lizard project for consistency.
  • Configuration Improvements:

    • Added pre-commit configurations and auxiliary files to enhance code formatting and enforce coding standards.
    • Introduced a devbox configuration file for streamlined development environments.

Full Changelog: v2.3.0...v2.5.0-rc

v2.3.0

04 Dec 15:53
4910177

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/ha-lizard/iscsi-ha/commits/v2.3.0