def product_from_name(name):
    """
    Return a product name from this tag name or target name.

    :param name: eg. "ceph-3.0-rhel-7"
    :returns: eg. "ceph"
    """
    if name.startswith('guest-'):
        name = name[6:]
    parts = name.split('-', 1)
    return parts[0]
