Skip to content

Commit 5a49bb2

Browse files
Fix log messages for vgpu creation.
1 parent a4cb8d1 commit 5a49bb2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer620SP1Resource.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ protected HashMap<String, HashMap<String, VgpuTypesInfo>> getGPUGroupDetails(Con
134134

135135
@Override
136136
protected void createVGPU(Connection conn, StartCommand cmd, VM vm, GPUDeviceTO gpuDevice) throws XenAPIException, XmlRpcException {
137+
if (s_logger.isDebugEnabled()) {
138+
s_logger.debug("Creating VGPU of VGPU type [ " + gpuDevice.getVgpuType() + " ] in gpu group" + gpuDevice.getGpuGroup()
139+
+ " for VM " + cmd.getVirtualMachine().getName());
140+
}
141+
137142
Set<GPUGroup> groups = GPUGroup.getByNameLabel(conn, gpuDevice.getGpuGroup());
138143
assert groups.size() == 1 : "Should only have 1 group but found " + groups.size();
139144
GPUGroup gpuGroup = groups.iterator().next();

0 commit comments

Comments
 (0)