-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert swift quotas from GB to GiB #162
Comments
I'll update |
@knikolla Do you want me to rename variables that reference |
Don't do this as part of validate_allocations as that will introduce more complications. The reason why it would be more complicated like this, is because Create a new one-off command that will be called once to do the conversion, calling set_quota for only swift with the new values for all active/expired allocations on OpenStack.
Keep the underlying variable name the same, however introduce a new attribute name migration (similar to #163 ) that renames the attribute to a similar naming scheme. |
@knikolla Sorry for the late response. I see. I'll make a one-time command Right now, given the current code, I assume that all of our Swift quotas are in quantities that are divisible by 1000^2. After the conversion from Gb to Gib, we can still do checks in the future to see if any Swift quotas were (inadvertently or not) set in Gb or Gib by seeing if they're divisible by 1,000^2 or 1024^2. This would make the command not a one-time thing? |
@QuanMPhm can you link the PR here please. |
I don't think those checks are necessary. |
I'm sorry. I'm encountering a problem with running VMs on my computer, and it's taking an absurd amount of time |
10**9 = 1,000,000,000
to2**30 = 1,073,741,824
.validate_allocations
to set the new values on the allocations.Related nerc-project/operations#587
The text was updated successfully, but these errors were encountered: