After a failed attempt to create disks when creating or moving an instance, ganeti cleans up, however crossly overapproximating by cleaning up all disks (on the target node in case of a move) even those not created by this command. This removal of previously existing files can potentially lead to data loss. This change restricts cleanup to the disks created in a partially failed attempt.
Klaus Aehlig (2): Make _CreateDisk clean up partially created disks in case of failure Do not _RemoveDisks after failed _CreateDisks lib/cmdlib.py | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) -- 1.8.1.3
