Skip to content

cann't create bucket from UI and CLI correctly - zonegroup #22

@rbaumgar

Description

@rbaumgar

after install on OpenShift 4.21 with

helm install s4 ./charts/s4 --namespace s4 --set auth.username=admin --set auth.password=admin123

try to create a bucket from UI, name: ui-bucket

{"level":30,"time":1774961721676,"pid":21,"hostname":"s4-5786495cdd-c8jjh","reqId":"req-t","method":"POST","url":"/api/buckets","hostname":"s4-s4.apps.ocp4.openshift.freeddns.org","remoteAddress":"10.128.4.2","msg":"incoming request"}
2026-03-31T12:55:21.697+0000 7fd8417656c0  1 ====== starting new request req=0x7fcc38566580 request_id=tx000005351a1e45b72159c-0069cbc439 =====
2026-03-31T12:55:21.701+0000 7fd8417656c0  0 req 6003757780420400540 0.004000156s s3:create_bucket ERROR: could not stat ui-bucket: (2) No such file or directory
2026-03-31T12:55:21.702+0000 7fd8417656c0  0 req 6003757780420400540 0.005000195s s3:create_bucket ERROR: could not write attribute user.X-RGW-POSIX-Bucket-Info for ui-bucket: (95) Operation not supported
2026-03-31T12:55:21.702+0000 7fd8417656c0  0 WARNING: set_req_state_err err_no=95 resorting to 500
2026-03-31T12:55:21.703+0000 7fd8417656c0  1 ====== req done req=0x7fcc38566580 op=create_bucket bucket=ui-bucket status=-95 http_status=500 latency=0.006000234s request_id=tx000005351a1e45b72159c-0069cbc439 ======
2026-03-31T12:55:21.703+0000 7fd8417656c0  1 beast: 0x7fcc38566580: ::1 - s4admin [31/Mar/2026:12:55:21.697 +0000] "PUT /ui-bucket/ HTTP/1.1" 500 205 - "aws-sdk-js/3.997.0 ua/2.1 os/linux#5.14.0-570.98.1.el9_6.x86_64 lang/js md/nodejs#22.22.0 api/s3#3.997.0 m/N,F,e" - latency=0.006000234s
2026-03-31T12:55:21.800+0000 7fd830f446c0  1 ====== starting new request req=0x7fcc38566580 request_id=tx000008c162a9b56383eaf-0069cbc439 =====
2026-03-31T12:55:21.832+0000 7fd830f446c0  1 ====== req done req=0x7fcc38566580 op=create_bucket bucket=ui-bucket status=-17 http_status=409 latency=0.032001249s request_id=tx000008c162a9b56383eaf-0069cbc439 ======
2026-03-31T12:55:21.832+0000 7fd830f446c0  1 beast: 0x7fcc38566580: ::1 - s4admin [31/Mar/2026:12:55:21.800 +0000] "PUT /ui-bucket/ HTTP/1.1" 409 258 - "aws-sdk-js/3.997.0 ua/2.1 os/linux#5.14.0-570.98.1.el9_6.x86_64 lang/js md/nodejs#22.22.0 api/s3#3.997.0 m/N,F,e" - latency=0.032001249s
[Audit] {
  timestamp: '2026-03-31T12:55:21.839Z',
  userId: 'admin',
  username: 'admin',
  eventType: 'bucket.create',
  action: 'create',
  resource: 'bucket:ui-bucket',
  status: 'failure',
  details: "Cannot modify existing bucket's zonegroup",
  clientIp: '10.128.4.2',
  requestId: undefined
} Audit event
[ErrorHandler] {
  error: {
    message: "Cannot modify existing bucket's zonegroup",
    name: 'BucketAlreadyExists',
    statusCode: 409,
    requestId: 'tx000008c162a9b56383eaf-0069cbc439',
    stack: "BucketAlreadyExists: Cannot modify existing bucket's zonegroup\n" +
      '    at AwsRestXmlProtocol.handleError (/opt/app-root/bin/s4/backend/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js:1814:27)\n' +
      '    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)'
  }
} S3 operation error
{"level":30,"time":1774961721845,"pid":21,"hostname":"s4-5786495cdd-c8jjh","reqId":"req-t","statusCode":409,"responseTime":169.19706696271896,"msg":"request completed"}

from the CLI with aws s3 mb s3://cli-bucket
error:
make_bucket failed: s3://cli-bucket An error occurred (BucketAlreadyExists) when calling the CreateBucket operation: Cannot modify existing bucket's zonegroup

2026-03-31T12:58:15.327+0000 7fd82cf3c6c0  1 ====== starting new request req=0x7fcc38566580 request_id=tx00000512437f2fd1adf11-0069cbc4e7 =====
2026-03-31T12:58:15.331+0000 7fd82cf3c6c0  0 req 5846859733001756433 0.004000156s s3:create_bucket ERROR: could not stat cli-bucket: (2) No such file or directory
2026-03-31T12:58:15.332+0000 7fd82cf3c6c0  0 req 5846859733001756433 0.005000195s s3:create_bucket ERROR: could not write attribute user.X-RGW-POSIX-Bucket-Info for cli-bucket: (95) Operation not supported
2026-03-31T12:58:15.332+0000 7fd82cf3c6c0  0 WARNING: set_req_state_err err_no=95 resorting to 500
2026-03-31T12:58:15.332+0000 7fd82cf3c6c0  1 ====== req done req=0x7fcc38566580 op=create_bucket bucket=cli-bucket status=-95 http_status=500 latency=0.005000195s request_id=tx00000512437f2fd1adf11-0069cbc4e7 ======
2026-03-31T12:58:15.332+0000 7fd82cf3c6c0  1 beast: 0x7fcc38566580: ::1 - s4admin [31/Mar/2026:12:58:15.327 +0000] "PUT /cli-bucket HTTP/1.1" 500 206 - "aws-cli/2.33.0 md/awscrt#0.31.1 ua/2.1 os/linux#6.19.8-200.fc43.x86_64 md/arch#x86_64 lang/python#3.14.3 md/pyimpl#CPython m/g,Z,b,N,E cfg/retry-mode#standard md/installer#source md/distrib#fedora.43 md/prompt#off md/command#s3.mb" - latency=0.005000195s
2026-03-31T12:58:16.345+0000 7fd82572d6c0  1 ====== starting new request req=0x7fcc38566580 request_id=tx0000014405f5e4b69433d-0069cbc4e8 =====
2026-03-31T12:58:16.354+0000 7fd82572d6c0  1 ====== req done req=0x7fcc38566580 op=create_bucket bucket=cli-bucket status=-17 http_status=409 latency=0.009000351s request_id=tx0000014405f5e4b69433d-0069cbc4e8 ======
2026-03-31T12:58:16.354+0000 7fd82572d6c0  1 beast: 0x7fcc38566580: ::1 - s4admin [31/Mar/2026:12:58:16.345 +0000] "PUT /cli-bucket HTTP/1.1" 409 259 - "aws-cli/2.33.0 md/awscrt#0.31.1 ua/2.1 os/linux#6.19.8-200.fc43.x86_64 md/arch#x86_64 lang/python#3.14.3 md/pyimpl#CPython m/g,Z,b,N,E cfg/retry-mode#standard md/installer#source md/distrib#fedora.43 md/prompt#off md/command#s3.mb" - latency=0.009000351s

but the buckets exists

$ aws s3 ls
1970-01-01 01:00:00 ui-bucket
1970-01-01 01:00:00 cli-bucket

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions