|
95 | 95 | import org.apache.cloudstack.storage.datastore.db.StoragePoolVO; |
96 | 96 | import org.apache.cloudstack.storage.to.VolumeObjectTO; |
97 | 97 | import org.apache.cloudstack.utils.identity.ManagementServerNode; |
| 98 | +import org.apache.cloudstack.utils.reflectiontostringbuilderutils.ReflectionToStringBuilderUtils; |
98 | 99 | import org.apache.cloudstack.vm.UnmanagedVMsManager; |
99 | 100 | import org.apache.commons.collections.CollectionUtils; |
100 | 101 | import org.apache.commons.collections.MapUtils; |
@@ -5451,9 +5452,9 @@ private Pair<JobInfo.Status, String> orchestrateStart(final VmWorkStart work) th |
5451 | 5452 | try { |
5452 | 5453 | orchestrateStart(vm.getUuid(), work.getParams(), work.getPlan(), _dpMgr.getDeploymentPlannerByName(work.getDeploymentPlanner())); |
5453 | 5454 | } catch (CloudRuntimeException e){ |
5454 | | - String message = String.format("Unable to orchestrate start %s due to [%s].", vm.toString(), e.getMessage()); |
5455 | | - logger.warn(message, e); |
5456 | | - CloudRuntimeException ex = new CloudRuntimeException(message); |
| 5455 | + logger.error("Unable to orchestrate start {} due to [{}].", vm, e.getMessage()); |
| 5456 | + CloudRuntimeException ex = new CloudRuntimeException(String.format("Unable to orchestrate the start of VM instance %s.", |
| 5457 | + ReflectionToStringBuilderUtils.reflectOnlySelectedFields(vm, "instanceName", "uuid"))); |
5457 | 5458 | return new Pair<>(JobInfo.Status.FAILED, JobSerializerHelper.toObjectSerializedString(ex)); |
5458 | 5459 | } |
5459 | 5460 | return new Pair<>(JobInfo.Status.SUCCEEDED, null); |
|
0 commit comments