Skip to content

Commit 6eb9a86

Browse files
sanjaytripathiDaanHoogland
authored andcommitted
Fix log messages for vgpu creation.
(cherry picked from commit 5a49bb2)
1 parent 2d7f201 commit 6eb9a86

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
@@ -135,6 +135,11 @@ protected HashMap<String, HashMap<String, VgpuTypesInfo>> getGPUGroupDetails(Con
135135

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

0 commit comments

Comments
 (0)