Revision 107711b0 lib/cmdlib.py

b/lib/cmdlib.py
510 510

  
511 511
    if hostname.ip.startswith("127."):
512 512
      raise errors.OpPrereqError("This host's IP resolves to the private"
513
                                 " range (%s). Please fix DNS or /etc/hosts." %
514
                                 (hostname.ip,))
513
                                 " range (%s). Please fix DNS or %s." %
514
                                 (hostname.ip, constants.ETC_HOSTS))
515 515

  
516 516
    self.clustername = clustername = utils.HostInfo(self.op.cluster_name)
517 517

  
......
1608 1608
      dist_nodes.remove(myself.name)
1609 1609

  
1610 1610
    logger.Debug("Copying hosts and known_hosts to all nodes")
1611
    for fname in ("/etc/hosts", constants.SSH_KNOWN_HOSTS_FILE):
1611
    for fname in (constants.ETC_HOSTS, constants.SSH_KNOWN_HOSTS_FILE):
1612 1612
      result = rpc.call_upload_file(dist_nodes, fname)
1613 1613
      for to_node in dist_nodes:
1614 1614
        if not result[to_node]:

Also available in: Unified diff