CLOUDSTACK-4298: in case both xenserver/vmware mixed in one zone, need to make 
sure, ssvm is loaded with premiumsecondaryresource


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

Branch: refs/heads/master
Commit: 3eb34d082d0956a2115a0675cb2043d091e077b7
Parents: c58f15d
Author: Edison Su <[email protected]>
Authored: Tue Aug 13 14:38:28 2013 -0700
Committer: Edison Su <[email protected]>
Committed: Tue Aug 13 15:16:46 2013 -0700

----------------------------------------------------------------------
 .../storage/secondary/SecondaryStorageManagerImpl.java      | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3eb34d08/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java
----------------------------------------------------------------------
diff --git 
a/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java 
b/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java
index a19dc59..fef41d8 100755
--- a/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java
+++ b/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java
@@ -1023,13 +1023,8 @@ public class SecondaryStorageManagerImpl extends 
ManagerBase implements Secondar
         buf.append(" guid=").append(profile.getVirtualMachine().getHostName());
 
         if (_configDao.isPremium()) {
-            if (profile.getHypervisorType() == HypervisorType.VMware) {
-               s_logger.debug("VmWare hypervisor configured, telling the ssvm 
to load the PremiumSecondaryStorageResource");
-               buf.append(" 
resource=com.cloud.storage.resource.PremiumSecondaryStorageResource");
-            } else {
-               s_logger.debug("Telling the ssvm to load the 
NfsSecondaryStorageResource");
-                buf.append(" 
resource=org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource");
-            }
+            s_logger.debug("VmWare hypervisor configured, telling the ssvm to 
load the PremiumSecondaryStorageResource");
+            buf.append(" 
resource=com.cloud.storage.resource.PremiumSecondaryStorageResource");
         } else {
             buf.append(" 
resource=org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource");
         }

Reply via email to