Fix log messages for vgpu creation.

This commit is contained in:
Sanjay Tripathi 2014-04-26 17:26:37 +05:30
parent a4cb8d1146
commit 5a49bb2db7
1 changed files with 5 additions and 0 deletions

View File

@ -134,6 +134,11 @@ public class XenServer620SP1Resource extends XenServer620Resource {
@Override
protected void createVGPU(Connection conn, StartCommand cmd, VM vm, GPUDeviceTO gpuDevice) throws XenAPIException, XmlRpcException {
if (s_logger.isDebugEnabled()) {
s_logger.debug("Creating VGPU of VGPU type [ " + gpuDevice.getVgpuType() + " ] in gpu group" + gpuDevice.getGpuGroup()
+ " for VM " + cmd.getVirtualMachine().getName());
}
Set<GPUGroup> groups = GPUGroup.getByNameLabel(conn, gpuDevice.getGpuGroup());
assert groups.size() == 1 : "Should only have 1 group but found " + groups.size();
GPUGroup gpuGroup = groups.iterator().next();