Add Packed Virtqueue extra spec and image properties

Virtqueue feature was added to the metadata properties for flavor and
images

- Add the hw:virtio_packed_ring flavor extra spec and corresponding
  hw_virtio_packed_ring image property.

Nova spec: https://review.opendev.org/c/openstack/nova-specs/+/868377

Depends-On: https://review.opendev.org/c/openstack/nova/+/876075

Change-Id: Ia8caf39467a91431ca85b2a56ec93a60c41a8e7d
This commit is contained in:
Danylo Vodopianov 2023-05-03 11:47:22 +03:00
parent db41ce6728
commit 66566c3286
4 changed files with 29 additions and 1 deletions

View File

@ -446,6 +446,15 @@ Here is a list of useful image properties and the values they expect.
Only supported by the libvirt driver.
``hw_virtio_packed_ring``
:Type: bool
Enables Packed VIRT-IO Queue feature. When set to true, instance will be
scheduled to hosts that support negotiating the packed virt queue format.
This feature may or may not be enabled depending on the guest driver.
When used it will improve the small packet performance of network io.
Only supported by the libvirt driver.
``hw_pointer_model``
:Type: str

View File

@ -33,6 +33,13 @@
"type": "string",
"enum": ["true", "false"]
}
,
"virtio_packed_ring": {
"title": "Virtio Packed Ring",
"description": "Enables Packed VIRT-IO Queue feature. When set to true, instance will bescheduled to hosts that support negotiating the packed virt queue format. This feature may or may not be enabled depending on the guest driver. When used it will improve the small packet performance of network io.",
"type": "string",
"enum": ["true", "false"]
}
},
"objects": []
}

View File

@ -773,7 +773,7 @@ class MetadefLoadUnloadTests:
'CIM::VirtualSystemSettingData': 17,
'OS::Compute::XenAPI': 1,
'OS::Compute::InstanceData': 2,
'OS::Compute::Libvirt': 3,
'OS::Compute::Libvirt': 4,
'OS::Compute::VMwareQuotaFlavor': 2,
'OS::Cinder::Volumetype': 1,
'OS::Glance::Signatures': 4,

View File

@ -0,0 +1,12 @@
---
upgrade:
- |
The following metadata definitions have been modified:
* Added ``hw:virtio_packed_ring`` boolean in the ``OS::Nova::Flavor``
namespace, and ``hw_virtio_packed_ring`` boolean in the
``OS::Glance::Image`` namespace.
You may upgrade these definitions using:
``glance-manage db load_metadefs [--path <path>] [--merge] [--prefer_new]``