Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vishesh92 committed Nov 14, 2024
1 parent c84082e commit 65a0e36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ public void orchestrateStart(final String vmUuid, final Map<VirtualMachineProfil

if (!changeState(vm, Event.OperationSucceeded, destHostId, work, Step.Done)) {
logger.error("Unable to transition to a new state. VM uuid: {}, VM oldstate: {}, Event: {}", vm, vm.getState(), Event.OperationSucceeded);
throw new ConcurrentOperationException("Failed to deploy VM"+ vm);
throw new ConcurrentOperationException(String.format("Failed to deploy VM %s", vm));
}

final GPUDeviceTO gpuDevice = startAnswer.getVirtualMachine().getGpuDevice();
Expand Down Expand Up @@ -2125,7 +2125,7 @@ private void advanceStop(final VMInstanceVO vm, final boolean cleanUpEvenIfUnabl
HostVO host = _hostDao.findById(hostId);
if (!cleanUpEvenIfUnableToStop && vm.getState() == State.Running && host.getResourceState() == ResourceState.PrepareForMaintenance) {
logger.debug("Host is in PrepareForMaintenance state - Stop VM operation on the VM: {} is not allowed", vm);
throw new CloudRuntimeException(String.format("Stop VM operation on the VM id%s is not allowed as host is preparing for maintenance mode", vm));
throw new CloudRuntimeException(String.format("Stop VM operation on the VM %s is not allowed as host is preparing for maintenance mode", vm));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public String prepareSDC(Host host, DataStore dataStore) {
}

private String prepareSDCOnHost(Host host, DataStore dataStore, String systemId) {
logger.debug("Preparing SDC on the host {}", host.toString());
logger.debug("Preparing SDC on the host {}", host);
Map<String,String> details = new HashMap<>();
details.put(ScaleIOGatewayClient.STORAGE_POOL_SYSTEM_ID, systemId);
PrepareStorageClientCommand cmd = new PrepareStorageClientCommand(((PrimaryDataStore) dataStore).getPoolType(), dataStore.getUuid(), details);
Expand Down

0 comments on commit 65a0e36

Please # to comment.