mirror of https://github.com/apache/cloudstack.git
Fix log messages for vgpu creation.
(cherry picked from commit 5a49bb2db7)
This commit is contained in:
parent
2d7f201a63
commit
6eb9a86d9c
|
|
@ -135,6 +135,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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue