Skip to content

Commit e3e4526

Browse files
anshulgangwardevdeep
authored andcommitted
CLOUDSTACK-6267: unblocking smb as zone wide primary storage for hyperv
Signed-off-by: Devdeep Singh <devdeep@gmail.com>
1 parent c46088c commit e3e4526

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎server/src/com/cloud/storage/StorageManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ public PrimaryDataStoreInfo createPool(CreateStoragePoolCmd cmd) throws Resource
618618
} else {
619619
throw new InvalidParameterValueException("Missing parameter hypervisor. Hypervisor type is required to create zone wide primary storage.");
620620
}
621-
if (hypervisorType != HypervisorType.KVM && hypervisorType != HypervisorType.VMware && hypervisorType != HypervisorType.Any) {
621+
if (hypervisorType != HypervisorType.KVM && hypervisorType != HypervisorType.VMware && hypervisorType != HypervisorType.Hyperv && hypervisorType != HypervisorType.Any) {
622622
throw new InvalidParameterValueException("zone wide storage pool is not supported for hypervisor type " + hypervisor);
623623
}
624624
}

‎ui/scripts/system.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15131,7 +15131,11 @@
1513115131
id: 'VMware',
1513215132
description: _l('VMware')
1513315133
});
15134-
15134+
items.push({
15135+
id: 'Hyperv',
15136+
description: _l('Hyperv')
15137+
});
15138+
1513515139
args.response.success({
1513615140
data: items
1513715141
});

‎ui/scripts/zoneWizard.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,8 +1429,8 @@
14291429
return;
14301430
}
14311431

1432-
//zone-wide-primary-storage is supported only for KVM and VMWare
1433-
if (selectedHypervisorObj.hypervisortype == "KVM" || selectedHypervisorObj.hypervisortype == "VMware") {
1432+
//zone-wide-primary-storage is supported only for KVM and VMWare and Hyperv
1433+
if (selectedHypervisorObj.hypervisortype == "KVM" || selectedHypervisorObj.hypervisortype == "VMware" || selectedHypervisorObj.hypervisortype == "Hyperv") {
14341434
var scope = [];
14351435
scope.push({
14361436
id: 'zone',

0 commit comments

Comments
 (0)