You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2014/01/17 20:38:15 UTC

git commit: updated refs/heads/master to 8a20d89

Updated Branches:
  refs/heads/master ecf57c368 -> 8a20d89d1


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/master
Commit: 8a20d89d14d909077df0674a902c0eda4206be15
Parents: ecf57c3
Author: Prachi Damle <pr...@cloud.com>
Authored: Fri Jan 17 11:22:20 2014 -0800
Committer: Prachi Damle <pr...@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;
+                }
             }
         }