Skip to content
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

UI: Unable to update versioning configuration with >= v0.19.0 #672

Closed
votdev opened this issue Aug 16, 2023 · 3 comments · Fixed by s3gw-tech/s3gw-ui#252
Closed

UI: Unable to update versioning configuration with >= v0.19.0 #672

votdev opened this issue Aug 16, 2023 · 3 comments · Fixed by s3gw-tech/s3gw-ui#252
Assignees
Labels
area/ui User Interface kind/bug Something isn't working triage/waiting Waiting for triage

Comments

@votdev
Copy link
Contributor

votdev commented Aug 16, 2023

Create a bucket called test01 with versioning enabled. Then run ...

$ aws --endpoint=http://localhost:4300 s3api put-bucket-versioning --bucket "test01" --versioning-configuration "Status=Suspended"

An error occurred (NotImplemented) when calling the PutBucketVersioning operation: Unknown
2023-08-16T06:56:13.411+0000 7f2d54169700  1 ====== starting new request req=0x7f2da817d750 =====
2023-08-16T06:56:13.411+0000 7f2d54169700 10 zone_unique_id: TODO
2023-08-16T06:56:13.411+0000 7f2d54169700 10 zone_unique_trans_id: TODO
2023-08-16T06:56:13.411+0000 7f2d54169700 10 get_host_id: TODO
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s initializing for trans_id = 
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s rgw api priority: s3=8 s3website=7
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s host=localhost
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s meta>> HTTP_X_AMZ_CONTENT_SHA256
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s meta>> HTTP_X_AMZ_DATE
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s x>> x-amz-content-sha256:d7f1d7ed35d188f6a89d394cc2055f5910c14a3abccf41e808e7f7327d21e129
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s x>> x-amz-date:20230816T065613Z
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s name: versioning val: 
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s handler=25RGWHandler_REST_Bucket_S3
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s getting op 1
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s s3:set_bucket_versioning scheduling with throttler client=3 cost=1
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s s3:set_bucket_versioning op=34RGWSetBucketVersioning_ObjStore_S3
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning verifying requester
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s v4 signature format = 875af26550fc7d62d23cbbf7cb0d4d3a61016e3871a2d3c0197589a4926c354d
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s v4 credential format = test/20230816/us-east-1/s3/aws4_request
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s access key id = test
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s credential scope = 20230816/us-east-1/s3/aws4_request
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s canonical headers format = content-md5:orZUUp7E9srl53Od8p1glA==
host:localhost:4300
x-amz-content-sha256:d7f1d7ed35d188f6a89d394cc2055f5910c14a3abccf41e808e7f7327d21e129
x-amz-date:20230816T065613Z

2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s payload request hash = d7f1d7ed35d188f6a89d394cc2055f5910c14a3abccf41e808e7f7327d21e129
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s canonical request = PUT
/test01
versioning=
content-md5:orZUUp7E9srl53Od8p1glA==
host:localhost:4300
x-amz-content-sha256:d7f1d7ed35d188f6a89d394cc2055f5910c14a3abccf41e808e7f7327d21e129
x-amz-date:20230816T065613Z

