Skip to content

Commit 1b6436d

Browse files
sudo87Locharla, Sandeep
authored andcommitted
UI: Fix primary storage for datastore cluster and retain traffic labels during zone deployment (apache#11760)
1 parent 9b8d822 commit 1b6436d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ui/src/views/infra/zone/ZoneWizardAddResources.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ export default {
396396
placeHolder: 'message.error.server',
397397
required: true,
398398
display: {
399-
primaryStorageProtocol: ['nfs', 'iscsi', 'gluster', 'SMB', 'Linstor']
399+
primaryStorageProtocol: ['nfs', 'iscsi', 'gluster', 'SMB', 'Linstor', 'datastorecluster', 'vmfs']
400400
}
401401
},
402402
{

ui/src/views/infra/zone/ZoneWizardLaunchZone.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,10 +1569,10 @@ export default {
15691569
}
15701570
path += '/' + this.prefillContent.primaryStorageVmfsDatastore
15711571
if (protocol === 'vmfs') {
1572-
url = this.vmfsURL('dummy', path)
1572+
url = this.vmfsURL(server, path)
15731573
}
15741574
if (protocol === 'datastorecluster') {
1575-
url = this.datastoreclusterURL('dummy', path)
1575+
url = this.datastoreclusterURL(server, path)
15761576
}
15771577
} else if (protocol === 'iscsi') {
15781578
let iqn = this.prefillContent?.primaryStorageTargetIQN || ''

ui/src/views/infra/zone/ZoneWizardPhysicalNetworkSetupStep.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export default {
414414
for (const index in net.traffics) {
415415
if (this.hypervisor === 'VMware') {
416416
delete this.physicalNetworks[idx].traffics[index].label
417-
} else {
417+
} else if (!net.traffics[index].label) {
418418
this.physicalNetworks[idx].traffics[index].label = ''
419419
}
420420
const traffic = net.traffics[index]

0 commit comments

Comments
 (0)