Revision d27776f0

b/lib/cmdlib.py
3536 3536
    target_node = secondary_nodes[0]
3537 3537
    _CheckNodeOnline(self, target_node)
3538 3538
    _CheckNodeNotDrained(self, target_node)
3539
    # check memory requirements on the secondary node
3540
    _CheckNodeFreeMemory(self, target_node, "failing over instance %s" %
3541
                         instance.name, bep[constants.BE_MEMORY],
3542
                         instance.hypervisor)
3539

  
3540
    if instance.admin_up:
3541
      # check memory requirements on the secondary node
3542
      _CheckNodeFreeMemory(self, target_node, "failing over instance %s" %
3543
                           instance.name, bep[constants.BE_MEMORY],
3544
                           instance.hypervisor)
3545
    else:
3546
      self.LogInfo("Not checking memory on the secondary node as"
3547
                   " instance will not be started")
3543 3548

  
3544 3549
    # check bridge existance
3545 3550
    brlist = [nic.bridge for nic in instance.nics]

Also available in: Unified diff