content-md5;host;x-amz-content-sha256;x-amz-date
d7f1d7ed35d188f6a89d394cc2055f5910c14a3abccf41e808e7f7327d21e129
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s canonical request hash = eaa9a7f9584f2e4fd45e919dc14648fd690a5c805cb284bdfdef1a2dbae10191
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s string to sign = AWS4-HMAC-SHA256
20230816T065613Z
20230816/us-east-1/s3/aws4_request
eaa9a7f9584f2e4fd45e919dc14648fd690a5c805cb284bdfdef1a2dbae10191
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s delaying v4 auth
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s date_k    = 295fc0486d4b155e9754f6714eb4a22f135207a2096d149f8f2d6ff4769104a8
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s region_k  = a90997598b0b397221fc37e3caea72dcd4e6cd67803ef7a9e53c81ca5001ee1b
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s service_k = 1a6b9d41233cd3781c7f5a8f514b4e752fe48a468fe0a0f3e64f0d24e1eb14e8
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s signing_k = ffc16908211a8b2f38d2a824abac4a8aa826e8ff89997a374950b65987fe8506
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s generated signature = 875af26550fc7d62d23cbbf7cb0d4d3a61016e3871a2d3c0197589a4926c354d
2023-08-16T06:56:13.411+0000 7f2d54169700 15 req 0 0.000000000s s3:set_bucket_versioning string_to_sign=AWS4-HMAC-SHA256
20230816T065613Z
20230816/us-east-1/s3/aws4_request
eaa9a7f9584f2e4fd45e919dc14648fd690a5c805cb284bdfdef1a2dbae10191
2023-08-16T06:56:13.411+0000 7f2d54169700 15 req 0 0.000000000s s3:set_bucket_versioning server signature=875af26550fc7d62d23cbbf7cb0d4d3a61016e3871a2d3c0197589a4926c354d
2023-08-16T06:56:13.411+0000 7f2d54169700 15 req 0 0.000000000s s3:set_bucket_versioning client signature=875af26550fc7d62d23cbbf7cb0d4d3a61016e3871a2d3c0197589a4926c354d
2023-08-16T06:56:13.411+0000 7f2d54169700 15 req 0 0.000000000s s3:set_bucket_versioning compare=0
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning normalizing buckets and tenants
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s s->object=<NULL> s->bucket=test01
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning init permissions
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s s3:set_bucket_versioning get_bucket: bucket: test01
2023-08-16T06:56:13.411+0000 7f2d54169700 15 req 0 0.000000000s s3:set_bucket_versioning decode_policy Read AccessControlPolicy<AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Owner><ID>testid</ID><DisplayName>M. Tester</DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><ID>testid</ID><DisplayName>M. Tester</DisplayName></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy>
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning recalculating target
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning reading permissions
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning init op
2023-08-16T06:56:13.411+0000 7f2d54169700 10 get_quota: TODO
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning verifying op mask
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning verifying op permissions
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning verifying op params
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning pre-executing
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning check rate limiting
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning executing
2023-08-16T06:56:13.411+0000 7f2d54169700  5 req 0 0.000000000s s3:set_bucket_versioning NOTICE: call to do_aws4_auth_completion
2023-08-16T06:56:13.411+0000 7f2d54169700 10 req 0 0.000000000s s3:set_bucket_versioning v4 auth ok -- do_aws4_auth_completion
2023-08-16T06:56:13.411+0000 7f2d54169700  0 req 0 0.000000000s s3:set_bucket_versioning NOTICE: put_bucket_info on bucket=test01 returned err=-2201
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning completing
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning op status=-2201
2023-08-16T06:56:13.411+0000 7f2d54169700  2 req 0 0.000000000s s3:set_bucket_versioning http status=501
2023-08-16T06:56:13.411+0000 7f2d54169700  1 ====== req done req=0x7f2da817d750 op status=-2201 http_status=501 latency=0.000000000s ======
2023-08-16T06:56:13.411+0000 7f2d54169700  1 beast: 0x7f2da817d750: 10.0.2.100 - testid [16/Aug/2023:06:56:13.411 +0000] "PUT /test01?versioning HTTP/1.1" 501 128 - "aws-cli/1.22.34 Python/3.10.12 Linux/6.2.0-26-generic botocore/1.29.76" - latency=0.000000000s
2023-08-16T06:56:16.163+0000 7f2d9e9fe700 10 rgw UsageLogger: log_usage: TODO

With v0.18.0 this was possible.

@votdev votdev added kind/bug Something isn't working area/rgw-sfs RGW & SFS related kind/regression Existing behavior has been broken labels Aug 16, 2023
@github-actions github-actions bot added the triage/waiting Waiting for triage label Aug 16, 2023
@irq0
Copy link
Contributor

irq0 commented Aug 16, 2023

We don't support versioning suspended buckets
https://github.com/aquarist-labs/s3gw/issues/534

@votdev votdev closed this as completed Aug 16, 2023
@votdev votdev reopened this Aug 16, 2023
@votdev
Copy link
Contributor Author

votdev commented Aug 16, 2023

The UI must disable the checkbox then to prevent the user from doing that.

@votdev votdev changed the title rgw/sfs: Unable to update versioning configuration with >= v0.19.0 UI: Unable to update versioning configuration with >= v0.19.0 Aug 16, 2023
@votdev votdev added area/ui User Interface and removed area/rgw-sfs RGW & SFS related kind/regression Existing behavior has been broken triage/waiting Waiting for triage labels Aug 16, 2023
@votdev votdev self-assigned this Aug 16, 2023
@jecluis jecluis closed this as not planned Won't fix, can't repro, duplicate, stale Aug 16, 2023
@jecluis
Copy link
Contributor

jecluis commented Aug 16, 2023

sorry, closed by mistake 😅

@jecluis jecluis reopened this Aug 16, 2023
@github-actions github-actions bot added the triage/waiting Waiting for triage label Aug 16, 2023
votdev referenced this issue in votdev/s3gw-ui Aug 17, 2023
…abled

This is to prevent the user from disabling the versioning because right now you can go from:

- unversioned to versioned any time.
- versioned -> unversioned is not supported in S3.
- versioned -> suspended versioned is not supported by us.

Fixes: https://github.com/aquarist-labs/s3gw/issues/672

References:
- https://github.com/aquarist-labs/s3gw/issues/534
- https://github.com/aquarist-labs/s3gw/pull/497

Signed-off-by: Volker Theile <vtheile@suse.com>
votdev referenced this issue in votdev/s3gw-ui Aug 17, 2023
…abled

This is to prevent the user from disabling the versioning because right now you can go from:

- unversioned to versioned any time.
- versioned -> unversioned is not supported in S3.
- versioned -> suspended versioned is not supported by us.

Fixes: https://github.com/aquarist-labs/s3gw/issues/672

References:
- https://github.com/aquarist-labs/s3gw/issues/534
- https://github.com/aquarist-labs/s3gw/pull/497

Signed-off-by: Volker Theile <vtheile@suse.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui User Interface kind/bug Something isn't working triage/waiting Waiting for triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants