Skip to content

Commit 3cd86a2

Browse files
Remove FSS vdpp-on-stretched-supervisor (#3393)
* Remove FSS vdpp-on-stretched-supervisor * Removed fss from 3 most recent yaml configs * Fix bad merge
1 parent e781186 commit 3cd86a2

File tree

6 files changed

+21
-50
lines changed

6 files changed

+21
-50
lines changed

manifests/supervisorcluster/1.30/cns-csi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ data:
566566
"list-volumes": "true"
567567
"cnsmgr-suspend-create-volume": "true"
568568
"storage-quota-m2": "true"
569-
"vdpp-on-stretched-supervisor": "true"
570569
"cns-unregister-volume": "false"
571570
"workload-domain-isolation": "false"
572571
"WCP_VMService_BYOK": "true"

manifests/supervisorcluster/1.31/cns-csi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ data:
566566
"list-volumes": "true"
567567
"cnsmgr-suspend-create-volume": "true"
568568
"storage-quota-m2": "true"
569-
"vdpp-on-stretched-supervisor": "true"
570569
"cns-unregister-volume": "false"
571570
"workload-domain-isolation": "false"
572571
"WCP_VMService_BYOK": "true"

manifests/supervisorcluster/1.32/cns-csi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ data:
566566
"list-volumes": "true"
567567
"cnsmgr-suspend-create-volume": "true"
568568
"storage-quota-m2": "true"
569-
"vdpp-on-stretched-supervisor": "true"
570569
"cns-unregister-volume": "false"
571570
"workload-domain-isolation": "false"
572571
"WCP_VMService_BYOK": "true"

pkg/csi/service/common/constants.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,6 @@ const (
420420
PodVMOnStretchedSupervisor = "PodVM_On_Stretched_Supervisor_Supported"
421421
// StorageQuotaM2 enables support for snapshot quota feature
422422
StorageQuotaM2 = "storage-quota-m2"
423-
// VdppOnStretchedSupervisor enables support for vDPp workloads on stretched SV clusters
424-
VdppOnStretchedSupervisor = "vdpp-on-stretched-supervisor"
425423
// CSIDetachOnSupervisor enables CSI to detach the disk from the podvm in a supervisor environment
426424
CSIDetachOnSupervisor = "CSI_Detach_Supported"
427425
// CnsUnregisterVolume enables the creation of CRD and controller for CnsUnregisterVolume API.

pkg/csi/service/wcp/controller.go

Lines changed: 18 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,7 @@ func (c *controller) createBlockVolume(ctx context.Context, req *csi.CreateVolum
462462
isLinkedCloneRequest bool
463463
linkedCloneSupportEnabled bool
464464
)
465-
isVdppOnStretchedSVEnabled := commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.VdppOnStretchedSupervisor)
466465
linkedCloneSupportEnabled = commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.LinkedCloneSupport)
467-
468466
// Support case insensitive parameters.
469467
for paramName := range req.Parameters {
470468
param := strings.ToLower(paramName)
@@ -480,7 +478,7 @@ func (c *controller) createBlockVolume(ctx context.Context, req *csi.CreateVolum
480478
storageTopologyType = req.Parameters[paramName]
481479
val := strings.ToLower(storageTopologyType)
482480
if val != "zonal" {
483-
if isVdppOnStretchedSVEnabled && val == "hostlocal" {
481+
if val == "hostlocal" {
484482
log.Debugf("StorageTopologyType HostLocal is accepted.")
485483
} else {
486484
return nil, csifault.CSIInvalidArgumentFault, logger.LogNewErrorCodef(log, codes.InvalidArgument,
@@ -557,17 +555,12 @@ func (c *controller) createBlockVolume(ctx context.Context, req *csi.CreateVolum
557555
// keys as topology requirement during volume provisioning.
558556
hostnameLabelPresent, zoneLabelPresent = checkTopologyKeysFromAccessibilityReqs(topologyRequirement)
559557
if zoneLabelPresent && hostnameLabelPresent {
560-
if isVdppOnStretchedSVEnabled {
561-
if IsMultipleClustersPerVsphereZoneFSSEnabled && c.topologyMgr.ZonesWithMultipleClustersExist(ctx) {
562-
return nil, csifault.CSIInternalFault, logger.LogNewErrorCode(log, codes.Internal,
563-
"Creating volume with both zone and hostname in topology requirement is not "+
564-
"supported on deployment with multiple vSphere Clusters per zone")
565-
}
566-
log.Infof("Host Local volume provisioning with requirement: %+v", topologyRequirement)
567-
} else {
568-
return nil, csifault.CSIUnimplementedFault, logger.LogNewErrorCodef(log, codes.Unimplemented,
569-
"support for topology requirement with both zone and hostname labels is not yet implemented.")
558+
if IsMultipleClustersPerVsphereZoneFSSEnabled && c.topologyMgr.ZonesWithMultipleClustersExist(ctx) {
559+
return nil, csifault.CSIInternalFault, logger.LogNewErrorCode(log, codes.Internal,
560+
"Creating volume with both zone and hostname in topology requirement is not "+
561+
"supported on deployment with multiple vSphere Clusters per zone")
570562
}
563+
log.Infof("Host Local volume provisioning with requirement: %+v", topologyRequirement)
571564
} else if zoneLabelPresent {
572565
if !isWorkloadDomainIsolationEnabled {
573566
if storageTopologyType == "" {
@@ -671,7 +664,7 @@ func (c *controller) createBlockVolume(ctx context.Context, req *csi.CreateVolum
671664
log.Infof("Active vSphere clusters: %v for the namespace: %q", vSphereClusterMorefs, pvcNamespace)
672665
}
673666
}
674-
} else if hostnameLabelPresent && isVdppOnStretchedSVEnabled {
667+
} else if hostnameLabelPresent {
675668
log.Infof("Host Local volume provisioning with requirement: %+v", topologyRequirement)
676669
} else {
677670
// No topology labels present in the topologyRequirement
@@ -734,14 +727,12 @@ func (c *controller) createBlockVolume(ctx context.Context, req *csi.CreateVolum
734727
"too many accessible nodes")
735728
}
736729

737-
if isVdppOnStretchedSVEnabled {
738-
selectedDatastoreURL, err = getDatastoreURLFromStoragePool(ctx, storagePool)
739-
if err != nil {
740-
return nil, csifault.CSIInternalFault, logger.LogNewErrorCodef(log, codes.Internal,
741-
"error in specified StoragePool %s. Error: %+v", storagePool, err)
742-
}
743-
log.Infof("Will select datastore %s as per the provided storage pool %s", selectedDatastoreURL, storagePool)
730+
selectedDatastoreURL, err = getDatastoreURLFromStoragePool(ctx, storagePool)
731+
if err != nil {
732+
return nil, csifault.CSIInternalFault, logger.LogNewErrorCodef(log, codes.Internal,
733+
"error in specified StoragePool %s. Error: %+v", storagePool, err)
744734
}
735+
log.Infof("Will select datastore %s as per the provided storage pool %s", selectedDatastoreURL, storagePool)
745736

746737
hostMoid, err := getHostMOIDFromK8sCloudOperatorService(ctx, accessibleNodes[0])
747738
if err != nil {
@@ -753,14 +744,12 @@ func (c *controller) createBlockVolume(ctx context.Context, req *csi.CreateVolum
753744
log.Debugf("Setting the affineToHost value as %s", affineToHost)
754745
}
755746

756-
if isVdppOnStretchedSVEnabled {
757-
datastore, err := cnsvsphere.GetDatastoreInfoByURL(ctx, vc, clusterMoIds, selectedDatastoreURL)
758-
if err != nil {
759-
return nil, csifault.CSIInternalFault, logger.LogNewErrorCodef(log, codes.Internal,
760-
"failed to find the datastore from the selected datastore URL %s. Error: %v", selectedDatastoreURL, err)
761-
}
762-
candidateDatastores = []*cnsvsphere.DatastoreInfo{datastore}
747+
datastore, err := cnsvsphere.GetDatastoreInfoByURL(ctx, vc, clusterMoIds, selectedDatastoreURL)
748+
if err != nil {
749+
return nil, csifault.CSIInternalFault, logger.LogNewErrorCodef(log, codes.Internal,
750+
"failed to find the datastore from the selected datastore URL %s. Error: %v", selectedDatastoreURL, err)
763751
}
752+
candidateDatastores = []*cnsvsphere.DatastoreInfo{datastore}
764753
}
765754

766755
// Volume Size - Default is 10 GiB.
@@ -847,7 +836,6 @@ func (c *controller) createBlockVolume(ctx context.Context, req *csi.CreateVolum
847836
createVolumeOpts := common.CreateBlockVolumeOptions{
848837
FilterSuspendedDatastores: filterSuspendedDatastores,
849838
UseSupervisorId: isTKGSHAEnabled,
850-
IsVdppOnStretchedSvFssEnabled: isVdppOnStretchedSVEnabled,
851839
IsByokEnabled: isByokEnabled,
852840
IsCSITransactionSupportEnabled: isCSITransactionSupportEnabled,
853841
VolFromSnapshotOnTargetDs: volFromSnapshotOnTargetDs,
@@ -933,18 +921,7 @@ func (c *controller) createBlockVolume(ctx context.Context, req *csi.CreateVolum
933921
if hostnameLabelPresent {
934922
// Configure the volumeTopology in the response so that the external
935923
// provisioner will properly sets up the nodeAffinity for this volume.
936-
if isVdppOnStretchedSVEnabled {
937-
resp.Volume.AccessibleTopology = topologyRequirement.GetPreferred()
938-
} else {
939-
for _, hostName := range accessibleNodes {
940-
volumeTopology := &csi.Topology{
941-
Segments: map[string]string{
942-
v1.LabelHostname: hostName,
943-
},
944-
}
945-
resp.Volume.AccessibleTopology = append(resp.Volume.AccessibleTopology, volumeTopology)
946-
}
947-
}
924+
resp.Volume.AccessibleTopology = topologyRequirement.GetPreferred()
948925
} else if zoneLabelPresent {
949926
if IsMultipleClustersPerVsphereZoneFSSEnabled && len(volumeInfo.Clusters) > 0 {
950927
// Calculate Volume Accessible Topology from Clusters returned in CreateVolume Response

pkg/syncer/storagepool/service.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ func InitStoragePoolService(ctx context.Context,
6363
}
6464
clusterIDs = clusterComputeResourceMoIds
6565
if len(clusterIDs) > 1 &&
66-
(!commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.PodVMOnStretchedSupervisor) ||
67-
!commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.VdppOnStretchedSupervisor)) {
68-
log.Infof("`%s` and `%s` should be enabled for storage pool service on Stretched Supervisor. Exiting...",
69-
common.PodVMOnStretchedSupervisor, common.VdppOnStretchedSupervisor)
66+
(!commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.PodVMOnStretchedSupervisor)) {
67+
log.Infof("`%s` should be enabled for storage pool service on Stretched Supervisor. Exiting...",
68+
common.PodVMOnStretchedSupervisor)
7069
return nil
7170
}
7271
if commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.MultipleClustersPerVsphereZone) {

0 commit comments

Comments
 (0)