Revision d908ba61 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
6374 | 6374 |
False, idx) |
6375 | 6375 |
msg = result.fail_msg |
6376 | 6376 |
if msg: |
6377 |
is_offline_secondary = (node in instance.secondary_nodes and |
|
6378 |
result.offline) |
|
6377 | 6379 |
lu.proc.LogWarning("Could not prepare block device %s on node %s" |
6378 | 6380 |
" (is_primary=False, pass=1): %s", |
6379 | 6381 |
inst_disk.iv_name, node, msg) |
6380 |
if not ignore_secondaries:
|
|
6382 |
if not (ignore_secondaries or is_offline_secondary):
|
|
6381 | 6383 |
disks_ok = False |
6382 | 6384 |
|
6383 | 6385 |
# FIXME: race condition on drbd migration to primary |
Also available in: Unified diff