Skip to content

NC | NSFS | Unsupported Action Which Fails Client Request (GET on bucket - website, replication, object_lock, tagging) #8928

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

Open
shirady opened this issue Apr 2, 2025 · 0 comments
Labels

Comments

@shirady
Copy link
Contributor

shirady commented Apr 2, 2025

Environment info

  • NooBaa Version: 5.17
  • Platform: NC

Actual behavior

  1. Currently we fail the following request on the client side: get_bucket_website, get_bucket_replication, get_bucket_object_lock, get_bucket_tagging.

Expected behavior

  1. Although we don't support them, our implementation can return empty / mock value to avoid the request failure.

Steps to reproduce

The logs attached were done by a software (Terraform) that run those operations under the hood, so we don't have the accurate steps.
My recommendation is to create an account and a bucket and run the above action on the bucket directly.

More information - Screenshots / Logs / Other output

Attached (gathered by @hseipp)

get_bucket_website:
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968]    [L1] core.endpoint.s3.s3_rest:: S3 REQUEST GET /user-bucket?website= op get_bucket_website request_id m8zohe56-441ufh-bkn { host: 'cesip.example.com:6443', 'user-agent': 'APN/1.0 HashiCorp/1.0 Terraform/1.11.3 (+https://www.terraform.io) terraform-provider-aws/5.92.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.36.3 ua/2.1 os/linux lang/go#1.23.7 md/GOOS#linux md/GOARCH#arm64 api/s3#1.78.2 m/n', 'accept-encoding': 'identity', 'amz-sdk-invocation-id': 'e0024ff2-e125-4005-b75f-c8d021a1e024', 'amz-sdk-request': 'attempt=1; max=25', authorization: 'AWS4-HMAC-SHA256 Credential=WVz537UOrjPkZThwQhXi/20250402/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date, Signature=4f13769ff2998e6a8ab742a6c2b47d91d4c0544186d99f7eac47692acc0b4a1a', 'x-amz-content-sha256': 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'x-amz-date': '20250402T084147Z' }
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968]    [L0] core.sdk.bucketspace_fs:: BucketSpaceFS.get_bucket_website: Bucket name user-bucket
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968] [ERROR] core.endpoint.s3.s3_rest:: S3 ERROR <?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchWebsiteConfiguration</Code><Message>The specified bucket does not have a website configuration</Message><Resource>/user-bucket?website=</Resource><RequestId>m8zohe56-441ufh-bkn</RequestId></Error> GET /user-bucket?website= {"host":"cesip.example.com:6443","user-agent":"APN/1.0 HashiCorp/1.0 Terraform/1.11.3 (+https://www.terraform.io) terraform-provider-aws/5.92.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.36.3 ua/2.1 os/linux lang/go#1.23.7 md/GOOS#linux md/GOARCH#arm64 api/s3#1.78.2 m/n","accept-encoding":"identity","amz-sdk-invocation-id":"e0024ff2-e125-4005-b75f-c8d021a1e024","amz-sdk-request":"attempt=1; max=25","authorization":"AWS4-HMAC-SHA256 Credential=WVz537UOrjPkZThwQhXi/20250402/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date, Signature=4f13769ff2998e6a8ab742a6c2b47d91d4c0544186d99f7eac47692acc0b4a1a","x-amz-content-sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","x-amz-date":"20250402T084147Z"} Error: The specified bucket does not have a website configuration    at Object.get_bucket_website [as handler] (/usr/local/noobaa-core/src/endpoint/s3/ops/s3_get_bucket_website.js:12:31)    at async handle_request (/usr/local/noobaa-core/src/endpoint/s3/s3_rest.js:162:19)    at async Object.s3_rest [as handler] (/usr/local/noobaa-core/src/endpoint/s3/s3_rest.js:67:9)

