Revision 320a5dae

b/lib/cmdlib.py
8072 8072
    # check if failover must be forced instead of migration
8073 8073
    if (not self.cleanup and not self.failover and
8074 8074
        i_be[constants.BE_ALWAYS_FAILOVER]):
8075
      if self.fallback:
8076
        self.lu.LogInfo("Instance configured to always failover; fallback"
8077
                        " to failover")
8078
        self.failover = True
8079
      else:
8080
        raise errors.OpPrereqError("This instance has been configured to"
8081
                                   " always failover, please allow failover",
8082
                                   errors.ECODE_STATE)
8075
      self.lu.LogInfo("Instance configured to always failover; fallback"
8076
                      " to failover")
8077
      self.failover = True
8083 8078

  
8084 8079
    # check bridge existance
8085 8080
    _CheckInstanceBridgesExist(self.lu, instance, node=target_node)
b/man/gnt-instance.rst
1547 1547
instance's runtime before migrating it (eg. ballooning an instance
1548 1548
down because the target node doesn't have enough available memory).
1549 1549

  
1550
If an instance has the backend parameter ``always\_failover`` set to
1551
true, then the migration is automatically converted into a failover.
1552

  
1550 1553
See **ganeti(7)** for a description of ``--submit`` and other common
1551 1554
options.
1552 1555

  
b/qa/qa_instance.py
236 236
                  (constants.BE_ALWAYS_FAILOVER, constants.VALUE_TRUE)),
237 237
                 instance["name"]])
238 238

  
239
  AssertCommand(cmd, fail=True)
239
  AssertCommand(cmd)
240 240
  qa_utils.RunInstanceCheck(instance, True)
241
  AssertCommand(["gnt-instance", "migrate", "--force", "--allow-failover",
242
                 instance["name"]])
241
  # TODO: Verify that a failover has been done instead of a migration
243 242

  
244 243
  # TODO: Verify whether the default value is restored here (not hardcoded)
245 244
  AssertCommand(["gnt-instance", "modify", "-B",

Also available in: Unified diff