cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhais...@apache.org
Subject [cloudstack] branch master updated: CLOUDSTACK-9939: Volumes stuck in Creating state while restarting the Management Server when the volume creation is in progress (#2163)
Date Sat, 19 Aug 2017 19:10:48 GMT
This is an automated email from the ASF dual-hosted git repository.

bhaisaab pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/master by this push:
     new a40e0f0  CLOUDSTACK-9939: Volumes stuck in Creating state while restarting the Management
Server when the volume creation is in progress (#2163)
a40e0f0 is described below

commit a40e0f0097ec5776c43f205383021138f33a68d1
Author: pavanaravapalli <pavankumar_a@accelerite.com>
AuthorDate: Sun Aug 20 00:40:43 2017 +0530

    CLOUDSTACK-9939: Volumes stuck in Creating state while restarting the Management Server
when the volume creation is in progress (#2163)
---
 .../apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
b/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
index 9b6aa7c..42e15b5 100644
--- a/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
+++ b/framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java
@@ -84,6 +84,7 @@ import com.cloud.utils.exception.CloudRuntimeException;
 import com.cloud.utils.exception.ExceptionUtil;
 import com.cloud.utils.mgmt.JmxUtil;
 import com.cloud.vm.dao.VMInstanceDao;
+import com.cloud.storage.dao.VolumeDao;
 
 public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager, ClusterManagerListener,
Configurable {
     // Advanced
@@ -123,6 +124,8 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
     private VMInstanceDao _vmInstanceDao;
     @Inject
     private VolumeDetailsDao _volumeDetailsDao;
+    @Inject
+    private VolumeDao _volsDao;
 
     private volatile long _executionRunNumber = 1;
 
@@ -1020,6 +1023,7 @@ public class AsyncJobManagerImpl extends ManagerBase implements AsyncJobManager,
 
                             try {
                                 _volumeDetailsDao.removeDetail(job.getInstanceId(), "SNAPSHOT_ID");
+                                _volsDao.remove(job.getInstanceId());
                             } catch (Exception e) {
                                 s_logger.error("Unexpected exception while removing concurrent
request meta data :" + e.getLocalizedMessage());
                             }

-- 
To stop receiving notification emails like this one, please contact
['"commits@cloudstack.apache.org" <commits@cloudstack.apache.org>'].

Mime
View raw message