fluid
fluid copied to clipboard
[BUG] When thin runtime is failed, it should be cleaned up, and recreating should be successful.
What is your environment(Kubernetes version, Fluid version, etc.)
Describe the bug
2022-12-05T00:01:21.179+0800 ERROR controller.ThinRuntimeController controller/controller.go:266 Reconciler error {"name": "spark", "namespace": "production", "error": "Failed to create: Dataset.data.fluid.io \"spark\" not found", "errorVerbose": "Dataset.data.fluid.io \"spark\" not found\nFailed to create\ngithub.com/fluid-cloudnative/fluid/pkg/controllers.(*RuntimeReconciler).ReconcileInternal\n\t/go/src/github.com/fluid-cloudnative/fluid/pkg/controllers/runtime_controller.go:88\ngithub.com/fluid-cloudnative/fluid/pkg/controllers/v1alpha1/thinruntime.(*ThinRuntimeReconciler).Reconcile\n\t/go/src/github.com/fluid-cloudnative/fluid/pkg/controllers/v1alpha1/thinruntime/thinruntime_controller.go:119\ngithub.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/src/github.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114\ngithub.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/src/github.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311\ngithub.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\ngithub.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/src/github.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1581"}
github.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/go/src/github.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266
github.com/fluid-cloudnative/fluid/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
What you expect to happen:
How to reproduce it
Additional Information