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

standalone nsfs: process getting crashed when we hit anonymous tests #7519

Closed
vh05 opened this issue Oct 3, 2023 · 1 comment · Fixed by #7997
Closed

standalone nsfs: process getting crashed when we hit anonymous tests #7519

vh05 opened this issue Oct 3, 2023 · 1 comment · Fixed by #7997
Labels

Comments

@vh05
Copy link
Contributor

vh05 commented Oct 3, 2023

Process getting crashed when we trigger anonumous object operations. I think the error handling at object_sdk.js i.e

throw new RpcError(......); needs to be checked.

When we run

s3tests_boto3/functional/test_s3.py::test_bucket_list_objects_anonymous_fail
s3tests_boto3/functional/test_s3.py::test_bucket_listv2_objects_anonymous_fail

Stack trace:


Oct-3 11:24:11.486 [nsfs/15] [ERROR] core.endpoint.s3.s3_rest:: S3 ERROR <?xml version="1.0" encoding="UTF-8"?><Error><Code>AccessDenied</Code><Message>Access Denied</Message><Resource>/ceph-xa7ico4c0ht6nc6ar2fcep6v-1?encoding-type=url</Resource><RequestId>lna8fa6z-1vbxv7-14sj</RequestId></Error> GET /ceph-xa7ico4c0ht6nc6ar2fcep6v-1?encoding-type=url {"host":"localhost","accept-encoding":"identity","user-agent":"Boto3/1.23.10 Python/3.6.8 Linux/6.2.8-100.fc36.x86_64 Botocore/1.26.10","amz-sdk-invocation-id":"cdb17cda-7926-4d60-a19e-5c367aa39098","amz-sdk-request":"attempt=1"} Error: Anonymous access to namespace buckets not supported
    at NsfsObjectSDK.authorize_request_account (/root/node_modules/noobaa-core/src/sdk/object_sdk.js:226:27)
    at async Promise.all (index 0)
    at async authorize_request (/root/node_modules/noobaa-core/src/endpoint/s3/s3_rest.js:200:5)
    at async handle_request (/root/node_modules/noobaa-core/src/endpoint/s3/s3_rest.js:113:5)
    at async Object.s3_rest [as handler] (/root/node_modules/noobaa-core/src/endpoint/s3/s3_rest.js:64:9)
Oct-3 11:24:11.487 [nsfs/15] [ERROR] CONSOLE:: PANIC: process uncaughtException Error: Access Denied
    at authorize_anonymous_access (/root/node_modules/noobaa-core/src/endpoint/s3/s3_rest.js:249:27)
    at authorize_request_policy (/root/node_modules/noobaa-core/src/endpoint/s3/s3_rest.js:219:9)
    at async Promise.all (index 1)
    at async authorize_request (/root/node_modules/noobaa-core/src/endpoint/s3/s3_rest.js:200:5)
    at async handle_request (/root/node_modules/noobaa-core/src/endpoint/s3/s3_rest.js:113:5)
    at async Object.s3_rest [as handler] (/root/node_modules/noobaa-core/src/endpoint/s3/s3_rest.js:64:9)


@vh05 vh05 added the NS-FS label Oct 3, 2023
Copy link

This issue had no activity for too long - it will now be labeled stale. Update it to prevent it from getting closed.

@github-actions github-actions bot added the Stale label Apr 25, 2024
@guymguym guymguym removed the Stale label Apr 28, 2024
@guymguym guymguym linked a pull request Apr 28, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants