-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACK S3 controller - InvalidArgument: Argument format not recognized #2357
Comments
Hey @itaiatu, was this resolved? |
Hi @michaelhtm, I closed it because it wasn't reproducible. But if I recall correctly, everything started from this error. apiVersion: s3.services.k8s.aws/v1alpha1
kind: Bucket
metadata:
annotations:
services.k8s.aws/region: us-east-1
creationTimestamp: "2025-02-19T09:45:00Z"
finalizers:
- finalizers.s3.services.k8s.aws/Bucket
generation: 1
name: astef-sbx-va6-k8s-data
namespace: sbx-clusters
spec:
accelerate: {}
acl: private|bucket-owner-read|bucket-owner-full-control
cors: {}
encryption:
rules:
- applyServerSideEncryptionByDefault:
sseAlgorithm: AES256
bucketKeyEnabled: false
grantFullControl: id=4215a77b61c01ab052e87028ad0fc004204e35bd4127e667e7166ead0cb34a0f
grantRead: ""
grantReadACP: ""
grantWrite: ""
grantWriteACP: ""
lifecycle:
rules:
- expiration:
days: 90
id: backup-deletion
noncurrentVersionExpiration:
noncurrentDays: 90
prefix: backups/
status: Enabled
- abortIncompleteMultipartUpload:
daysAfterInitiation: 7
id: delete expired multi part uploads
prefix: ""
status: Enabled
logging: {}
name: astef-sbx-va6-k8s-data
notification: {}
ownershipControls:
rules:
- objectOwnership: BucketOwnerEnforced
publicAccessBlock:
blockPublicACLs: true
blockPublicPolicy: true
ignorePublicACLs: true
restrictPublicBuckets: true
requestPayment:
payer: BucketOwner
versioning:
status: Enabled
website: {}
status:
ackResourceMetadata:
ownerAccountID: "258057316678"
region: us-east-1
conditions:
- message: 'api error InvalidRequest: Specifying both Canned ACLs and Header Grants
is not allowed'
status: "True"
type: ACK.Recoverable
- lastTransitionTime: "2025-02-25T10:42:43Z"
message: Unable to determine if desired resource state matches latest observed
state
reason: 'operation error S3: CreateBucket, https response error StatusCode: 400,
RequestID: NDYEG65D1NN0GS2T, HostID: /NqTyHhTK/VSNXxbIap+C6sbh5whx77nz/bujaJ26OneE8j/fnnCKwbMrr3gGsaTcNCWkVcRvsw=,
api error InvalidRequest: Specifying both Canned ACLs and Header Grants is not
allowed'
status: Unknown
type: ACK.ResourceSynced This was a bucket created with created with ACK S3 The interesting part is in the response message from AWS:
|
seems like the removal of empty fields we introduced could be messing with the update.. |
@michaelhtm are we talking about changes in the release v1.0.21? |
I think, for the moment, let's keep the things as they are, because we are not seeing the issue anymore and we can't replicate it. |
Describe the bug
ACK S3 controller
v1.0.26
throwsInvalidArgument: Argument format not recognized
on s3 buckets that were created or adopted with ACK S3 controllerv1.0.18
.Steps to reproduce
We have this s3 bucket on the cluster that was created with
v1.0.18
and is now consumed and reconciled byv1.0.26
:As we can see in the
status
of the object, AWS throwsInvalidArgument: Argument format not recognized
.In the CloudTrail, we have this
Maybe this is due to the migration to
aws-sdk-go-v2
and some parameters are not used anymore.Expected outcome
Correctly consume the resources created with older ACK controller versions.
Environment
The text was updated successfully, but these errors were encountered: