def METHOD_NAME():
    """
    Check for unexpected error messages in libvirtd log.
    """
    logging.info('Checking errors in libvirtd log')
    accepted_error_patterns = [
        'Cannot access storage file',
        'Failed to autostart storage pool',
        'cannot open directory',
    ]
    if (not iptables_service and not firewalld_service and
            'virt_t' not in libvirt_context):
        logging.info("virt_t is not in libvirtd process context. "
                     "Failures for setting iptables rules will be ignored")
        # libvirtd process started without virt_t will failed to set
        # iptables rules which is expected here
        accepted_error_patterns.append(
            '/sbin/iptables .* unexpected exit status 1')
    logging.debug("Accepted errors are: %s", accepted_error_patterns)
    if errors:
        logging.debug("Found errors in libvirt log:")
        for line in errors:
            logging.debug(line)
        unexpected_errors = []
        for line in errors:
            if any([re.search(p, line)
                    for p in accepted_error_patterns]):
                logging.debug('Error "%s" is acceptable', line)
            else:
                unexpected_errors.append(line)
        if unexpected_errors:
            raise exceptions.TestFail(
                "Found unexpected errors in libvirt log:\n%s" %
                '\n'.join(unexpected_errors))