Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CA-386552 XSI-1534 Failed to disable pool HA after missing HA statefile
Backport 5a639b1 The issue arises because: * xapi_ha.ml, function disable_internal * When a static VDI is removed from an SR (manually by deleting it from an NFS server, for example) * As the SR is re-scanned, it is also removed from the xapi database * But the re-scan does not remove it from the list of static VDIs in /etc/xensource/static-vidis * when the function is called, it obtains the list of static VDIs (the UUIds) * and looks them up in the database - which fails * static VDIs references are further listed in Pool.ha_statefile and can be stale. This patch hardens the code path to avoid failure when the statefile VDI has been removed manually. Signed-off-by: Christian Lindig <[email protected]>
- Loading branch information