Skip to content

refacto(compute): display instance type memory using an IEC size instead of an SI size#818

Merged
quentinalbertone merged 2 commits intomasterfrom
sc-171530/exo-cli-instance-type-memory-output-wrong-unit
Mar 27, 2026
Merged

refacto(compute): display instance type memory using an IEC size instead of an SI size#818
quentinalbertone merged 2 commits intomasterfrom
sc-171530/exo-cli-instance-type-memory-output-wrong-unit

Conversation

@quentinalbertone
Copy link
Copy Markdown
Contributor

@quentinalbertone quentinalbertone commented Mar 27, 2026

Description

Same size different unit

$> go run github.com/exoscale/cli compute instance-type list -v
+│ c6f99499-7f59-4138-9427-a09db13af2bc │ standard      │ large       │ 4      │ 8.0 GiB │ true       │
-│ c6f99499-7f59-4138-9427-a09db13af2bc │ standard      │ large       │ 4      │ 8.6 GB  │ true       │

(the json output remains unchanged)

Checklist

(For exoscale contributors)

  • Changelog updated (under Unreleased block, and add the Pull Request #number for each bit you add to the CHANGELOG.md)
  • Testing

Testing

$> go run github.com/exoscale/cli compute instance-type list -v
┼──────────────────────────────────────┼───────────────┼─────────────┼────────┼─────────┼────────────┼
│                  ID                  │    FAMILY     │    SIZE     │ # CPUS │ MEMORY  │ AUTHORIZED │
┼──────────────────────────────────────┼───────────────┼─────────────┼────────┼─────────┼────────────┼
│ 71004023-bb72-4a97-b1e9-bc66dfce9470 │ standard      │ micro       │ 1      │ 512 MiB │ true       │
│ b6cd1ff5-3a2f-4e9d-a4d1-8988c1191fe8 │ standard      │ tiny        │ 1      │ 1.0 GiB │ true       │
│ 21624abb-764e-4def-81d7-9fc54b5957fb │ standard      │ small       │ 2      │ 2.0 GiB │ true       │
│ b6e9d1e8-89fc-4db3-aaa4-9b4c5b1d0844 │ standard      │ medium      │ 2      │ 4.0 GiB │ true       │
│ c6f99499-7f59-4138-9427-a09db13af2bc │ standard      │ large       │ 4      │ 8.0 GiB │ true       │
│ 350dc5ea-fe6d-42ba-b6c0-efb8b75617ad │ standard      │ extra-large │ 4      │ 16 GiB  │ true       │
│ a216b0d1-370f-4e21-a0eb-3dfc6302b564 │ standard      │ huge        │ 8      │ 32 GiB  │ true       │
│ c0d3fb5d-6fdb-4a63-9361-3e5cfa8b36d0 │ standard      │ mega        │ 12     │ 64 GiB  │ false      │
│ 74bfaf4e-7d67-4adf-9322-12b9a36e84f7 │ standard      │ titan       │ 16     │ 128 GiB │ false      │
│ 011a5079-845d-467b-a660-8685dad1cb67 │ standard      │ jumbo       │ 24     │ 225 GiB │ false      │
│ f17df7cf-aced-4314-8709-4a0041408fdf │ storage       │ extra-large │ 4      │ 16 GiB  │ true       │
│ ebc4743c-9c7b-490d-8958-17a89561d9a3 │ storage       │ huge        │ 8      │ 32 GiB  │ true       │
│ a3bd08e2-bcdd-45b3-b6de-507d15056dae │ storage       │ mega        │ 12     │ 64 GiB  │ false      │
│ 964fd954-40ca-420f-871d-0aa7c5fac230 │ storage       │ titan       │ 16     │ 128 GiB │ false      │
│ dec751cc-6e3b-4ac1-8a14-fdfdf46fd1f7 │ storage       │ jumbo       │ 24     │ 225 GiB │ false      │
│ d141049f-71a3-4b1a-9016-3df0ac9a8cc9 │ gpu2          │ small       │ 12     │ 56 GiB  │ false      │
│ 98d53f21-06e2-4e38-8da7-d5e9ae570c83 │ gpu2          │ medium      │ 16     │ 90 GiB  │ false      │
│ 98981aba-d258-485b-89b2-52708768e88d │ gpu2          │ large       │ 24     │ 120 GiB │ false      │
│ e61976b7-3527-4898-9b2c-382d7eeb49a0 │ gpu2          │ huge        │ 48     │ 225 GiB │ false      │
│ 221d39c3-b2b9-4014-b32b-5d262f684eff │ cpu           │ extra-large │ 8      │ 16 GiB  │ true       │
│ 68c91810-55ed-4685-9771-00d9adf7b7c0 │ cpu           │ huge        │ 16     │ 32 GiB  │ true       │
│ c2f204df-29fc-4c20-b5c4-bdb21282cecc │ cpu           │ mega        │ 32     │ 64 GiB  │ false      │
│ e1ae0088-27fd-4185-a057-075ea0b0aa02 │ cpu           │ titan       │ 40     │ 128 GiB │ false      │
│ dd6abc94-337f-4732-baff-ed745f8bd4f5 │ memory        │ extra-large │ 2      │ 16 GiB  │ true       │
│ efbf55db-01c9-4c73-973f-cecc4d26dcde │ memory        │ huge        │ 4      │ 32 GiB  │ true       │
│ 306eeeae-38e9-4add-897b-4eff0b019a6d │ memory        │ mega        │ 8      │ 64 GiB  │ false      │
│ 68a4780f-cc91-4df6-a735-d679318289bc │ memory        │ titan       │ 12     │ 128 GiB │ false      │
│ 8a52e80d-b1d0-4efb-8059-a931fa33c5a1 │ standard      │ colossus    │ 40     │ 320 GiB │ false      │
│ 1552f778-726f-477f-85d2-92c3ca42e499 │ gpu3          │ small       │ 12     │ 56 GiB  │ false      │
│ 30d08069-5101-4029-a847-c5be5d916eb0 │ gpu3          │ medium      │ 24     │ 120 GiB │ false      │
│ 2bf11dfd-5915-496d-bc0d-9f836f2fe7be │ gpu3          │ large       │ 48     │ 224 GiB │ false      │
│ 5a426186-9f55-43a1-8e81-6736b2e4a73f │ gpu3          │ huge        │ 96     │ 448 GiB │ false      │
│ fc0b757a-1b8f-4fd5-9735-264f59002756 │ gpua5000      │ small       │ 12     │ 56 GiB  │ false      │
│ ac209dd4-e215-4a89-8608-c4e1ba7dd866 │ gpua5000      │ medium      │ 24     │ 112 GiB │ false      │
│ 9fdff27b-b2c9-4516-a595-83b9698da327 │ gpua5000      │ large       │ 48     │ 224 GiB │ false      │
│ d9a835e6-7981-48fc-a268-ca43ced32997 │ gpu3080ti     │ small       │ 12     │ 56 GiB  │ false      │
│ 9f33f188-ce4e-4e81-b31a-c2216f0b9c84 │ gpu3080ti     │ medium      │ 24     │ 112 GiB │ false      │
│ 8913865d-eb10-4ef8-aecf-0223114613b6 │ gpu3080ti     │ large       │ 48     │ 224 GiB │ false      │
│ fb31e2a8-925f-4f73-b92d-dd884b3599c5 │ gpua30        │ small       │ 12     │ 56 GiB  │ false      │
│ 321388bd-1991-4ce5-8407-f22afbffe9fa │ gpua30        │ medium      │ 16     │ 90 GiB  │ false      │
│ bc12df1e-f5c5-4950-9867-49a32d6f3928 │ gpua30        │ large       │ 24     │ 120 GiB │ false      │
│ 267f12ac-ba1c-42af-b6ae-60b9e8404972 │ gpua30        │ huge        │ 48     │ 225 GiB │ false      │
│ ea24461a-41e8-49f1-a22a-0f00e3507604 │ cpu           │ titan48c    │ 48     │ 128 GiB │ false      │
│ 68dec7c8-7ae8-43b6-ad4a-d508152110fe │ cpu           │ colossus    │ 80     │ 320 GiB │ false      │
│ 7a7a9948-0e0f-42b5-aa96-80276cb8a783 │ gpurtx6000pro │ small       │ 36     │ 120 GiB │ false      │
│ f4f20b0e-0770-4685-a9e2-e9ce6c4570dc │ gpurtx6000pro │ medium      │ 72     │ 240 GiB │ false      │
│ be66d71b-7c9b-4235-8d5f-8f1201526d05 │ gpurtx6000pro │ large       │ 144    │ 480 GiB │ false      │
│ 9fbe8633-b9e1-4921-ae4e-b245fda739fa │ gpurtx6000pro │ huge        │ 288    │ 960 GiB │ false      │
┼──────────────────────────────────────┼───────────────┼─────────────┼────────┼─────────┼────────────┼

@quentinalbertone quentinalbertone force-pushed the sc-171530/exo-cli-instance-type-memory-output-wrong-unit branch from a2a261f to d13513b Compare March 27, 2026 10:01
@quentinalbertone quentinalbertone merged commit 6083968 into master Mar 27, 2026
5 checks passed
@quentinalbertone quentinalbertone deleted the sc-171530/exo-cli-instance-type-memory-output-wrong-unit branch March 27, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants