Skip to content
Snippets Groups Projects
Commit c148e448 authored by Klaus Aehlig's avatar Klaus Aehlig Committed by Bernardo Dal Seno
Browse files

Introduce a constant for the copyable disk templates


This list contains the disk templates suitable for moving
an instance by copying the files. A requirement is that
they're not accessed externally or shared between nodes;
in particular, sharedfile is not suitable.

Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
Signed-off-by: default avatarBernardo Dal Seno <bdalseno@google.com>
Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
parent 79a304e1
No related branches found
No related tags found
No related merge requests found
......@@ -425,6 +425,14 @@ DTS_FILEBASED = compat.UniqueFrozenset([
DT_SHARED_FILE,
])
# the set of disk templates that can be moved by copying
# Note: a requirement is that they're not accessed externally or shared between
# nodes; in particular, sharedfile is not suitable.
DTS_COPYABLE = compat.UniqueFrozenset([
DT_FILE,
DT_PLAIN,
])
# the set of disk templates that are supported by exclusive_storage
DTS_EXCL_STORAGE = compat.UniqueFrozenset([DT_PLAIN])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment