Skip to content

Commit eebffb3

Browse files
Petersingh Anburajnatsumetakashi
andcommitted
Making consistent used of GiB and MiB in API ref
This patch will replace all GB with GiB and MB with MiB to have a consistent use of units in the compute API reference and the placement API reference. Co-Authored-By: Takashi Natsume <[email protected]> Change-Id: Ie40413752b591b222ff29dbe975ddd7d10638eca Closes-Bug: #1752340
1 parent df3dd2b commit eebffb3

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

api-ref/source/parameters.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ minDisk:
979979
type: integer
980980
minRam:
981981
description: |
982-
Filters the response by a minimum RAM, in MB. For example, ``512``.
982+
Filters the response by a minimum RAM, in MiB. For example, ``512``.
983983
in: query
984984
required: false
985985
type: integer
@@ -2235,13 +2235,13 @@ disabled_reason_body:
22352235
type: string
22362236
disk_available_least:
22372237
description: |
2238-
The actual free disk on this hypervisor(in GB).
2238+
The actual free disk on this hypervisor(in GiB).
22392239
in: body
22402240
required: true
22412241
type: integer
22422242
disk_available_least_total:
22432243
description: |
2244-
The actual free disk on all hypervisors(in GB).
2244+
The actual free disk on all hypervisors(in GiB).
22452245
in: body
22462246
required: true
22472247
type: integer
@@ -3119,13 +3119,13 @@ forceDelete:
31193119
type: none
31203120
free_ram_mb:
31213121
description: |
3122-
The free RAM in this hypervisor(in MB).
3122+
The free RAM in this hypervisor(in MiB).
31233123
in: body
31243124
required: true
31253125
type: integer
31263126
free_ram_mb_total:
31273127
description: |
3128-
The free RAM on all hypervisors(in MB).
3128+
The free RAM on all hypervisors(in MiB).
31293129
in: body
31303130
required: true
31313131
type: integer
@@ -3185,7 +3185,7 @@ host_cpu:
31853185
type: integer
31863186
host_disk_gb:
31873187
description: |
3188-
The disk size on the host (in GB).
3188+
The disk size on the host (in GiB).
31893189
in: body
31903190
required: true
31913191
type: integer
@@ -3216,7 +3216,7 @@ host_maintenance_mode_in:
32163216
type: string
32173217
host_memory_mb:
32183218
description: |
3219-
The memory size on the host (in MB).
3219+
The memory size on the host (in MiB).
32203220
in: body
32213221
required: true
32223222
type: integer
@@ -3404,13 +3404,13 @@ hypervisor_diagnostics:
34043404
min_version: 2.48
34053405
hypervisor_free_disk_gb:
34063406
description: |
3407-
The free disk remaining on this hypervisor(in GB).
3407+
The free disk remaining on this hypervisor(in GiB).
34083408
in: body
34093409
required: true
34103410
type: integer
34113411
hypervisor_free_disk_gb_total:
34123412
description: |
3413-
The free disk remaining on all hypervisors(in GB).
3413+
The free disk remaining on all hypervisors(in GiB).
34143414
in: body
34153415
required: true
34163416
type: integer
@@ -4131,7 +4131,7 @@ links:
41314131
type: array
41324132
local_gb:
41334133
description: |
4134-
The disk in this hypervisor(in GB).
4134+
The disk in this hypervisor(in GiB).
41354135
in: body
41364136
required: true
41374137
type: integer
@@ -4151,19 +4151,19 @@ local_gb_simple_tenant_usage_optional:
41514151
type: integer
41524152
local_gb_total:
41534153
description: |
4154-
The disk on all hypervisors(in GB).
4154+
The disk on all hypervisors(in GiB).
41554155
in: body
41564156
required: true
41574157
type: integer
41584158
local_gb_used:
41594159
description: |
4160-
The disk used in this hypervisor(in GB).
4160+
The disk used in this hypervisor(in GiB).
41614161
in: body
41624162
required: true
41634163
type: integer
41644164
local_gb_used_total:
41654165
description: |
4166-
The disk used on all hypervisors(in GB).
4166+
The disk used on all hypervisors(in GiB).
41674167
in: body
41684168
required: true
41694169
type: integer
@@ -4221,47 +4221,47 @@ memory_details_diagnostics:
42214221
The dictionary with information about VM memory usage.
42224222
Following fields are presented in the dictionary:
42234223
4224-
- ``maximum`` - Amount of memory provisioned for the VM in MB (Integer)
4224+
- ``maximum`` - Amount of memory provisioned for the VM in MiB (Integer)
42254225
42264226
- ``used`` - Amount of memory that is currently used by the guest operating
4227-
system and its applications in MB (Integer)
4227+
system and its applications in MiB (Integer)
42284228
in: body
42294229
required: true
42304230
type: array
42314231
min_version: 2.48
42324232
memory_mb:
42334233
description: |
4234-
The memory of this hypervisor(in MB).
4234+
The memory of this hypervisor(in MiB).
42354235
in: body
42364236
required: true
42374237
type: integer
42384238
memory_mb_simple_tenant_usage:
42394239
description: |
4240-
The memory size of the server (in MB).
4240+
The memory size of the server (in MiB).
42414241
in: body
42424242
required: true
42434243
type: integer
42444244
memory_mb_simple_tenant_usage_optional:
42454245
description: |
4246-
The memory size of the server (in MB).
4246+
The memory size of the server (in MiB).
42474247
in: body
42484248
required: false
42494249
type: integer
42504250
memory_mb_total:
42514251
description: |
4252-
The memory of all hypervisors(in MB).
4252+
The memory of all hypervisors(in MiB).
42534253
in: body
42544254
required: true
42554255
type: integer
42564256
memory_mb_used:
42574257
description: |
4258-
The memory used in this hypervisor(in MB).
4258+
The memory used in this hypervisor(in MiB).
42594259
in: body
42604260
required: true
42614261
type: integer
42624262
memory_mb_used_total:
42634263
description: |
4264-
The memory used on all hypervisors(in MB).
4264+
The memory used on all hypervisors(in MiB).
42654265
in: body
42664266
required: true
42674267
type: integer
@@ -4491,7 +4491,7 @@ minDisk_body:
44914491
type: integer
44924492
minRam_body:
44934493
description: |
4494-
The minimum amount of RAM an image requires to function, in MB. For example, ``512``.
4494+
The minimum amount of RAM an image requires to function, in MiB. For example, ``512``.
44954495
in: body
44964496
required: true
44974497
type: integer
@@ -5325,14 +5325,14 @@ quota_tenant_or_user_id_body:
53255325
type: string
53265326
ram: &ram
53275327
description: |
5328-
The amount of allowed server RAM, in MB, for each tenant.
5328+
The amount of allowed server RAM, in MiB, for each tenant.
53295329
in: body
53305330
required: true
53315331
type: integer
53325332
ram_quota_class: &ram_quota_class
53335333
<<: *ram
53345334
description: |
5335-
The amount of allowed instance RAM, in MB, for the quota class.
5335+
The amount of allowed instance RAM, in MiB, for the quota class.
53365336
ram_quota_class_optional:
53375337
<<: *ram_quota_class
53385338
required: false
@@ -5345,7 +5345,7 @@ ram_quota_details:
53455345
type: object
53465346
ram_quota_optional:
53475347
description: |
5348-
The amount of allowed server RAM, in MB, for each tenant.
5348+
The amount of allowed server RAM, in MiB, for each tenant.
53495349
in: body
53505350
required: false
53515351
type: integer
@@ -6308,7 +6308,7 @@ total_local_gb_usage:
63086308
type: float
63096309
total_memory_mb_usage:
63106310
description: |
6311-
Multiplying the server memory size (in MB) by hours the server exists,
6311+
Multiplying the server memory size (in MiB) by hours the server exists,
63126312
and then adding that all together for each server.
63136313
in: body
63146314
required: true
@@ -6650,7 +6650,7 @@ volume_id_resp:
66506650
type: string
66516651
volume_size:
66526652
description: |
6653-
The size of the volume (in GB).
6653+
The size of the volume (in GiB).
66546654
This is integer value from range 1 to 2147483647
66556655
which can be requested as integer and string.
66566656
in: body

placement-api-ref/source/traits.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Traits
44

55
Traits are *qualitative* characteristics of resource providers.
66
The classic example for traits can be requesting disk from different
7-
providers: a user may request 80GB of disk space for an instance
7+
providers: a user may request 80GiB of disk space for an instance
88
(quantitative), but may also expect that the disk be SSD instead of
99
spinning disk (qualitative). Traits provide a way to mark that a
1010
storage provider is SSD or spinning.

0 commit comments

Comments
 (0)