cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [10/53] [abbrv] git commit: updated refs/heads/rbac to 33cd1ab
Date Wed, 22 Jan 2014 19:27:35 GMT
CLOUDSTACK-5895: CreateVolumeFromSnapshot can fail in a multiple pod environment with tagged
storagepool

Changes:
- After finding the storagepool suitable to create the volume, we should not look for more
pods


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8a20d89d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8a20d89d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8a20d89d

Branch: refs/heads/rbac
Commit: 8a20d89d14d909077df0674a902c0eda4206be15
Parents: ecf57c3
Author: Prachi Damle <prachi@cloud.com>
Authored: Fri Jan 17 11:22:20 2014 -0800
Committer: Prachi Damle <prachi@cloud.com>
Committed: Fri Jan 17 11:22:20 2014 -0800

----------------------------------------------------------------------
 .../cloudstack/engine/orchestration/VolumeOrchestrator.java   | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8a20d89d/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java
----------------------------------------------------------------------
diff --git a/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java
b/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java
index 8129b9d..d51ed19 100644
--- a/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java
+++ b/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java
@@ -323,6 +323,13 @@ public class VolumeOrchestrator extends ManagerBase implements VolumeOrchestrati
                 while ((pool = findStoragePool(dskCh, dc, pod.first(), null, null, null,
poolsToAvoid)) != null) {
                     break;
                 }
+
+                if (pool != null) {
+                    if (s_logger.isDebugEnabled()) {
+                        s_logger.debug("Found a suitable pool for create volume: " + pool.getId());
+                    }
+                    break;
+                }
             }
         }
 


Mime
View raw message