From e452a0b073d8465f0181168ec55a7950d9fa23d0 Mon Sep 17 00:00:00 2001 From: mittachaitu Date: Tue, 11 Aug 2020 13:04:49 +0530 Subject: [PATCH] fix(volume provisioning): fix CStor volume creation without PVC This PR fixes CStor volume provisioning issue. Currently REST request to create CStor volume will fail if request is made without creating PVC because of following bug: - When the REST API is called to create volume it will verify whether request payload has PVC name. If PVC name doesn't exist then it will skip execution of `cstor-volume-create-puttargetservice-default` runtask but with latest changes of PR [1735](https://github.com/openebs/maya/pull/1735) above runtask is not skiped and leads to failure in creation of CStor volume. Signed-off-by: mittachaitu --- pkg/volume/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/volume.go b/pkg/volume/volume.go index 4c75e63394..1093b0b5d0 100644 --- a/pkg/volume/volume.go +++ b/pkg/volume/volume.go @@ -176,7 +176,7 @@ func (v *Operation) Create() (*v1alpha1.CASVolume, error) { if len(pvcName) == 0 { cast.Spec.RunTasks.Tasks = util.RemoveItemFromSlice( cast.Spec.RunTasks.Tasks, - version.WithSuffix("cstor-volume-create-getpvc-default"), + version.WithSuffixLower("cstor-volume-create-getpvc-default"), ) }