You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mc...@apache.org on 2013/07/31 23:00:44 UTC

git commit: updated refs/heads/4.2 to fdc0484

Updated Branches:
  refs/heads/4.2 f09df4c13 -> fdc048442


CLOUDSTACK-3977: vm deployement is failing ;: Resource [Host:5] is
unreachable: Host 5: Unable to send class
org.apache.cloudstack.storage.command.CopyCommand because agent is in
maintenance mode.


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

Branch: refs/heads/4.2
Commit: fdc048442e98008da0ef5193180b69139f5e6313
Parents: f09df4c
Author: Min Chen <mi...@citrix.com>
Authored: Wed Jul 31 14:00:20 2013 -0700
Committer: Min Chen <mi...@citrix.com>
Committed: Wed Jul 31 14:00:35 2013 -0700

----------------------------------------------------------------------
 .../cloudstack/storage/endpoint/DefaultEndPointSelector.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/fdc04844/engine/storage/src/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java
----------------------------------------------------------------------
diff --git a/engine/storage/src/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java b/engine/storage/src/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java
index c3f52ff..fb04194 100644
--- a/engine/storage/src/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java
+++ b/engine/storage/src/org/apache/cloudstack/storage/endpoint/DefaultEndPointSelector.java
@@ -55,7 +55,7 @@ public class DefaultEndPointSelector implements EndPointSelector {
     private static final Logger s_logger = Logger.getLogger(DefaultEndPointSelector.class);
     @Inject
     HostDao hostDao;
-    private String findOneHostOnPrimaryStorage = "select id from host where " + "status = 'Up' and type = 'Routing' ";
+    private String findOneHostOnPrimaryStorage = "select id from host where status = 'Up' and type = 'Routing' and resource_state = 'Enabled'";
 
     protected boolean moveBetweenPrimaryImage(DataStore srcStore, DataStore destStore) {
         DataStoreRole srcRole = srcStore.getRole();