[Libvirt-cim] [PATCH] [TEST] Update ResourcePool.01&02 for LXC support

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Jun 4 23:01:31 UTC 2008


yunguol at cn.ibm.com wrote:
> # HG changeset patch
> # User Guolian Yun <yunguol at cn.ibm.com>
> # Date 1212562914 -28800
> # Node ID ed86d8901057e45ff9a2173da0232746626bff0c
> # Parent  9b2e8889d7937c66e73968e53ec31bf93f535224
> [TEST] Update ResourcePool.01&02 for LXC support
> 
> Signed-off-by: Guolian Yun <yunguol at cn.ibm.com>
> 
> diff -r 9b2e8889d793 -r ed86d8901057 suites/libvirt-cim/cimtest/ResourcePool/01_enum.py

>      
> -    try:
> -        diskpool = enumerate(ip, dp_cn, key_list, virt)
> -    except Exception:
> -        logger.error(Globals.CIM_ERROR_ENUMERATE % dp_cn)
> -        return FAIL
> -    status = verify_fields(pool_list, diskpool, get_typed_class(virt, dp_cn))
> +    if virt == 'LXC':

Should this be:

if virt != 'LXC'

We don't have proper storage pool support for containers yet.

> +        try:
> +            diskpool = enumerate(ip, dp_cn, key_list, virt)
> +        except Exception:
> +            logger.error(Globals.CIM_ERROR_ENUMERATE % dp_cn)
> +            return FAIL
> +        status = verify_fields(pool_list, diskpool, get_typed_class(virt, dp_cn))


-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list