cloudstack/plugins/backup
James Peru Mmbono 6ca6aa1c3f
Fix NPE in NASBackupProvider when no running KVM host is available (#12805)
* Fix NPE in NASBackupProvider when no running KVM host is available

ResourceManager.findOneRandomRunningHostByHypervisor() can return null
when no KVM host in the zone has status=Up (e.g. during management
server startup, brief agent disconnections, or host state transitions).

NASBackupProvider.syncBackupStorageStats() and deleteBackup() call
host.getId() without a null check, causing a NullPointerException that
crashes the entire BackupSyncTask background job every sync interval.

This adds null checks in both methods:
- syncBackupStorageStats: log a warning and return early
- deleteBackup: throw CloudRuntimeException with a descriptive message
2026-03-27 21:32:13 +05:30
..
dummy Updating pom.xml version numbers for release 4.22.1.0-SNAPSHOT 2025-11-05 16:07:07 +05:30
nas Fix NPE in NASBackupProvider when no running KVM host is available (#12805) 2026-03-27 21:32:13 +05:30
networker Merge branch '4.20' into 4.22 2026-02-19 13:19:14 +05:30
veeam Veeam: Use restore timeout as an interval as opposed to a counter (#11772) 2026-01-28 16:13:56 +02:00