def get_dble_conn(context, default_db="schema1", node=None): if node is None: node = get_node(context.dbles, "dble-1") conn = DBUtil(node.ip, context.cfg_dble['client_user'], context.cfg_dble['client_password'], default_db, context.cfg_dble['client_port'], context) return conn
def install_dble_in_host(context, hostname): node = get_node(context.dbles, hostname) install_dble_in_node(context, node)
def step_impl(context, nodeName): node = get_node(context.dbles, nodeName) replace_config_in_node(context, node)
def unistall_dble_by_hostname(context, hostname): node = get_node(context.dbles, hostname) uninstall_dble_in_node(context, node)
def step_impl(context, hostname): node = get_node(context.dbles, hostname) restart_dble(context, node)
def check_restart_dble_failed(context, hostname): node = get_node(context.dbles, hostname) restart_dble(context, node, False)
def stop_dble_in_hostname(context, hostname): node = get_node(context.dbles, hostname) stop_dble_in_node(context, node)