Revision d52ea991 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
3352 | 3352 |
|
3353 | 3353 |
# 2nd pass, do only the primary node |
3354 | 3354 |
for inst_disk in instance.disks: |
3355 |
dev_path = None |
|
3356 |
|
|
3355 | 3357 |
for node, node_disk in inst_disk.ComputeNodeTree(instance.primary_node): |
3356 | 3358 |
if node != instance.primary_node: |
3357 | 3359 |
continue |
... | ... | |
3366 | 3368 |
" (is_primary=True, pass=2): %s", |
3367 | 3369 |
inst_disk.iv_name, node, msg) |
3368 | 3370 |
disks_ok = False |
3369 |
device_info.append((instance.primary_node, inst_disk.iv_name, |
|
3370 |
result.payload)) |
|
3371 |
else: |
|
3372 |
dev_path = result.payload |
|
3373 |
|
|
3374 |
device_info.append((instance.primary_node, inst_disk.iv_name, dev_path)) |
|
3371 | 3375 |
|
3372 | 3376 |
# leave the disks configured for the primary node |
3373 | 3377 |
# this is a workaround that would be fixed better by |
Also available in: Unified diff