Title: Fail to create buckets in Minio Object Storage due to missing region header · Issue #11073 · apache/cloudstack · GitHub
Open Graph Title: Fail to create buckets in Minio Object Storage due to missing region header · Issue #11073 · apache/cloudstack
X Title: Fail to create buckets in Minio Object Storage due to missing region header · Issue #11073 · apache/cloudstack
Description: problem Attempting to create buckets on Minio Cluster via ACS resulted in an error due to an invalid authorization header. 2025-06-23 19:19:05,701 DEBUG [o.a.c.s.o.BucketApiServiceImpl] (API-Job-Executor-86:[ctx-5f0c251b, job-137139, ctx...
Open Graph Description: problem Attempting to create buckets on Minio Cluster via ACS resulted in an error due to an invalid authorization header. 2025-06-23 19:19:05,701 DEBUG [o.a.c.s.o.BucketApiServiceImpl] (API-Job-Ex...
X Description: problem Attempting to create buckets on Minio Cluster via ACS resulted in an error due to an invalid authorization header. 2025-06-23 19:19:05,701 DEBUG [o.a.c.s.o.BucketApiServiceImpl] (API-Job-Ex...
Opengraph URL: https://github.com/apache/cloudstack/issues/11073
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fail to create buckets in Minio Object Storage due to missing region header","articleBody":"### problem\n\nAttempting to create buckets on Minio Cluster via ACS resulted in an error due to an invalid authorization header.\n\n```\n2025-06-23 19:19:05,701 DEBUG [o.a.c.s.o.BucketApiServiceImpl] (API-Job-Executor-86:[ctx-5f0c251b, job-137139, ctx-e514f1d3]) (logid:93e5ca37) Failed to create bucket with name: test-1 com.cloud.utils.exception.CloudRuntimeException: The authorization header is malformed; the region is wrong; expecting 'ap-east-1'.\n at org.apache.cloudstack.storage.datastore.driver.MinIOObjectStoreDriverImpl.createBucket(MinIOObjectStoreDriverImpl.java:125)\n at org.apache.cloudstack.storage.object.store.ObjectStoreImpl.createBucket(ObjectStoreImpl.java:115)\n at org.apache.cloudstack.storage.object.BucketApiServiceImpl.createBucket(BucketApiServiceImpl.java:147)\n at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)\n at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n at java.base/java.lang.reflect.Method.invoke(Method.java:569)\n at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)\n at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)\n at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)\n at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:105)\n at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)\n at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)\n at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)\n at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)\n at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)\n at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)\n at jdk.proxy3/jdk.proxy3.$Proxy442.createBucket(Unknown Source)\n at org.apache.cloudstack.api.command.user.bucket.CreateBucketCmd.execute(CreateBucketCmd.java:188)\n at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:173)\n at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:110)\n at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:652)\n at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)\n at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)\n at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)\n at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)\n at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)\n at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:600)\n at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)\n at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)\n at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)\n at java.base/java.lang.Thread.run(Thread.java:840)\nCaused by: error occurred\nErrorResponse(code = AuthorizationHeaderMalformed, message = The authorization header is malformed; the region is wrong; expecting 'ap-east-1'., bucketName = test-1, objectName = null, resource = /test-1, requestId = 184BA7F365D8E2FD, hostId = ece579700584d4239837542582e082c7b7b451a09695091575f9aa679ff22c96)\nrequest={method=PUT, url=https://apac-1a-s3.ap-east-1.example.com/test-1, headers=Host: apac-1a-s3.ap-east-1.example.com\nAccept-Encoding: identity\nUser-Agent: MinIO (Linux; amd64) minio-java/dev\nContent-MD5: 1B2M2Y8AsgTpgAmY7PhCfg==\nx-amz-content-sha256: UNSIGNED-PAYLOAD\nx-amz-date: 20250623T111905Z\nAuthorization: ██\n}\nresponse={code=400, headers=Accept-Ranges: bytes\nContent-Length: 409\nContent-Type: application/xml\nServer: MinIO\nStrict-Transport-Security: max-age=31536000; includeSubDomains\nVary: Origin\nVary: Accept-Encoding\nX-Amz-Bucket-Region: ap-east-1\nX-Amz-Id-2: ece579700584d4239837542582e082c7b7b451a09695091575f9aa679ff22c96\nX-Amz-Request-Id: 184BA7F365D8E2FD\nX-Content-Type-Options: nosniff\nX-Ratelimit-Limit: 1605\nX-Ratelimit-Remaining: 1605\nX-Xss-Protection: 1; mode=block\nDate: Mon, 23 Jun 2025 11:19:03 GMT\n}\n\n at io.minio.S3Base$1.onResponse(S3Base.java:690)\n at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)\n ... 3 more\n\n2025-06-23 19:19:05,703 WARN [o.a.c.m.w.WebhookServiceImpl] (API-Job-Executor-86:[ctx-5f0c251b, job-137139, ctx-e514f1d3]) (logid:93e5ca37) Skipping delivering event Event {\"description\":\"{\\\"details\\\":\\\"Bucket Id: f88ce50f-9afa-4188-aeba-d521f1195d58\\\",\\\"event\\\":\\\"BUCKET.CREATE\\\",\\\"status\\\":\\\"Completed\\\"}\",\"eventId\":null,\"eventType\":\"BUCKET.CREATE\",\"eventUuid\":null,\"resourceType\":\"Bucket\",\"resourceUUID\":null} to any webhook as account ID is missing\n2025-06-23 19:19:05,703 WARN [o.a.c.f.e.EventDistributorImpl] (API-Job-Executor-86:[ctx-5f0c251b, job-137139, ctx-e514f1d3]) (logid:93e5ca37) Failed to publish event [category: ActionEvent, type: BUCKET.CREATE] on bus webhookEventBus\n2025-06-23 19:19:05,709 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-86:[ctx-5f0c251b, job-137139]) (logid:93e5ca37) Complete async job-137139, jobStatus: FAILED, resultCode: 530, result: org.apache.cloudstack.api.response.ExceptionResponse/null/{\"uuidList\":[],\"errorcode\":\"530\",\"errortext\":\"Failed to create bucket with name: test-1. The authorization header is malformed; the region is wrong; expecting 'ap-east-1'.\"}\n2025-06-23 19:19:05,710 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-86:[ctx-5f0c251b, job-137139]) (logid:93e5ca37) Publish async job-137139 complete on message bus\n2025-06-23 19:19:05,710 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-86:[ctx-5f0c251b, job-137139]) (logid:93e5ca37) Wake up jobs related to job-137139\n2025-06-23 19:19:05,710 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-86:[ctx-5f0c251b, job-137139]) (logid:93e5ca37) Update db status for job-137139\n2025-06-23 19:19:05,711 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (API-Job-Executor-86:[ctx-5f0c251b, job-137139]) (logid:93e5ca37) Wake up jobs joined with job-137139 and disjoin all subjobs created from job- 137139\n2025-06-23 19:19:05,715 DEBUG [c.c.a.ApiServer] (API-Job-Executor-86:[ctx-5f0c251b, job-137139]) (logid:93e5ca37) Retrieved cmdEventType from job info: BUCKET.CREATE\n2025-06-23 19:19:05,716 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl$5] (API-Job-Executor-86:[ctx-5f0c251b, job-137139]) (logid:93e5ca37) Done executing org.apache.cloudstack.api.command.user.bucket.CreateBucketCmd for job-137139\n2025-06-23 19:19:05,717 INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-86:[ctx-5f0c251b, job-137139]) (logid:93e5ca37) Remove job-137139 from job monitoring\n```\n\n### versions\n\nACS: 4.20.1\nOS: OL9 x86_64\nhypervisors: KVM\nstorage: NFS\nnetwork: vxlan\n\n### The steps to reproduce the bug\n\n1. Configure Object Storage Provider\n2. Create buckets \n\n\n\n### What to do about it?\n\n_No response_","author":{"url":"https://github.com/levindecaro","@type":"Person","name":"levindecaro"},"datePublished":"2025-06-23T13:29:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/11073/cloudstack/issues/11073"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ff6e1e6a-9e55-f11d-787e-baa1169b4616 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B398:20AD09:13209C8:1A94BFA:6A4CAB88 |
| html-safe-nonce | 4d7413859980cbf1e19dc887dbc960c02fff7aa60a2841a2144e390167a7a6a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzk4OjIwQUQwOToxMzIwOUM4OjFBOTRCRkE6NkE0Q0FCODgiLCJ2aXNpdG9yX2lkIjoiODk0Mjc3ODE5NTk0MzE0MDIzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bc56c396bfb9ddd4fea5a8ee9b86d6f3652b4fd712cb62b9dc9ec3b6307c9716 |
| hovercard-subject-tag | issue:3168219291 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/cloudstack/11073/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe19372b4b1fe337024eeb70df0dfd2802a63931a87edc180f1162b974f82ca4/apache/cloudstack/issues/11073 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe19372b4b1fe337024eeb70df0dfd2802a63931a87edc180f1162b974f82ca4/apache/cloudstack/issues/11073 |
| og:image:alt | problem Attempting to create buckets on Minio Cluster via ACS resulted in an error due to an invalid authorization header. 2025-06-23 19:19:05,701 DEBUG [o.a.c.s.o.BucketApiServiceImpl] (API-Job-Ex... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | levindecaro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/cloudstack git https://github.com/apache/cloudstack.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 9759448 |
| octolytics-dimension-repository_nwo | apache/cloudstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9759448 |
| octolytics-dimension-repository_network_root_nwo | apache/cloudstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ae90d426644ca15e89bacceb72e51f4e9dbf85f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width