" range (%s). Please fix DNS or %s." %
(hostname.ip, constants.ETC_HOSTS))
" range (%s). Please fix DNS or %s." %
(hostname.ip, constants.ETC_HOSTS))
raise errors.OpPrereqError("Inconsistency: this host's name resolves"
" to %s,\nbut this ip address does not"
" belong to this host."
raise errors.OpPrereqError("Inconsistency: this host's name resolves"
" to %s,\nbut this ip address does not"
" belong to this host."
if not utils.IsValidIP(secondary_ip):
raise errors.OpPrereqError("Invalid secondary ip given")
if (secondary_ip != hostname.ip and
if not utils.IsValidIP(secondary_ip):
raise errors.OpPrereqError("Invalid secondary ip given")
if (secondary_ip != hostname.ip and
raise errors.OpPrereqError("You gave %s as secondary IP,"
" but it does not belong to this host." %
secondary_ip)
raise errors.OpPrereqError("You gave %s as secondary IP,"
" but it does not belong to this host." %
secondary_ip)
def InitConfig(version, cluster_config, master_node_config,
def InitConfig(version, cluster_config, master_node_config,
logging.info("setting master to %s, old master: %s", new_master, old_master)
logging.info("setting master to %s, old master: %s", new_master, old_master)
logging.error("could disable the master role on the old master"
" %s, please disable manually", old_master)
logging.error("could disable the master role on the old master"
" %s, please disable manually", old_master)
- if not rpc.call_upload_file(cfg.GetNodeList(),
- constants.CLUSTER_CONF_FILE):
+ if not RpcRunner.call_upload_file(cfg.GetNodeList(),
+ constants.CLUSTER_CONF_FILE):
logging.error("could not distribute the new simple store master file"
" to the other nodes, please check.")
logging.error("could not distribute the new simple store master file"
" to the other nodes, please check.")
logging.error("could not start the master role on the new master"
" %s, please check", new_master)
rcode = 1
logging.error("could not start the master role on the new master"
" %s, please check", new_master)
rcode = 1