def get_host_fsids(node_metadata):
    """
    Return all the cluster FSIDs found for each socket in a host
    """
    all_fsids = []
    for socket_metadata in node_metadata['ceph']['sockets'].values():
        config = socket_metadata.get('config', {})
        if not config:
            continue
        fsid = config.get('fsid')
        if not fsid:
            continue
        all_fsids.append(fsid)
    return all_fsids
