Skip to content

Issue while creating the bucket with MINIO in CloudStack 4.22 #13257

Closed

Description

@vivekcloud9559

I have added the object storage for MinIO-

Image

I have double cheked the details - it's working properly with command line - but when we create bucket it says -

Image

I have checked the global setting as well for default region, i have changed that too but still the same issue -

Image

I have checked the logs as well -

2026-05-27 11:05:17,570 DEBUG [o.a.c.s.o.BucketApiServiceImpl] (API-Job-Executor-3:[ctx-ff787543, job-4156, ctx-cf6871d1]) (logid:49a54801) Failed to create bucket with name: tesdt123 com.cloud.utils.exception.CloudRuntimeException: The authorization header is malformed; the region is wrong; expecting 'in-north-clt'.
at org.apache.cloudstack.storage.datastore.driver.MinIOObjectStoreDriverImpl.createBucket(MinIOObjectStoreDriverImpl.java:125)
at org.apache.cloudstack.storage.object.store.ObjectStoreImpl.createBucket(ObjectStoreImpl.java:115)
at org.apache.cloudstack.storage.object.BucketApiServiceImpl.createBucket(BucketApiServiceImpl.java:161)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:109)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
at com.sun.proxy.$Proxy456.createBucket(Unknown Source)
at org.apache.cloudstack.api.command.user.bucket.CreateBucketCmd.execute(CreateBucketCmd.java:188)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:173)
at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:110)
at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:698)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:646)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: error occurred
ErrorResponse(code = AuthorizationHeaderMalformed, message = The authorization header is malformed; the region is wrong; expecting 'in-north-clt'., bucketName = tesdt123, objectName = null, resource = /tesdt123, requestId = 18B35558C9438766, hostId = dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8)
request={method=PUT, url=https://north.blob.api.cloudtechtiq.in:35718/tesdt123, headers=Host: north.blob.api.cloudtechtiq.in:35718
Accept-Encoding: identity
User-Agent: MinIO (Linux; amd64) minio-java/dev
Content-MD5: 1B2M2Y8AsgTpgAmY7PhCfg==
x-amz-content-sha256: UNSIGNED-PAYLOAD
x-amz-date: 20260527T053517Z
Authorization: ██
}
response={code=400, headers=Server: nginx/1.18.0 (Ubuntu)
Date: Wed, 27 May 2026 05:35:17 GMT
Content-Type: application/xml
Content-Length: 419
Connection: keep-alive
Accept-Ranges: bytes

Activity

  1. boring-cyborg commented on May 27, 2026

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template!

  2. abh1sar commented on May 27, 2026

    @abh1sar
    Contributor

    Hi @vivekcloud9559 which 4.22 minor version are you on? I am not seeing objectstore.region setting in my env.
    What error do you get without setting objectstore.region?
    Also, can you review #11073 - if is solves your issue?

  3. vivekcloud9559 commented on May 28, 2026

    @vivekcloud9559
    Author

    Hello @abh1sar,

    I am using CloudStack 4.22.0.0. I have also tried without setting objectstore.region but it give me same error.

    Image Image
  4. abh1sar commented on May 28, 2026

    @abh1sar
    Contributor

    Is this some CloudStack fork or custom build? Because I don't see any such global setting.

    Image
  5. vivekcloud9559 commented on Jun 2, 2026

    @vivekcloud9559
    Author

    Hello @abh1sar, So it's not the custom build - it's the normal release.

    root@CLT-NOIDA-PROD-CS-01:# dpkg -l | grep "cloudstack"
    ii cloudstack-common 4.22.0.0-shapeblue0 all A common package which contains files which are shared by several CloudStack packages
    ii cloudstack-management 4.22.0.0-shapeblue0 all CloudStack server library
    ii cloudstack-usage 4.22.0.0-shapeblue0 all CloudStack usage monitor
    root@CLT-NOIDA-PROD-CS-01:
    #

    Image

    Can we do something about it ?

  6. locked and limited conversation to collaborators on Jun 24, 2026
  7. converted this issue into a discussion #13481 on Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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