Closed Milstein closed 6 months ago
The solution here involves:
OpenStack Swift Quota in Gigabytes
is set to 0
.0 * 1GB = 0
, set it to 1
. (The value is multiplied by 1GB because the ColdFront unit of measure we have settled on is GB, whereas Swift and RGW operate in Bytes)get_quota
returns 0 still, for a value of 1 bytes. Which should be the case considering the int typecasting.I asked @Milstein to manually set the RGW quota to 1 byte (not 1 gigabyte) and verify that it produces the desired outcome (inability to use object storage.)
@Milstein tested that setting the quota to 1 byte prevents people from upload files larger than 1 byte.
Until the code is in place and deployed setting the ColdFront quota to zero and then manually setting the RGW quota to 1 byte using the command line will prevent people from being billed for storage.
@Milstein is @knikolla's suggestion enough to close this and unblock https://github.com/nerc-project/operations/issues/304 ?
@Milstein checking if this issue is ready to close.
properties | Quota-Bytes
while checking usingopenstack object store account show
command.Quota-Bytes
property to0
orEmpty
so we need set it to1
byte that will the minimal we can set to prevent any future cost to the user.