get_bucket_replication:
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968]    [L1] core.endpoint.s3.s3_rest:: S3 REQUEST GET /user-bucket?replication= op get_bucket_replication request_id m8zohe6f-4v8dc6-eps { host: 'cesip.example.com:6443', 'user-agent': 'APN/1.0 HashiCorp/1.0 Terraform/1.11.3 (+https://www.terraform.io) terraform-provider-aws/5.92.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.36.3 ua/2.1 os/linux lang/go#1.23.7 md/GOOS#linux md/GOARCH#arm64 api/s3#1.78.2 m/n', 'accept-encoding': 'identity', 'amz-sdk-invocation-id': '329f6d8c-3e25-4731-b3fd-3591a8607c96', 'amz-sdk-request': 'attempt=1; max=25', authorization: 'AWS4-HMAC-SHA256 Credential=WVz537UOrjPkZThwQhXi/20250402/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date, Signature=3f822c34f5bc4891de196eedc06bc44492d91388d17e91f3fcfcb79b48497045', 'x-amz-content-sha256': 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'x-amz-date': '20250402T084147Z' }
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968]    [L0] core.sdk.bucketspace_fs:: BucketSpaceFS.read_bucket_sdk_info: bucket name user-bucket
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968] [ERROR] core.endpoint.s3.s3_rest:: S3 ERROR <?xml version="1.0" encoding="UTF-8"?><Error><Code>ReplicationConfigurationNotFoundError</Code><Message>The replication configuration was not found</Message><Resource>/user-bucket?replication=</Resource><RequestId>m8zohe6f-4v8dc6-eps</RequestId></Error> GET /user-bucket?replication= {"host":"cesip.example.com:6443","user-agent":"APN/1.0 HashiCorp/1.0 Terraform/1.11.3 (+https://www.terraform.io) terraform-provider-aws/5.92.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.36.3 ua/2.1 os/linux lang/go#1.23.7 md/GOOS#linux md/GOARCH#arm64 api/s3#1.78.2 m/n","accept-encoding":"identity","amz-sdk-invocation-id":"329f6d8c-3e25-4731-b3fd-3591a8607c96","amz-sdk-request":"attempt=1; max=25","authorization":"AWS4-HMAC-SHA256 Credential=WVz537UOrjPkZThwQhXi/20250402/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date, Signature=3f822c34f5bc4891de196eedc06bc44492d91388d17e91f3fcfcb79b48497045","x-amz-content-sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","x-amz-date":"20250402T084147Z"} Error: The replication configuration was not found    at Object.get_bucket_replication [as handler] (/usr/local/noobaa-core/src/endpoint/s3/ops/s3_get_bucket_replication.js:13:11)    at async handle_request (/usr/local/noobaa-core/src/endpoint/s3/s3_rest.js:162:19)    at async Object.s3_rest [as handler] (/usr/local/noobaa-core/src/endpoint/s3/s3_rest.js:67:9)

get_bucket_object_lock:
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968]    [L1] core.endpoint.s3.s3_rest:: S3 REQUEST GET /user-bucket?object-lock= op get_bucket_object_lock request_id m8zohe6y-56e58u-1b8p { host: 'cesip.example.com:6443', 'user-agent': 'APN/1.0 HashiCorp/1.0 Terraform/1.11.3 (+https://www.terraform.io) terraform-provider-aws/5.92.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.36.3 ua/2.1 os/linux lang/go#1.23.7 md/GOOS#linux md/GOARCH#arm64 api/s3#1.78.2 m/n', 'accept-encoding': 'identity', 'amz-sdk-invocation-id': '0a13f9a4-8aa0-4d64-9eb3-e47cf04e12a5', 'amz-sdk-request': 'attempt=1; max=25', authorization: 'AWS4-HMAC-SHA256 Credential=WVz537UOrjPkZThwQhXi/20250402/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date, Signature=d4d1c04741590f92f73fdc78350d88cf32f17f59ec93289a5c1d9176a8afc47e', 'x-amz-content-sha256': 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'x-amz-date': '20250402T084147Z' }
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968] [ERROR] core.endpoint.s3.s3_rest:: S3 ERROR <?xml version="1.0" encoding="UTF-8"?><Error><Code>NotImplemented</Code><Message>A header you provided implies functionality that is not implemented.</Message><Resource>/user-bucket?object-lock=</Resource><RequestId>m8zohe6y-56e58u-1b8p</RequestId></Error> GET /user-bucket?object-lock= {"host":"cesip.example.com:6443","user-agent":"APN/1.0 HashiCorp/1.0 Terraform/1.11.3 (+https://www.terraform.io) terraform-provider-aws/5.92.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.36.3 ua/2.1 os/linux lang/go#1.23.7 md/GOOS#linux md/GOARCH#arm64 api/s3#1.78.2 m/n","accept-encoding":"identity","amz-sdk-invocation-id":"0a13f9a4-8aa0-4d64-9eb3-e47cf04e12a5","amz-sdk-request":"attempt=1; max=25","authorization":"AWS4-HMAC-SHA256 Credential=WVz537UOrjPkZThwQhXi/20250402/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date, Signature=d4d1c04741590f92f73fdc78350d88cf32f17f59ec93289a5c1d9176a8afc47e","x-amz-content-sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","x-amz-date":"20250402T084147Z"} Error: A header you provided implies functionality that is not implemented.    at Object.get_bucket_object_lock [as handler] (/usr/local/noobaa-core/src/endpoint/s3/ops/s3_get_bucket_object_lock.js:12:15)    at handle_request (/usr/local/noobaa-core/src/endpoint/s3/s3_rest.js:162:28)    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)    at async Object.s3_rest [as handler] (/usr/local/noobaa-core/src/endpoint/s3/s3_rest.js:67:9)

get_bucket_tagging:
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968]    [L1] core.endpoint.s3.s3_rest:: S3 REQUEST GET /user-bucket?tagging= op get_bucket_tagging request_id m8zohe7a-5doai4-fme { host: 'cesip.example.com:6443', 'user-agent': 'APN/1.0 HashiCorp/1.0 Terraform/1.11.3 (+https://www.terraform.io) terraform-provider-aws/5.92.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.36.3 ua/2.1 os/linux lang/go#1.23.7 md/GOOS#linux md/GOARCH#arm64 api/s3#1.78.2 m/n', 'accept-encoding': 'identity', 'amz-sdk-invocation-id': '09a8ec06-fa8e-4df5-b7eb-2d0bf2b84848', 'amz-sdk-request': 'attempt=1; max=25', authorization: 'AWS4-HMAC-SHA256 Credential=WVz537UOrjPkZThwQhXi/20250402/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date, Signature=696955f52b66b8cc10a2abe673a31c48595dec6639e899d377daaff871425e6f', 'x-amz-content-sha256': 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'x-amz-date': '20250402T084147Z' }
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968]    [L0] core.sdk.bucketspace_fs:: BucketSpaceFS.get_bucket_tagging: Bucket name user-bucket
Apr 02 08:41:47 m1.example.com [29968]: [nsfs/29968] [ERROR] core.endpoint.s3.s3_rest:: S3 ERROR <?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchTagSet</Code><Message>The tag provided is not found.</Message><Resource>/user-bucket?tagging=</Resource><RequestId>m8zohe7a-5doai4-fme</RequestId></Error> GET /user-bucket?tagging= {"host":"cesip.example.com:6443","user-agent":"APN/1.0 HashiCorp/1.0 Terraform/1.11.3 (+https://www.terraform.io) terraform-provider-aws/5.92.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go-v2/1.36.3 ua/2.1 os/linux lang/go#1.23.7 md/GOOS#linux md/GOARCH#arm64 api/s3#1.78.2 m/n","accept-encoding":"identity","amz-sdk-invocation-id":"09a8ec06-fa8e-4df5-b7eb-2d0bf2b84848","amz-sdk-request":"attempt=1; max=25","authorization":"AWS4-HMAC-SHA256 Credential=WVz537UOrjPkZThwQhXi/20250402/us-east-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date, Signature=696955f52b66b8cc10a2abe673a31c48595dec6639e899d377daaff871425e6f","x-amz-content-sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","x-amz-date":"20250402T084147Z"} Error: Tagging not found    at format_tagging_response (/usr/local/noobaa-core/src/endpoint/s3/ops/s3_get_bucket_tagging.js:23:15)    at Object.get_bucket_tagging [as handler] (/usr/local/noobaa-core/src/endpoint/s3/ops/s3_get_bucket_tagging.js:12:12)    at async handle_request (/usr/local/noobaa-core/src/endpoint/s3/s3_rest.js:162:19)    at async Object.s3_rest [as handler] (/usr/local/noobaa-core/src/endpoint/s3/s3_rest.js:67:9)

terraform_noobaa_errors.log

@shirady shirady added Non Containerized Non containerized NS-FS labels Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant