def METHOD_NAME(nodes, roles=[]):
    """Validate containers running on nodes.
    Args:
        nodes (Ceph): list of Ceph objects
        roles (list|str): ceph object role
    """
    if isinstance(roles, str):
        roles = [str(roles)]
    for node in nodes:
        if node.role not in roles:
            continue
        _ctrs, _ = get_running_containers(sudo=True, node=node, expr="name=ceph-*")
        if _ctrs:
            raise CephadmOpsExecutionError(
                f"Failed to clean ceph containers on node '{node.ip_address}' -\n{_ctrs}"
            )
        log.info(f"Ceph containers are cleaned as expected on node '{node.ip_address}'")