Skip to content

Backup alert status is overwritten by last module result, causing missed alerts #7554

Closed
NethServer/ns8-core
#913
@gsanchietti

Description

@gsanchietti

Steps to reproduce

  • Schedule a backup involving multiple modules (e.g., Samba and Traefik).
  • Cause a backup failure in one module (e.g., stop the Samba container so its backup fails).
  • Ensure at least one other module in the backup succeeds (e.g., Traefik).
  • Observe the backup status and alerting behavior.

Expected behavior

A backup failure in any module should trigger an alert and set the backup status to failure for the whole backup job.

Actual behavior

If any module's backup succeeds, the backup status is set to success, and no alert is raised, even if other modules failed. The status is determined by the last evaluated module in the loop, which is arbitrary.

Components

  • core 3.9.1

See also


Thanks to Nicola for reproducing the issue and providing a test environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions