mirror of https://github.com/apache/cloudstack.git
Add logs to VMware instance configuration process (#9080)
Co-authored-by: Henrique Sato <henriquesato2003@gmail.com>
This commit is contained in:
parent
f75a194c09
commit
91ab67c952
|
|
@ -1185,6 +1185,7 @@ public class VirtualMachineMO extends BaseMO {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean configureVm(VirtualMachineConfigSpec vmConfigSpec) throws Exception {
|
public boolean configureVm(VirtualMachineConfigSpec vmConfigSpec) throws Exception {
|
||||||
|
logger.debug("Reconfiguring virtual machine {} using spec {}.", this, GSON.toJson(vmConfigSpec));
|
||||||
ManagedObjectReference morTask = _context.getService().reconfigVMTask(_mor, vmConfigSpec);
|
ManagedObjectReference morTask = _context.getService().reconfigVMTask(_mor, vmConfigSpec);
|
||||||
|
|
||||||
boolean result = _context.getVimClient().waitForTask(morTask);
|
boolean result = _context.getVimClient().waitForTask(morTask);
|
||||||
|
|
@ -3841,4 +3842,9 @@ public class VirtualMachineMO extends BaseMO {
|
||||||
logger.info("Removed property ChangeTrackPath from VMDK content file " + diskBackingInfo.getFileName());
|
logger.info("Removed property ChangeTrackPath from VMDK content file " + diskBackingInfo.getFileName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return ReflectionToStringBuilderUtils.reflectOnlySelectedFields(this, "internalCSName");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue