Skip to content

Commit 3e754a1

Browse files
committed
Fix for bucket quota not being set in Ceph
1 parent fcbc5a5 commit 3e754a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/storage/object/ceph/src/main/java/org/apache/cloudstack/storage/datastore/driver/CephObjectStoreDriverImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public void setBucketQuota(BucketTO bucket, long storeId, long size) {
290290
RgwAdmin rgwAdmin = getRgwAdminClient(storeId);
291291

292292
try {
293-
rgwAdmin.setBucketQuota(bucket.getName(), -1, size);
293+
rgwAdmin.setIndividualBucketQuota(null, bucket.getName(), -1, size * 1024 * 1024);
294294
} catch (Exception e) {
295295
throw new CloudRuntimeException(e);
296296
}

0 commit comments

Comments
 (0)