forked from rook/rook
Ceph: PV provisioning fails upon upgrade
CSI CephFS provisioner fails to provision a Persistent Volume after upgrading from Rook Ceph Operator 1.1.2 to 1.1.7. This issue can be fixed by removing givePoolAppTag function whenever there is an appName cephFs. Signed-off-by: RAJAT SINGH <rajasing@redhat.com>
This commit is contained in:
@@ -34,7 +34,6 @@ import (
|
||||
const (
|
||||
dataPoolSuffix = "data"
|
||||
metaDataPoolSuffix = "metadata"
|
||||
appName = "cephfs"
|
||||
)
|
||||
|
||||
// Filesystem represents an instance of a Ceph filesystem (CephFS)
|
||||
@@ -144,7 +143,7 @@ func newFS(name, namespace string) *Filesystem {
|
||||
func SetPoolSize(f *Filesystem, context *clusterd.Context, spec cephv1.FilesystemSpec) error {
|
||||
// generating the metadata pool's name
|
||||
metadataPoolName := generateMetaDataPoolName(f)
|
||||
err := client.CreatePoolWithProfile(context, f.Namespace, metadataPoolName, spec.MetadataPool, appName)
|
||||
err := client.CreatePoolWithProfile(context, f.Namespace, metadataPoolName, spec.MetadataPool, "")
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "failed to update metadata pool %q", metadataPoolName)
|
||||
}
|
||||
@@ -152,7 +151,7 @@ func SetPoolSize(f *Filesystem, context *clusterd.Context, spec cephv1.Filesyste
|
||||
dataPoolNames := generateDataPoolNames(f, spec)
|
||||
for i, pool := range spec.DataPools {
|
||||
poolName := dataPoolNames[i]
|
||||
err := client.CreatePoolWithProfile(context, f.Namespace, poolName, pool, appName)
|
||||
err := client.CreatePoolWithProfile(context, f.Namespace, poolName, pool, "")
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "failed to update datapool %q", poolName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user