Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set backing image state to failed in case of size or virtualSize mism…
…atch Doing this means if there's somehow a mismatch between backing image size or virtual size reported by backing image manager vs. what's currently in the backing image resource's status, the error will be made visible in status.diskFileStatusMap.$DISKUUID.message, i.e. the user should be able to can see the problem by running `kubectl -n longhorn-system get lhbi -o yaml`. This is the same logic as is already used in updateStatusWithFileInfo(). The one thing I'm struggling with here is how to inject such a failure into a running system in order to prove that this change works correctly. Signed-off-by: Tim Serong <[email protected]> (cherry picked from commit 6df0510)
- Loading branch information