3.7. Managing Flavors¶
3.7.1. Creating Flavors¶
3.7.1.1. Syntax¶
usage: vinfra service compute flavor create [-h] [-f {json,table,value,yaml}]
[-c COLUMN] [--swap <size-mb>]
--vcpus <vcpus> --ram <size-mb>
<flavor-name>
Create a new compute flavor.
positional arguments:
<flavor-name> Flavor name
optional arguments:
-h, --help show this help message and exit
--swap <size-mb> Swap space size, in megabytes
--vcpus <vcpus> Number of virtual CPUs
--ram <size-mb> Memory size, in megabytes
...
3.7.1.2. Sample Output¶
This command creates a flavor myflavor
with 1 vCPU and 3 GB RAM.
# vinfra service compute flavor create myflavor --vcpus 1 --ram 3072
+-------+--------------------------------------+
| Field | Value |
+-------+--------------------------------------+
| id | 561a48ea-0c1c-4152-8b7d-e4b4af276c2d |
| name | myflavor |
| ram | 3072 |
| swap | 0 |
| vcpus | 1 |
+-------+--------------------------------------+
3.7.2. Listing Flavors¶
3.7.2.1. Syntax¶
usage: vinfra service compute flavor list [-h] [-f {json,table,value,yaml}]
[-c COLUMN]
List compute flavors.
...
3.7.2.2. Sample Output¶
This command lists all flavors.
# vinfra service compute flavor list
+--------------------------------------+----------+-------+------+-------+
| id | name | ram | swap | vcpus |
+--------------------------------------+----------+-------+------+-------+
| 100 | tiny | 512 | 0 | 1 |
| 101 | small | 2048 | 0 | 1 |
| 102 | medium | 4096 | 0 | 2 |
| 103 | large | 8192 | 0 | 4 |
| 104 | xlarge | 16384 | 0 | 8 |
| 561a48ea-0c1c-4152-8b7d-e4b4af276c2d | myflavor | 3072 | 0 | 1 |
+--------------------------------------+----------+-------+------+-------+
3.7.3. Showing Flavor Details¶
3.7.3.1. Syntax¶
usage: vinfra service compute flavor show [-h] [-f {json,table,value,yaml}]
[-c COLUMN]
<flavor>
Display compute flavor details.
positional arguments:
<flavor> Flavor ID or name
...
3.7.3.2. Sample Output¶
This command shows the details of the flavor myflavor
.
# vinfra service compute flavor show myflavor
+-------+--------------------------------------+
| Field | Value |
+-------+--------------------------------------+
| id | 561a48ea-0c1c-4152-8b7d-e4b4af276c2d |
| name | myflavor |
| ram | 3072 |
| swap | 0 |
| vcpus | 1 |
+-------+--------------------------------------+
3.7.4. Deleting Flavors¶
3.7.4.1. Syntax¶
usage: vinfra service compute flavor delete [-h] <flavor>
Delete a compute flavor.
positional arguments:
<flavor> Flavor ID or name
...
3.7.4.2. Sample Output¶
This command deletes the flavor myflavor
.
# vinfra service compute flavor delete myflavor
Operation successful
Version 2.5.0 — Dec 22, 2018