Ejemplo n.º 1
0
def monitor(name):
    """Request for getting monitor of particular name"""
    response = check_fsid('cluster/', '/mon/' + name, parse_mons)
    return response
Ejemplo n.º 2
0
def pool(pool_id):
    """Request for pools monitor of particular id"""
    response = check_fsid('cluster/', '/pool/' + str(pool_id), parse_pools)
    return response
Ejemplo n.º 3
0
def all_monitors():
    """Request for getting all monitors"""
    response = check_fsid('cluster/', '/mon', parse_mons)
    return response
Ejemplo n.º 4
0
def osd(osd_id):
    """Request for getting monitor of particular id"""
    response = check_fsid('cluster/', '/osd/'+osd_id, parse_osds)
    return response
Ejemplo n.º 5
0
def all_pools():
    """Request for getting all pools"""
    response = check_fsid('cluster/', '/pool', parse_pools)
    return response
Ejemplo n.º 6
0
def server(hostname):
    """Request for getting server of particular fqdn and fsid"""
    response = check_fsid('cluster/', '/server/' + hostname, parse_servers)
    return response
Ejemplo n.º 7
0
def all_osds():
    """Request for getting all osds"""
    response = check_fsid('cluster/', '/osd', parse_osds)
    return response
Ejemplo n.º 8
0
def pool(pool_id):
    """Request for pools monitor of particular id"""
    response = check_fsid('cluster/', '/pool/' + str(pool_id), parse_pools)
    return response
Ejemplo n.º 9
0
def all_servers_cluster():
    """Request for getting all servers in a cluster"""
    response = check_fsid('cluster/', '/server', parse_servers)
    return response
Ejemplo n.º 10
0
def all_pools():
    """Request for getting all pools"""
    response = check_fsid('cluster/', '/pool', parse_pools)
    return response
Ejemplo n.º 11
0
def server(hostname):
    """Request for getting server of particular fqdn and fsid"""
    response = check_fsid('cluster/', '/server/'+hostname, parse_servers)
    return response
Ejemplo n.º 12
0
def all_servers_cluster():
    """Request for getting all servers in a cluster"""
    response = check_fsid('cluster/', '/server', parse_servers)
    return response
Ejemplo n.º 13
0
def osd(osd_id):
    """Request for getting monitor of particular id"""
    response = check_fsid('cluster/', '/osd/' + osd_id, parse_osds)
    return response
Ejemplo n.º 14
0
def all_osds():
    """Request for getting all osds"""
    response = check_fsid('cluster/', '/osd', parse_osds)
    return response