Skip to content

Fix Volume update size handling #268

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

Merged
merged 1 commit into from
Jul 7, 2025
Merged

Fix Volume update size handling #268

merged 1 commit into from
Jul 7, 2025

Conversation

mchuang3
Copy link
Contributor

@mchuang3 mchuang3 commented Jul 7, 2025

Project API for Volume Create is in units of GiB. Terraform stores Volume "Size" in units of GB. For Create, GB is converted to GiB, but for Update, GB needs to be converted to KiB. See quake PR#5749 for more details.

Note: this issue is currently blocking dependabot update of the Client API for Boot-from-SAN related changes (PR #266). Once this PR is merged, will update #266.

units of GiB. Terraform stores Volume "Size" in units of GB. For
Create, GB is converted to GiB, but for Update, GB needs to be
converted to KiB. See quake PR#5749 for more detail.
@mchuang3 mchuang3 requested review from neilgierman and ron-saito July 7, 2025 21:52
@mchuang3 mchuang3 self-assigned this Jul 7, 2025
@mchuang3 mchuang3 added the bug Something isn't working label Jul 7, 2025
Copy link
Contributor

@neilgierman neilgierman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see there are no unit tests for this file. Maybe a note to add in the future?

@mchuang3
Copy link
Contributor Author

mchuang3 commented Jul 7, 2025

I see there are no unit tests for this file. Maybe a note to add in the future?

Not much unit test code in this repo, and none for Volume, but there is test coverage in the Acceptance tests here, which is how I noticed the failure in the depenabot update. Definitely would be good to add unit tests at some point. For now, relying on the acceptance tests.

@mchuang3 mchuang3 merged commit 7d87fce into master Jul 7, 2025
2 checks passed
@mchuang3 mchuang3 deleted the mhc/volume-update-fix branch July 7, 2025 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants