cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] rhtyd closed pull request #2354: CLOUDSTACK-10176:VM Start Api Job returns success for failed Job
Date Thu, 01 Jan 1970 00:00:00 GMT
rhtyd closed pull request #2354: CLOUDSTACK-10176:VM Start Api Job returns success for failed

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/engine/orchestration/src/com/cloud/vm/ b/engine/orchestration/src/com/cloud/vm/
index fe7fcdfd093..74927b9d465 100755
--- a/engine/orchestration/src/com/cloud/vm/
+++ b/engine/orchestration/src/com/cloud/vm/
@@ -38,6 +38,7 @@
 import javax.inject.Inject;
 import javax.naming.ConfigurationException;
 import org.apache.cloudstack.affinity.dao.AffinityGroupVMMapDao;
@@ -4730,8 +4731,9 @@ protected VirtualMachine retrieve() {
             orchestrateStart(vm.getUuid(), work.getParams(), work.getPlan(), _dpMgr.getDeploymentPlannerByName(work.getDeploymentPlanner()));
         catch (CloudRuntimeException e){
-  "Caught CloudRuntimeException, returning job failed");
-            return new Pair<JobInfo.Status, String>(JobInfo.Status.FAILED, null);
+  "Caught CloudRuntimeException, returning job failed " + e);
+            CloudRuntimeException ex = new CloudRuntimeException("Unable to start VM instance");
+            return new Pair<JobInfo.Status, String>(JobInfo.Status.FAILED, JobSerializerHelper.toObjectSerializedString(ex));
         return new Pair<JobInfo.Status, String>(JobInfo.Status.SUCCEEDED, null);


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message