[Libvirt-cim] [PATCH 3 of 3] Adding netfs diskpool creation to RPCS/08_CreateDiskResourcePool.py tc
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Tue Jun 16 22:45:13 UTC 2009
Deepti B. Kalakeri wrote:
> # HG changeset patch
> # User Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>
> # Date 1245155631 25200
> # Node ID 775f81388994fa3ddb72b2740389b1eeec8c0b13
> # Parent 4eb38964b6e6bdd757904d51b83ff115b02dd29a
> Adding netfs diskpool creation to RPCS/08_CreateDiskResourcePool.py tc..
>
> Tested on F10 with KVM and current sources.
You'll want to make sure you branch the test. Otherwise, it fails with
the following on older versions of libvirt:
ERROR - Exception in create_pool()
ERROR - Exception details: (1, u'CIM_ERR_FAILED: Settings Error:
Storage pool creation not supported in this version of libvirt')
ERROR - Exception details: global name 'Excpetion' is not defined
ERROR - Please delete tmp6NHsxD /tmp/tmphzHNuK if present on localhost
InvokeMethod(CreateChildResourcePool): CIM_ERR_FAILED: Settings Error:
Storage pool creation not supported in this version of libvirt
> diff -r 4eb38964b6e6 -r 775f81388994 suites/libvirt-cim/cimtest/ResourcePoolConfigurationService/08_CreateDiskResourcePool.py
> @do_main(platform_sup)
> def main():
> options = main.options
> server = options.ip
> virt = options.virt
> - pool_attr = { "Path" : "/tmp" }
>
> # For now the test case support only the creation of
> - # dir type disk pool, later change to fs and netfs etc
> + # dir type disk pool, netfs later change to fs and disk pooltypes etc
> for key, value in dp_types.iteritems():
You'll want to make sure the version of libvirt your testing with
supports the given pool type. This test should be skipped entirely if
the version of libvirt doesn't support storage pool creation at all.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com
More information about the Libvirt-cim
mailing list