jeanvetorello opened a new issue, #13224:
URL: https://github.com/apache/cloudstack/issues/13224

   ### problem
   
   When using Ceph RGW as Object Storage in CloudStack, bucket size is 
sometimes reported as 0 in CloudStack responses, even though the bucket has 
objects and RGW usage is non-zero.
   
   S3 bucket contains objects and total data is about 1.43 GB.
   RGW Admin listBucketInfo returns:
   size_kb: 1499662
   bytes equivalent: 1535653888
   CloudStack listBuckets/cmk still shows size = 0 for that bucket.
   
   
    s3cmd du -H s3://test-size-bucket/
   1254M 11 objects s3://test-size-bucket/
   
   cmk list buckets listall=true
   
   {
         "accesskey": "Hide",
         "account": "Hide,
         "created": "2026-05-22T13:13:17+0000",
         "encryption": false,
         "id": "2f612714-94dd-4ceb-8947-6f4cfcaeca05",
         "name": "test-size-bucket",
         "objectlocking": false,
         "objectstorageid": "Hide,
         "objectstore": "ceph",
         "provider": "Ceph",
         "quota": 100,
         "size": 0,
         "state": "Created",
         "tags": [],
         "url": "Hide",
         "usersecretkey": "hide",
         "versioning": false
       }
     ],
   
   <img width="1486" height="730" alt="Image" 
src="https://github.com/user-attachments/assets/6dad7eb2-fff8-4edf-9e0a-ba38e2978b56";
 />
   
   <img width="1741" height="33" alt="Image" 
src="https://github.com/user-attachments/assets/5f7aad36-fa8c-494d-8cdd-4a338b82d894";
 />
   
   
   
   Additional observation:
   Bucket usage records are also never generated in my environment. I am not 
sure whether this is directly related, but it may share the same root cause.
   
   ### versions
   
   cloudstack 4.22.1
   Object Storage provider: Ceph RGW
   Ceph release: Squid 
   
   
   ### The steps to reproduce the bug
   
   How to reproduce:
   
   Configure Ceph RGW as Object Storage in CloudStack.
   Create a bucket and upload multiple objects.
   Verify bucket usage directly in Ceph/S3 tools (non-zero).
   Run CloudStack bucket listing:
   API: listBuckets
   CLI: cmk list buckets listall=true
   Observe bucket size in response.
   Expected behavior:
   
   Bucket size returned by CloudStack should reflect actual bucket usage 
(non-zero, consistent with RGW usage).
   Actual behavior:
   
   CloudStack returns size = 0 for bucket(s) that have data.
   
   
   
   ### What to do about it?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to