[cyborg] 2027.1 (Indri) Virtual PTG Summary
Hi all o/ The Cyborg team met on Tuesday, October 13, for the 2027.1 virtual PTG, including a cross-project session with Nova. Thanks to everyone who took part. The full discussion notes are available here: https://etherpad.opendev.org/p/r.42ca3bf2adcaa246f111a7b92b1f9c52 TL;DR: We agreed to freeze and deprecate python-cyborgclient in favour of openstacksdk and OpenStackClient, and to deprecate experimental drivers without recent testing. We will continue completing the generic drivers and improving upgrades, documentation, and CI. With Nova, the next steps are SDK adoption, correcting accelerator-direct port handling, and reporting device statefulness to support stateless resize. The maintainer structure and project scope will continue to be refined in Gerrit. Before getting into the individual topics, I want to give some context for our priorities over the next 6 to 12 months. We want to improve upgrades, documentation, and testing, and complete the generic PCI, mdev, and NVMe driver capabilities. Having documented and tested generic implementations will let us retire redundant vendor-specific drivers that have not been maintained or adequately tested. We also want to improve integration and VM lifecycle support with Nova, reduce technical debt, and share maintenance responsibilities across more contributors. These priorities informed the PTG discussions, but they are not a promise to complete all of this in 2027.1. Retrospective ------------- We made progress on testing, CI, documentation, and cleanup during 2026.2. The pci-sim kernel module simulates devices so we can exercise PCI, mdev, and NVMe workflows in first-party CI without specialised hardware. Feedback on teim-review, the AI-assisted code-review tool, was also positive, with contributors finding its review comments useful. Other commitments and more technical debt than expected meant that some planned features had to be deferred. Reviewer availability remains a constraint. Improving coverage helps, but we also need more people who can review changes and take responsibility for parts of the project. Cycle planning and governance ----------------------------- We discussed when to check progress during the cycle and how to broaden responsibility for maintaining Cyborg. I will propose mid-cycle dates and other deadlines in the official release schedule. We discussed a January mid-cycle, but the dates are not yet final. The proposed maintainer guide describes roles with responsibility for specific repositories or areas of work, including separate technical review and merge-approval roles. The aim is to give contributors a path to take on more responsibility without first having to maintain the whole project. The team agreed with this general direction. Details will continue to be refined in Gerrit. Alongside mentoring, these roles should help distribute review, release, testing, and triage work rather than leaving those duties dependent on one person. https://review.opendev.org/c/openstack/cyborg/+/1008481 There is no planned move to distributed project leadership at present but we will re-evaluate that before the next election cycle. We also discussed the draft project-scope document. It describes Cyborg's role in discovering, preparing, allocating, and reclaiming devices through a vendor-neutral API. It separates that work from scheduling workloads and attaching devices, which belong to the consuming service. The document also sets out upgrade and compatibility goals. These include rolling upgrades, where services running different versions can coexist during an upgrade. Cyborg still needs object and RPC version negotiation to support that model fully. The team agreed with the document's direction, with no concerns or objections raised. Refinement will continue in Gerrit. https://review.opendev.org/c/openstack/cyborg/+/1008513 I have an action to review and update the core-team and drivers-team membership in the week following the PTG. I will send a separate email about that after this summary. Client transition ----------------- Cyborg has its own client package, python-cyborgclient, alongside support in openstacksdk, the shared Python client library. We discussed moving to the SDK and the official OpenStackClient command-line tool rather than continuing to maintain a separate Cyborg client. We agreed to freeze and deprecate python-cyborgclient. I will handle that follow-up. We will update the spec template to require API changes to include corresponding SDK and OpenStackClient changes. We also need DevStack functional jobs covering the Cyborg commands in OpenStackClient, running on changes to both Cyborg and OpenStackClient. Generic drivers, testing, and documentation ------------------------------------------- Generic drivers use common device interfaces rather than implementing similar behaviour separately for each vendor. Our priorities are to complete and harden generic PCI and NVMe storage support, along with mediated-device support, known as mdev. The goal is to have repeatable, documented workflows with CI coverage. Sharing bus-level discovery and lifecycle code should also help reduce duplication. We agreed to move experimental drivers to deprecated when they have not been tested in a recent release. We will follow Cinder-style expectations for Tempest testing, with CI exercising at least master. Software fixtures and simulated devices remain useful for first-party testing. One-off reports from private hardware may be acceptable while a driver is experimental, but they are not a substitute for ongoing CI when claiming full support. Where a generic driver covers a vendor-specific implementation, we should remove the duplicate implementation. This does not mean removing support for vendor hardware or ruling out vendor-specific code where standard interfaces cannot provide the required functionality. I will send a separate [cyborg][ops] email about driver deprecation. Documentation work includes OpenStackClient commands, mdev and NVMe, SDK service API changes, and separate configuration pages for each driver. We also need an uninstall procedure. We agreed to remove the notifications-impact section from the spec template and revisit the documentation work at mid-cycle. Ronelle will update the documentation etherpad to mark completed work as done and record the remaining work. We will continue using it to plan the documentation improvements: https://etherpad.opendev.org/p/openstack-cyborg-documentation To support the upgrade goals discussed above, we need to improve stable-branch and upgrade testing, and document the supported procedures and any required downtime. Placement modelling ------------------- Placement records available resources under resource providers. Cyborg currently creates one provider for each deployable, its record of a resource that can be assigned to a workload. That one-to-one mapping limits how we can represent resources such as virtual GPUs. The proposed model maps resource providers to driver devices instead, allowing multiple deployables to contribute to their inventories. We agreed that this is a useful future direction, although not necessarily required for every driver. It will require reshaping inventories and allocations, so the upgrade path needs to be part of the design. The proposal is under review in this spec: https://review.opendev.org/c/openstack/cyborg-specs/+/1008447 Service responsibilities and technical debt ------------------------------------------- The API receives requests, the agent manages devices on a host, and the conductor coordinates work between services. Today their responsibilities are inconsistent. For example, database and Placement interactions happen through different services depending on the operation. We discussed clarifying those boundaries, including moving device binding to the agent. The proposed object interaction API is the first step in making access to Cyborg's internal data objects consistent across services. I will write a short spec for the object interaction API to record its design and provide a reference for future development. We agreed on this order of work: 1. Define the object interaction API in a spec, then implement it. 2. Finish the NVMe implementation. 3. Propose a spec to move device binding logic from cyborg-api to cyborg-agent. 4. Propose a spec to move Placement interaction from conductor to agent. This is a multi-cycle effort. The sequence lets us make progress without trying to reorganise all service interactions at once. It also supports the broader work on compatibility and upgrades, but the object interaction API alone will not provide the complete rolling-upgrade model. Nova integration and VM lifecycle --------------------------------- Nova calls Cyborg to request and manage devices for its instances. We discussed moving those calls to the SDK's Cyborg proxy methods. We agreed to pursue that change through a specless blueprint, with a similar approach potentially used for Nova's own Placement calls. When using version 2.1 of the Cyborg API, Nova should authenticate with its own credentials and use its service-role token as the primary token rather than the end user's token. This lets Cyborg require the service role for service-to-service operations such as ARQ binding. Whether Nova will adopt 2.1 will be resolved in Gerrit after the port to the SDK proxy methods. We also discussed a bug affecting Neutron ports with the accelerator-direct vNIC type, which use network devices managed by Cyborg. The SmartNIC design requires Nova to obtain the physical network from the port's Neutron network and include the corresponding trait in the Placement request group for the Cyborg accelerator request. Cyborg reports that trait on the device's resource provider, allowing scheduling to select a device on the required physical network. Cyborg returns device attachment details to Nova in an attachment handle. Nova should not read the physical network from that handle or write that value into the Neutron port binding profile. Nova still needs to update the binding profile with the device's interface details, such as its PCI address. Correcting the physical-network handling is needed to replace the Intel-specific Cyborg NIC driver with the generic PCI driver for accelerator-direct ports. The expected flow is described in the SmartNIC specification: https://specs.openstack.org/openstack/nova-specs/specs/xena/implemented/srio... The bug is tracked in Launchpad, and the first of three fixes is proposed in Nova: https://bugs.launchpad.net/openstack-cyborg/+bug/2165432 https://review.opendev.org/c/openstack/nova/+/1005623 We also discussed how to support resize and migration for instances with Cyborg devices. A stateful device retains workload data that a move operation needs to preserve, such as data on an NVMe device. We agreed that the attachment handle should also report whether the device is stateful. I will add that requirement to the spec for PCI managed-mode support. Nova would initially allow resize between flavours using Cyborg devices only when those devices are stateless. We are aiming for an initial resize implementation in 2027.1. Stateful cold migration is follow-on work and will initially remain blocked, as it is today. Reporting that a device is stateful does not provide a way to transfer its data. Today shelving is allowed on the assumption that all devices are stateless. How we store stateful-device data for shelve and cross-cell cold migration remains an open question. Glance is the likely place to store that data, but the design is not settled. Live migration is future work for 2027.2 or later. Future PCIe topology support ---------------------------- Some workloads need the relationship between devices on the host's PCIe buses reflected inside the guest. A flat guest layout can hide locality between GPUs and network devices from applications using them together. We recognised this as an important future enhancement. There was also a related asynchronous discussion in the Nova PTG notes, following the mailing-list thread: https://etherpad.opendev.org/p/r.7071ecbacf44ba630af0bdceb837e7fa https://lists.openstack.org/archives/list/openstack-discuss@lists.openstack.... Nova needs native support for generating these topologies for its own managed devices first. Neutron ports, Cinder volumes, and Cyborg devices can then be integrated with that common framework over time. For Cyborg, the proposed integration is to provide topology hints through the attachment handle. These would describe how devices should be grouped and their host NUMA affinity. Nova would use that information to select the guest NUMA node for each device and generate the corresponding libvirt XML. Cyborg cannot provide this support independently of Nova's core framework; the attachment-handle details still need to be designed. In the Nova follow-up, moonsang plans to propose a new blueprint and spec and develop a proof of concept with tests. I offered to help with design, review, and testing. The work needs to cover upgrades, VM move operations, and an extensible topology generator. Hotplug also needs investigation, since not all PCIe layouts support adding and removing devices in the same way. The focus for 2027.1 is specification and prototyping, with possible enablement in 2027.2 or later. This is multi-cycle work, with Cyborg support following the Nova foundation. It should not delay the existing work on VM move operations with Cyborg devices. Next steps ---------- We will continue refining the proposals in Gerrit and tracking progress in our weekly meeting. If you use a Cyborg driver, please watch for the separate [cyborg][ops] email about driver deprecation. Help with driver testing and the remaining documentation work would be welcome, as would input on storing stateful-device data for shelve and cross-cell migration. regards Seán
participants (1)
-
Sean Mooney