fix: Tier2 backup status now detects drives removed from storage (not just disconnected)
Previously, removing a storage drive from the controller only marked it as disconnected if the StoragePath entry still existed with Disconnected:true. Drives removed entirely from storage_paths were invisible to the check, causing Tier2 backup UI to show green "Sikeres" and scheduler to attempt backups to a no-longer-managed destination. New IsStoragePathKnown() method covers both cases. UI shows yellow "Cél meghajtó leválasztva" and scheduler skips silently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -5,9 +5,11 @@
|
||||
#### Fixed
|
||||
- **system/mounts_linux.go**: `IsUSBDevice()` and `diskModel()` now strip findmnt bind-mount suffix (`[/subdir]`) before parsing device path — fixes USB badge and disk model not showing for drives mounted via the attach wizard
|
||||
- **backup/crossdrive.go**: Disconnected source/destination drives now silently skip with WARN log instead of returning error — prevents noisy error aggregation in `RunAllScheduled()` and false "failed" counts
|
||||
- **web/handlers.go + backup/crossdrive.go**: Tier2 destination check now also covers drives **removed** from storage (not just marked disconnected) — `IsStoragePathKnown()` detects when destination path is no longer in any registered storage, UI shows yellow "Cél meghajtó leválasztva" and scheduler skips silently
|
||||
|
||||
#### Added
|
||||
- **web/handlers.go**: New `Tier2DestDisconnected` field on `AppBackupRow` — detects when a Tier2 backup destination drive is disconnected, sets yellow status dot ("2. mentés szünetel") instead of red
|
||||
- **settings/settings.go**: New `IsStoragePathKnown(path)` method — returns whether a path belongs to any registered storage (connected, disconnected, or decommissioned); paths removed entirely return false
|
||||
- **web/handlers.go**: New `Tier2DestDisconnected` field on `AppBackupRow` — detects when a Tier2 backup destination drive is disconnected or removed, sets yellow status dot ("2. mentés szünetel") instead of red
|
||||
- **web/templates/backups.html**: New template branch for disconnected Tier2 destinations — shows "Cél meghajtó leválasztva" warning badge with grayed-out info, hides "Futtatás most" button
|
||||
|
||||
### v0.32.4 — Controller telemetry: include controller in hub app telemetry (2026-02-27)
|
||||
|
||||
Reference in New Issue
Block a user