Revision dfb0bc93
b/lib/cmdlib.py | ||
---|---|---|
7905 | 7905 |
# All touched nodes must be locked |
7906 | 7906 |
mylocks = self.owned_locks(locking.LEVEL_NODE) |
7907 | 7907 |
assert mylocks.issuperset(frozenset(instance.all_nodes)) |
7908 |
_CreateDisks(self, instance, to_skip=to_skip) |
|
7908 |
new_disks = _CreateDisks(self, instance, to_skip=to_skip) |
|
7909 |
|
|
7910 |
# TODO: Release node locks before wiping, or explain why it's not possible |
|
7911 |
if self.cfg.GetClusterInfo().prealloc_wipe_disks: |
|
7912 |
wipedisks = [(idx, disk, 0) |
|
7913 |
for (idx, disk) in enumerate(instance.disks) |
|
7914 |
if idx not in to_skip] |
|
7915 |
_WipeOrCleanupDisks(self, instance, disks=wipedisks, cleanup=new_disks) |
|
7909 | 7916 |
|
7910 | 7917 |
|
7911 | 7918 |
class LUInstanceRename(LogicalUnit): |
Also available in: Unified diff