Skip to content

Commit 3ac82ba

Browse files
author
Daniel Augusto Veronezi Salvador
committed
Send more info to host to improve log
1 parent 42347eb commit 3ac82ba

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

api/src/main/java/com/cloud/agent/api/to/VirtualMachineTO.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ public Type getType() {
146146
return type;
147147
}
148148

149+
public void setType(Type type) {
150+
this.type = type;
151+
}
152+
149153
public BootloaderType getBootloader() {
150154
return bootloader;
151155
}

engine/orchestration/src/main/java/com/cloud/vm/VirtualMachineManagerImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4636,6 +4636,10 @@ private VMInstanceVO orchestrateReConfigureVm(final String vmUuid, final Service
46364636
new ScaleVmCommand(vm.getInstanceName(), newServiceOffering.getCpu(), (int)(newServiceOffering.getSpeed() / cpuOvercommitRatio),
46374637
newServiceOffering.getSpeed(), minMemory * 1024L * 1024L, newServiceOffering.getRamSize() * 1024L * 1024L, newServiceOffering.getLimitCpuUse());
46384638

4639+
reconfigureCmd.getVirtualMachine().setId(vm.getId());
4640+
reconfigureCmd.getVirtualMachine().setUuid(vm.getUuid());
4641+
reconfigureCmd.getVirtualMachine().setType(vm.getType());
4642+
46394643
final Long dstHostId = vm.getHostId();
46404644
if(vm.getHypervisorType().equals(HypervisorType.VMware)) {
46414645
final HypervisorGuru hvGuru = _hvGuruMgr.getGuru(vm.getHypervisorType());

0 commit comments

Comments
 (0)