예제 #1
0
def restart_cfgm_db_node(*args):
    """Restarts the contrail config db services in once cfgm node. USAGE:fab restart_cfgm_node:[email protected],[email protected]"""
    for host_string in args:
        with settings(host_string=host_string):
            if manage_config_db():
                sudo('service contrail-database restart')
            sudo('service zookeeper restart')
def restart_cfgm_db_node(*args):
    """Restarts the contrail config db services in once cfgm node. USAGE:fab restart_cfgm_node:[email protected],[email protected]"""
    for host_string in args:
        with  settings(host_string=host_string):
            if manage_config_db():
                sudo('service contrail-database restart')
            sudo('service zookeeper restart')
예제 #3
0
def verify_cfgm():
    verify_service("zookeeper")
    if manage_config_db():
        verify_service("contrail-database", check_return_code=True)
    if not is_xenial_or_above():
        verify_service("supervisor-config")
    verify_service("contrail-api")
    verify_service("contrail-schema")
    if get_orchestrator is 'openstack':
       verify_service("contrail-svc-monitor")
예제 #4
0
def verify_cfgm():
    verify_service("zookeeper")
    if manage_config_db():
        verify_service("contrail-database", initd_service=True)
    if not is_xenial_or_above():
        verify_service("supervisor-config")
    verify_service("contrail-api")
    verify_service("contrail-discovery")
    verify_service("contrail-schema")
    if get_orchestrator is "openstack":
        verify_service("contrail-svc-monitor")
예제 #5
0
def stop_cfgm_db_node(*args):
    for host_string in args:
        with settings(host_string=host_string, warn_only=True):
            if manage_config_db():
                sudo('service contrail-database stop')
            sudo('service zookeeper stop')
def stop_cfgm_db_node(*args):
    for host_string in args:
        with settings(host_string=host_string, warn_only=True):
            if manage_config_db():
                sudo('service contrail-database stop')
            sudo('service zookeeper stop')