fluid
fluid copied to clipboard
[BUG] JindoRuntime controller panics when setting quotaList in tieredstore level
What is your environment(Kubernetes version, Fluid version, etc.) Fluid version: 7dd9d35
Describe the bug JindoRuntime controller panics when setting quotaList in tieredstore level.
panic: cannot parse '10Gi,5Gi': quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'
goroutine 365 [running]:
github.com/fluid-cloudnative/fluid/vendor/k8s.io/apimachinery/pkg/api/resource.MustParse({0xc000830350, 0x8})
/go/src/github.com/fluid-cloudnative/fluid/vendor/k8s.io/apimachinery/pkg/api/resource/quantity.go:128 +0x36e
github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx.(*JindoFSxEngine).transformWorkerResources(0xc0005f88f0, 0xc0006c2000, 0xc00007d800, {0xc000830350, 0x8})
/go/src/github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx/transform.go:501 +0x465
github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx.(*JindoFSxEngine).transformResources(0xc0005f88f0, 0xc0006c2000, 0xc00007d800, {0xc000830222, 0x6})
/go/src/github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx/transform.go:386 +0x94
github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx.(*JindoFSxEngine).transform(0xc0005f88f0, 0xc0006c2000)
/go/src/github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx/transform.go:150 +0x10d7
github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx.(*JindoFSxEngine).generateJindoValueFile(0xc0005f88f0)
/go/src/github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx/master_internal.go:58 +0x17d
github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx.(*JindoFSxEngine).setupMasterInernal(0xc0005f88f0)
/go/src/github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx/master_internal.go:35 +0x94
github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx.(*JindoFSxEngine).SetupMaster(0xc0005f88f0)
/go/src/github.com/fluid-cloudnative/fluid/pkg/ddc/jindofsx/master.go:115 +0x2b2
github.com/fluid-cloudnative/fluid/pkg/ddc/base.(*TemplateEngine).Setup(0xc0006305a0, {{0x23d4ab8, 0xc0004fd9e0}, {{0xc00001b2f6, 0x7}, {0xc00001b300, 0xc}}, {{0x23d94a8, 0xc0004fda10}, 0x0}, ...})
/go/src/github.com/fluid-cloudnative/fluid/pkg/ddc/base/setup.go:40 +0x235
github.com/fluid-cloudnative/fluid/pkg/controllers.(*RuntimeReconciler).ReconcileRuntime(0xc0004b0730, {0x23e7e70, 0xc0006305a0}, {{0x23d4ab8, 0xc0004fd9e0}, {{0xc00001b2f6, 0x7}, {0xc00001b300, 0xc}}, {{0x23d94a8, ...}, ...}, ...})
/go/src/github.com/fluid-cloudnative/fluid/pkg/controllers/runtime_controller.go:219 +0x23c
github.com/fluid-cloudnative/fluid/pkg/controllers.(*RuntimeReconciler).ReconcileInternal(0xc0004b0730, {{0x23d4ab8, 0xc0004fd9e0}, {{0xc00001b2f6, 0x7}, {0xc00001b300, 0xc}}, {{0x23d94a8, 0xc0004fda10}, 0x0}, ...})
/go/src/github.com/fluid-cloudnative/fluid/pkg/controllers/runtime_controller.go:139 +0xa75
github.com/fluid-cloudnative/fluid/pkg/controllers/v1alpha1/jindo.(*RuntimeReconciler).Reconcile(0xc000339640, {0x23d4ab8, 0xc0004fd9e0}, {{{0xc00001b2f6, 0x7}, {0xc00001b300, 0xc}}})
What you expect to happen: Jindo should be successfully launched.
How to reproduce it Any JindoRuntime with a non-null quotaList can trigger this bug. For example:
apiVersion: data.fluid.io/v1alpha1
kind: JindoRuntime
metadata:
name: demo-dataset
spec:
replicas: 1
tieredstore:
levels:
- mediumtype: MEM
path: /dev/shm,/mnt/ram
quotaList: 10Gi,5Gi
high: "0.99"
low: "0.99"
Additional Information