Open gnadaban opened 2 months ago
I encountered the similar issue.
When I deploy the FileSytem manfiest like below, the STATE
status is stuck at creating
and SYNCED
status is stuck at False
:
apiVersion: efs.services.k8s.aws/v1alpha1
kind: FileSystem
metadata:
name: my-filesystem
namespace: ack-system
spec:
encrypted: true
throughputMode: elastic
performanceMode: generalPurpose
lifecyclePolicies:
- transitionToIA: AFTER_30_DAYS
tags:
- key: Name
value: MyEFSFileSystem
- key: Environment
value: Production
When I deploy the MountTarget manfiest like below, the SYNCED
status is True
but the STATE
status is stuck at creating:
---
apiVersion: efs.services.k8s.aws/v1alpha1
kind: MountTarget
metadata:
name: mount-target-az1
namespace: ack-system
spec:
fileSystemRef:
from:
name: my-filesystem
namespace: ack-system
subnetID: subnet-02c1239a3f791d57f
securityGroups:
- sg-0d74b83661232689d
In both cases, even after I leave them for a day, the status is still not correctly updated.
I'm not sure I'd call this level of completeness "Generally Available" worthy.
It would seem that this only happens when encrypted: true
is configured.
Other fields like policy
or lifecyclePolicies
have a similar effect: when configured, the resource never gets initialized.
Also, if initially the policy
field is set, and is later deleted, the resource never gets synced again due to a missing field error.
{"level":"error","ts":"2024-10-03T20:44:44.492Z","msg":"Reconciler error","controller":"filesystem","controllerGroup":"efs.services.k8s.aws","controllerKind":"FileSystem","FileSystem":{"name":"dummyfs","namespace":"dummy"},"namespace":"dummy","name":"dummyfs","reconcileID":"58c2ae6b-48a5-462d-aa9c-1837b2060f1c","error":"InvalidParameter: 1 validation error(s) found.\n- missing required field, PutFileSystemPolicyInput.Policy.\n","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.4/pkg/internal/controller/controller.go:324\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.4/pkg/internal/controller/controller.go:261\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.18.4/pkg/internal/controller/controller.go:222"}
Describe the bug I'm trying to create a
FileSystem
resource that is encrypted with a custom KMS key with accompanyingMountTarget
s andAccessPoint
, but there are various issues:FileSystem
CR is stuck increating
state while in AWS console the resource appears ready and availablefileSystemRef
forMountTarget
andAccessPoint
resources they are never created as the controller does not consider the targetFileSystem
resource ready ("the referenced resource is not synced yet.")Steps to reproduce
FileSystem
resourceMountTarget
andAccessPoint
resources withfileSystemRef
pointing at FileSystem resourceExpected outcome
FileSystem
resource should become "ready" after it is successfully created and its status in AWS console is "Available".MountTarget
andAccessPoint
resources should be created as soon as theFileSystem
resource is created and has an ARNEnvironment
v1.30.4-eks-a737599
yes
EFS