Revision 11dc66f3 lib/cmdlib.py
b/lib/cmdlib.py | ||
---|---|---|
7547 | 7547 |
self.lu.LogInfo("Not checking memory on the secondary node as" |
7548 | 7548 |
" instance will not be started") |
7549 | 7549 |
|
7550 |
# check if failover must be forced instead of migration |
|
7551 |
if (not self.cleanup and not self.failover and |
|
7552 |
i_be[constants.BE_ALWAYS_FAILOVER]): |
|
7553 |
if self.fallback: |
|
7554 |
self.lu.LogInfo("Instance configured to always failover; fallback" |
|
7555 |
" to failover") |
|
7556 |
self.failover = True |
|
7557 |
else: |
|
7558 |
raise errors.OpPrereqError("This instance has been configured to" |
|
7559 |
" always failover, please allow failover", |
|
7560 |
errors.ECODE_STATE) |
|
7561 |
|
|
7550 | 7562 |
# check bridge existance |
7551 | 7563 |
_CheckInstanceBridgesExist(self.lu, instance, node=target_node) |
7552 | 7564 |
|
Also available in: Unified diff