Commit Graph

4408 Commits

Author SHA1 Message Date
Zuul 406eedb1ce Merge "Fix microversion 2.98 doc/tests for update/rebuild APIs" 2025-03-04 01:45:13 +00:00
Zuul cf326d4375 Merge "Fix microversion 2.96 for update/rebuild APIs" 2025-03-04 01:38:24 +00:00
René Ribaud 03915cd59d Update driver to deal with managed flag
The target goal of these series of patch is to enable VFIO devices
with kernel variant drivers.

Implements: blueprint enable-vfio-devices-with-kernel-variant-drivers
Change-Id: I7949ba6da8b6257865d8e9e48bf3feabc10bdf17
2025-03-02 21:37:47 +01:00
Ghanshyam Mann 7a00971b8f Fix microversion 2.98 doc/tests for update/rebuild APIs
microversion 2.98 changed the GET and GET list details
API response to expand the image field
- https://review.opendev.org/c/openstack/nova/+/939649

but when we change the views/servers.py then update server
and rebuild server API response also gets updated.
- https://review.opendev.org/c/openstack/nova/+/939649/12/nova/api/openstack/compute/views/servers.py#595

The microversion change actually changed the response for
the update and rebuild API but did not update the documentation
about this change. Neither added test for rebuild and update
which verify the response change.

Since microversion 2.75, we have made all these 4 APIs response
consistent.

Implements: blueprint image-properties-in-server-show

Change-Id: Ifc2edc59c601391a31fd8953c742969e5b368767
2025-02-28 17:13:59 +00:00
Ghanshyam Mann f9e89bc0d1 Fix microversion 2.96 for update/rebuild APIs
microversion 2.96 changed the GET and GET list details
APi response to add a new field 'pinned_availability_zone'
- https://review.opendev.org/c/openstack/nova/+/904568

but when we change the views/servers.py then update server
and rebuild server API response also gets updated.
- https://review.opendev.org/c/openstack/nova/+/904568/17/nova/api/openstack/compute/views/servers.py#309

The microversion change actually changed the response for
the update and rebuild API but did not update the documentation
about this change. Neither added test for rebuild and update
which verify the response change.

Since microversion 2.75, we have made all these 4 APIs response
consistent.

