def check_pool_create_libvirt(conn, poolname, logger):
    """Check the result of create storage pool inside libvirt """
    pool_names = conn.listStoragePools()
    logger.info('poolnames is: %s' % pool_names)
    try:
        pool_names.index(poolname)
    except ValueError:
        logger.info('check_pool_create %s storage pool pass' % poolname)
        return False
    return True
