Revision c2fc8250 lib/cmdlib.py

b/lib/cmdlib.py
2318 2318
    if new_node.secondary_ip != new_node.primary_ip:
2319 2319
      result = self.rpc.call_node_has_ip_address(new_node.name,
2320 2320
                                                 new_node.secondary_ip)
2321
      if result.failed or not result.data:
2321
      msg = result.RemoteFailMsg()
2322
      if msg:
2323
        raise errors.OpPrereqError("Failure checking secondary ip"
2324
                                   " on node %s: %s" % (new_node.name, msg))
2325
      if not result.payload:
2322 2326
        raise errors.OpExecError("Node claims it doesn't have the secondary ip"
2323 2327
                                 " you gave (%s). Please fix and re-run this"
2324 2328
                                 " command." % new_node.secondary_ip)

Also available in: Unified diff