@@ -1379,9 +1379,12 @@ libvirt get_machine_type
1379
1379
1380
1380
nova-manage libvirt get_machine_type [INSTANCE_UUID]
1381
1381
1382
- Fetch and display the recorded machine type of a libvirt instance.
1382
+ Fetch and display the recorded machine type of a libvirt instance identified
1383
+ by ``INSTANCE_UUID ``.
1383
1384
1384
- **Return Codes **
1385
+ .. versionadded :: 23.0.0 (Wallaby)
1386
+
1387
+ .. rubric :: Return codes
1385
1388
1386
1389
.. list-table ::
1387
1390
:widths: 20 80
@@ -1408,14 +1411,15 @@ libvirt update_machine_type
1408
1411
nova-manage libvirt update_machine_type \
1409
1412
[INSTANCE_UUID] [MACHINE_TYPE] [--force]
1410
1413
1411
- Set or update the recorded machine type of an instance.
1414
+ Set or update the recorded machine type of instance ``INSTANCE_UUID `` to
1415
+ machine type ``MACHINE_TYPE ``.
1412
1416
1413
- The following criteria must also be met when using this command:
1417
+ The following criteria must be met when using this command:
1414
1418
1415
1419
* The instance must have a ``vm_state `` of ``STOPPED ``, ``SHELVED `` or
1416
1420
``SHELVED_OFFLOADED ``.
1417
1421
1418
- * The machine type is supported. The supported list includes alias and
1422
+ * The machine type must be supported. The supported list includes alias and
1419
1423
versioned types of ``pc ``, ``pc-i440fx ``, ``pc-q35 ``, ``q35 ``, ``virt ``
1420
1424
or ``s390-ccw-virtio ``.
1421
1425
@@ -1430,7 +1434,15 @@ A ``--force`` flag is provided to skip the above checks but caution
1430
1434
should be taken as this could easily lead to the underlying ABI of the
1431
1435
instance changing when moving between machine types.
1432
1436
1433
- **Return Codes **
1437
+ .. versionadded :: 23.0.0 (Wallaby)
1438
+
1439
+ .. rubric :: Options
1440
+
1441
+ .. option :: --force
1442
+
1443
+ Skip machine type compatability checks and force machine type update.
1444
+
1445
+ .. rubric :: Return codes
1434
1446
1435
1447
.. list-table ::
1436
1448
:widths: 20 80
@@ -1445,7 +1457,7 @@ instance changing when moving between machine types.
1445
1457
* - 2
1446
1458
- Unable to find instance or instance mapping
1447
1459
* - 3
1448
- - The instance has an invalid vm_state
1460
+ - The instance has an invalid `` vm_state ``
1449
1461
* - 4
1450
1462
- The proposed update of the machine type is invalid
1451
1463
* - 5
@@ -1466,7 +1478,15 @@ This command is useful for operators attempting to determine when it is
1466
1478
safe to change the :oslo.config:option: `libvirt.hw_machine_type ` option
1467
1479
within an environment.
1468
1480
1469
- **Return Codes **
1481
+ .. versionadded :: 23.0.0 (Wallaby)
1482
+
1483
+ .. rubric :: Options
1484
+
1485
+ .. option :: --cell_uuid <cell_uuid >
1486
+
1487
+ The UUID of the cell to list instances from.
1488
+
1489
+ .. rubric :: Return codes
1470
1490
1471
1491
.. list-table ::
1472
1492
:widths: 20 80
@@ -1475,13 +1495,14 @@ within an environment.
1475
1495
* - Return code
1476
1496
- Description
1477
1497
* - 0
1478
- - Completed successfully, no instances found without hw_machine_type
1498
+ - Completed successfully, no instances found without ``hw_machine_type ``
1499
+ set
1479
1500
* - 1
1480
1501
- An unexpected error occurred
1481
1502
* - 2
1482
1503
- Unable to find cell mapping
1483
1504
* - 3
1484
- - Instances found without hw_machine_type set
1505
+ - Instances found without `` hw_machine_type `` set
1485
1506
1486
1507
1487
1508
See Also
0 commit comments