Beispiel #1
0
def detect_de_node(parser):
    """
	detect remove node or not
	:param parser: config
	:return: True/raise exception
	"""
    success = HAagent_info.is_node_exists("test_c", "test_n", parser)

    if not success:
        return True
    raise TA_error.Assert_Error("de node fail")
Beispiel #2
0
def detect_non_primary_de_node(parser):
    """
	detect remove node or not
	:param parser: config
	:return: True/raise exception
	"""
    success = HAagent_info.is_node_exists(parser["Cluster_name"],
                                          parser["PrimaryOS_name"], parser)

    if success:
        return True
    raise TA_error.Assert_Error("non primary de node fail")
Beispiel #3
0
def detect_non_primary_node_add_node(parser):
    """
	detect use non-primary node add node success or not
	:param parser: config
	:return: True/raise exception
	"""
    success = HAagent_info.is_node_exists(parser["Cluster_name"],
                                          parser["SlaveOS_name"], parser)

    if not success:
        return True
    raise TA_error.Assert_Error("non primary node add node fail")