cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh Battala <>
Subject RE: [Merge] Minimal Hyper-V Plugin
Date Mon, 02 Sep 2013 07:37:14 GMT
Hi Donal, 
One more issue is, currently local storage is discovered when host is added.
But when mgmt. server got restarted,  there is an exception happening while add/discovering
already existing local storage pool.

Root cause:
I had debugged and figured out the root cause,  CS not able to find the storage pool and tries
to created it but it fails to add to DB as the entry is already persisted.
The reason why CS not able to get the existing localstorage is , when executing the query
to get the storage pool, it's getting empty set . It's because of the storage path issue.
In the db the local storage path is stored as "C:\Users\Public\Documents\Hyper-V\Virtual+Hard+Disks",
 ('+' symbol in place of space)
In the db query its searching without "+" and with space which is causing the query to have
empty set and hence the issue.

I can fix the issue by removing the "+" when we are persisting the local storage pool from

WARN  [c.c.r.ResourceManagerImpl] (AgentTaskPool-14:ctx-ddbbf089) Unable to connect due to Unable to setup the local storage pool for Host[-1-Routing]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: duplicate uuid: 35aa91ba-c95b-3fc4-91df-9c95dc31b350-HypervResource
        ... 14 more

-----Original Message-----
From: Donal Lafferty [] 
Sent: Saturday, August 31, 2013 5:19 AM
Subject: [Merge] Minimal Hyper-V Plugin

A plugin for Hyper-V control is available for CloudStack.  The plugin implements basic VM
control;  however, its architecture allows additional functionality to be easily added.  Incorporating
the plugin in CloudStack will allow the community to participate in improving the features
available with Hyper-V.

The plugin uses a Director Connect Agent architecture described here:

This links provides details of third party libraries used by the plugin including their licenses.
 No source for these libraries is used, and the binaries are downloaded from their distributors
at build time.

No proprietary tools are required for the build.  For instance, C# compiled with Mono has
been tested.  Therefore, the plugin has been added to the default build and the default deployment.

The plugin includes unit and functional tests that can be triggered at build time.  See the
link above for details.

The Apache header is applied to source and where feasible to build config files.

The source is the

Finally, the review request is at


Integration test:  created zone with CIFS secondary storage, added Hyper-V host, registered
templates, create/stop/start/destroy VM.  Scripts for zone setup are available on request.

Functional & unit tests:  the Java versions are part of the build.  The C# versions were
run inside Visual Studio's Test Explorer.

View raw message