Change-Id: I31fbb3c5e689302713bfb7a254c5d0cc12de2dc4
2025-02-28 17:06:18 +00:00
Zuul a933c7fbab Merge "Add support for showing scheduler_hints in server details" 2025-02-28 02:14:07 +00:00
Zuul 4fdbbb6a91 Merge "doc: Use dnf instead of yum" 2025-02-27 23:06:26 +00:00
Douglas Viroel 2db8af71dd Add support for showing scheduler_hints in server details
Nova currently lacks a straightforward way to expose scheduler hints
associated with a server. This change extends existing Nova's
API to allow users to retrieve this information when it is available.
It adds a new API microversion to support returning the associated
scheduler_hints in ``GET /servers/{server_id}``, `GET /servers/detail``,
``PUT /servers/{server_id}`` and ``POST /server/{server_id}/action``
(rebuild) responses.

Implements: blueprint show-scheduler-hints-in-server-details
Change-Id: If0070cfbc218e0515bf3b58fc8c5067ae22c7072
2025-02-26 17:50:25 -03:00
Zuul 8de6a43a43 Merge "Per-Property ImageMetaPropsWeigher" 2025-02-25 19:16:49 +00:00
Michael Still cbc263f6bc libvirt: allow direct SPICE connections to qemu
This patch adds a new console type, "spice-direct", which provides
the connection information required to talk the native SPICE protocol
directly to qemu on the hypervisor. This is intended to be fronted
by a proxy which will handle authentication separately.

A new microversion is introduced which adds the type "spice-direct"
to the existing "spice" protocol.

An example request:

POST /servers/<uuid>/remote-consoles
{
  "remote_console": {
    "protocol": "spice",
    "type": "spice-direct"
  }
}

An example response:

{
  "remote_console": {
    "protocol": "spice",
    "type": "spice-direct",
    "url": "http://localhost:13200/nova?token=XXX";
  }
}

This token can then be used to lookup connection details for the
console using a request like this:

GET /os-console-auth-tokens/<consoletoken>

Which returns something like this:

{
  "console": {
    "instance_uuid": <uuid>,
    "host": <hypervisor>,
    "port": <a TCP port number>,
    "tls_port": <another TCP port number>,
    "internal_access_path": null
  }
}

APIImpact

Change-Id: I1e701cbabc0e2c435685e31465159eec09e3b1a0
2025-02-22 08:25:38 +11:00
Sylvain Bauza 7388362f28 Per-Property ImageMetaPropsWeigher
Add a new config option that will only check specific properties
and allow per-property weights.

Change-Id: Iae51558b9eb03da705e0da939cbd459b4d3b51f7
2025-02-20 03:00:03 +00:00
Sylvain Bauza acd6c733c6 Add a new ImagePropertiesWeigher
This weigher will check how many instances in the host have the image
properties that are requested and will prefer by default to pack
instances with the same properties.

Implements blueprint: image-metadata-props-weigher

Change-Id: I3bfed44bd089c6b226d13c3ac4a0003411737cbd
2025-02-20 02:49:08 +00:00
Rajesh Tailor 05c6b6cdbb Add support for showing image properties in server show response
This change adds a new api microversion to add support for
including image properties in ``server show`` and ``server list
--long`` responses as well as in response for ``server rebuild``
instance action.

Implements: blueprint image-properties-in-server-show
Change-Id: Ic135389954e43e6478288c0cdcffd780915cdb40
2025-02-12 10:57:03 +05:30
Zuul a2e555574c Merge "docs: Show the recommended way to PXE boot an instance" 2025-01-10 03:17:48 +00:00
Zuul 4871641b85 Merge "Modify the url of openstack client commands." 2025-01-10 03:02:42 +00:00
Takashi Kajinami d94a9925a7 doc: Use dnf instead of yum
The yum command has been replaced by the dnf command in recent releases
of Fedora-based distributions. Use the native command instead of
the alias kept for compatibility.

Partial-Bug: #2091586
Change-Id: I34cb4f28af65f426f8dd453435c79cbfd7d97394
2025-01-07 01:39:40 +00:00
Zuul 4860c40d82 Merge "Manila shares admin guide documentation" 2024-12-13 10:40:25 +00:00
Zuul 728337f200 Merge "Add instance.share_detach_error notification" 2024-12-12 21:36:13 +00:00
Zuul f729a7fb13 Merge "docs: Add contributor docs for response body validation" 2024-12-11 10:02:29 +00:00
Zuul ac5e9c71e9 Merge "Update contributor process documentation" 2024-12-10 18:56:46 +00:00
Zuul 6efc5eb3b7 Merge "Add instance.share_attach_error notification" 2024-12-09 19:35:07 +00:00
Zuul 338cbea72a Merge "Add shares to InstancePayload" 2024-12-09 00:38:54 +00:00
Zuul e517c36bcf Merge "Add instance.share_detach notification" 2024-12-08 04:07:34 +00:00
Zuul 8c9894e61b Merge "Add instance.share_attach notification" 2024-12-06 22:29:13 +00:00
Zuul a5997aa10f Merge "Attach Manila shares via virtiofs (API)" 2024-12-06 18:38:52 +00:00
Ildiko Vancsa 115c9b685f Update contributor process documentation
This patch updates the contributor/process.rst file to remove outdated
process descriptions, such as runways and gerrit review labels.

The patch also adds the description of the current tracking etherpad
that the team uses to track priorities and ongoing work items. It also
adds the link to the process.rst doc to README.rst for improved
visibility.

Closes-Bug: #2089325

Change-Id: I1713f84fc521759333d1d07fc12d0fc23a5cb807
Signed-off-by: Ildiko Vancsa <ildiko.vancsa@gmail.com>
2024-12-06 07:30:17 -08:00
Zuul 3b075492e3 Merge "[codespell] Fixes for latest version" 2024-11-27 18:15:39 +00:00
René Ribaud 73a7c1b295 Manila shares admin guide documentation
Manila is the OpenStack Shared Filesystems service.
These series of patches implement changes required in Nova to allow the shares
provided by Manila to be associated with and attached to instances using
virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares

Change-Id: I3963e9929c61751ed3ea176d1ef9dcc29c02de82
2024-11-27 14:09:45 +01:00
René Ribaud 7dfb15235e Add instance.share_detach_error notification
This patch add a notification when a share can not be unmounted on the
compute host.

Manila is the OpenStack Shared Filesystems service.
These series of patches implement changes required in Nova to allow the shares
provided by Manila to be associated with and attached to instances using
virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares
Change-Id: Ic1aeb2308af5bf645fa67fe1f47e5a076efd6071
2024-11-27 14:09:45 +01:00
René Ribaud 9f8b05fd90 Add instance.share_attach_error notification
This patch add a notification when a share can not be mounted on the
compute host.

Manila is the OpenStack Shared Filesystems service.
These series of patches implement changes required in Nova to allow the shares
provided by Manila to be associated with and attached to instances using
virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares
Change-Id: Idd44f5ad96c0a1dd62eba5d283e614c324854a80
2024-11-27 14:09:45 +01:00
René Ribaud bf96ca7c9a Add shares to InstancePayload
This patch add share information to the InstancePayload that can be sent
if the include_share_mapping configuration parameter is enabled.

Manila is the OpenStack Shared Filesystems service.
These series of patches implement changes required in Nova to allow the shares
provided by Manila to be associated with and attached to instances using
virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares

Change-Id: I3d5005eab9e3f23be149e955e8cb4608a6ee1312
2024-11-27 14:09:45 +01:00
René Ribaud 13d45b6d37 Add instance.share_detach notification
This patch add a notification when a share is detached from an instance.

Manila is the OpenStack Shared Filesystems service.
These series of patches implement changes required in Nova to allow the shares
provided by Manila to be associated with and attached to instances using
virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares

Change-Id: I203b71a39878c3929b22b53220f58c12c0a4c0b9
2024-11-27 14:09:45 +01:00
René Ribaud 320dca5391 Add instance.share_attach notification
This patch add a notification when a share is attached to an instance.

Manila is the OpenStack Shared Filesystems service.
These series of patches implement changes required in Nova to allow the shares
provided by Manila to be associated with and attached to instances using
virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares

Change-Id: I6fe3807164bd2ca6439342abd32f8e4ce9057c8c
2024-11-27 14:09:45 +01:00
René Ribaud 5e508a09b3 Attach Manila shares via virtiofs (API)
This patch introduce the REST API modifications to attach/detach a share
and list/show share mappings.

Manila is the OpenStack Shared Filesystems service.
These series of patches implement changes required in Nova to allow the shares
provided by Manila to be associated with and attached to instances using
virtiofs.

Implements: blueprint libvirt-virtiofs-attach-manila-shares

Change-Id: I0255a5697cd4ea148bd91c4f6fd183841d69a333
2024-11-27 14:09:42 +01:00
Zuul d9f9b3abb3 Merge "api: Add response body schemas for remaining server action APIs" 2024-11-26 20:24:35 +00:00
Zuul 68eb977654 Merge "Add [quota]unified_limits_resource_(strategy|list)" 2024-11-25 20:48:51 +00:00
Stephen Finucane 62e9484a8d docs: Add contributor docs for response body validation
...and expand the existing docs for validation.

Change-Id: Iaa82c1527c8cf6e7d274bba712d70778403d681e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-25 12:06:46 +00:00
Stephen Finucane b967f2a693 api: Add response body schemas for remaining server action APIs
This demonstrates far more complex response schemas, including the
response to the rebuild action which is effectively the response to the
server show API.

Change-Id: I6dc355f3c3f164d0bc7887a58e8b13979f0b476e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-22 14:23:48 -08:00
melanie witt fd5b692905 Add [quota]unified_limits_resource_(strategy|list)
This adds config options for unified limits quotas that allow
admin/operators to specify which resources they will require or ignore
to have unified limits set in Keystone.

The options are only used when ``[quota]driver`` is set to
``UnifiedLimitsDriver``.

When the resource strategy is set to 'require' (the default), the
resource list will represent the resources that are required to have a
registered limit set in Keystone.

When the resource strategy is set to 'ignore', the resource list will
represent the resources that will be ignored for quota enforcement if
they do not have a registered limit set in Keystone.

Related to blueprint unified-limits-nova-unset-limits

Change-Id: Icb08fadbdbf9c1bf354c3091f05edce80ebf68c3
2024-11-22 22:09:22 +00:00
Zuul 826557706d Merge "nova-manage: Add flavor scanning to migrate_to_unified_limits" 2024-11-21 17:13:26 +00:00
melanie witt 294e21c803 nova-manage: Add flavor scanning to migrate_to_unified_limits
This makes 'nova-manage limits migrate_to_unified_limits' scan the API
database for flavors and detect if any resource classes are missing
registered limits in Keystone.

Related to blueprint unified-limits-nova-unset-limits

Change-Id: I431176fd4d09201c551d8f82c71515cd4616cfea
2024-11-21 02:02:26 +00:00
Zuul ecc14912b6 Merge "docs: Correct unified limits CLI commands" 2024-11-12 12:22:13 +00:00
Zuul b58d98c933 Merge "docs: Change note:: to warning:: for service user token" 2024-11-12 12:22:06 +00:00
Zuul 110849f7f9 Merge "[doc]Developer doc about PCI and SRIOV testing" 2024-10-29 17:20:28 +00:00
Zuul 27aa5e1cee Merge "[ovo]Add igb value to hw_vif_model image property" 2024-10-29 17:05:55 +00:00
Balazs Gibizer f97d674d08 [doc]Developer doc about PCI and SRIOV testing
Change-Id: I8bbeb80735a8b56df753f15fd1216961213e82d0
2024-10-29 12:52:42 +01:00
Zuul a8733bae3c Merge "Adding sysctl changes for post-copy migration" 2024-10-26 06:07:18 +00:00
Balazs Gibizer 638efe3cd5 [ovo]Add igb value to hw_vif_model image property
Qemu 8.0 and libvirt 9.3.0 added support for qemu emulated igb
network device. This patch adds the new igb value for hw_vif_model
so nova could eventually support booting VMs with such devices.

Subsequent patches will enable libvirt support.

Implements: blueprint igb-vif-model

Change-Id: I9c8dc1a663d0534d62798c5b4c8d4539551f7ae4
2024-10-24 13:15:10 +02:00
Stephen Finucane 0db5dbc8ab [codespell] Fixes for latest version
Change-Id: I742b0b1c6e0cbfdeec40856eaae9021ceda7cb59
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-10-18 17:41:21 +01:00
Takashi Natsume cec149be9d Update contributor guide for 2025.1 Epoxy
Change-Id: Id4843abded5a96167c602974c730ed2fbb475ac8
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2024-10-12 12:35:07 +00:00