Revision 16abfbc2 daemons/ganeti-master

b/daemons/ganeti-master
106 106
  """Starts the master.
107 107

  
108 108
  """
109
  result = utils.RunCmd(["fping", "-q", master_ip])
110
  if not result.failed:
111
    r2 = utils.RunCmd(["fping", "-q", "-S127.0.0.1", master_ip])
112
    if not r2.failed:
109
  if utils.TcpPing(utils.HostInfo().name, master_ip,
110
                   constants.DEFAULT_NODED_PORT):
111
    if utils.TcpPing(constants.LOCALHOST_IP_ADDRESS, master_ip,
112
                     constants.DEFAULT_NODED_PORT):
113 113
      # we already have the ip:
114 114
      if debug:
115 115
        sys.stderr.write("Notice: already started.\n")

Also available in: Unified diff