From d8f0b7c197cb17423a94cca4ab6385fea534f715 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Tue, 12 Mar 2013 16:07:04 +0100 Subject: [PATCH] Make diskless instances externally mirrored This addresses Issue 237. Mirroring no disk is a no-op. As such we can treat them like mirrored instances, since the data they need (none) will be present on all nodes. This is definitely enough to failover or migrate instances with a manual target node. Further work might be needed for support in hail. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/constants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/constants.py b/lib/constants.py index ddeb6a7c1..8dbcae5cb 100644 --- a/lib/constants.py +++ b/lib/constants.py @@ -380,6 +380,7 @@ DTS_INT_MIRROR = compat.UniqueFrozenset([DT_DRBD8]) # the set of externally-mirrored disk templates (e.g. SAN, NAS) DTS_EXT_MIRROR = compat.UniqueFrozenset([ + DT_DISKLESS, # 'trivially' externally mirrored DT_SHARED_FILE, DT_BLOCK, DT_RBD, -- GitLab