Services API¶
https://blueprints.launchpad.net/openstack-cyborg/+spec/services-api
Every major OpenStack service (Nova, Neutron, Cinder, Ironic) exposes a
services or agents API that allows operators to see which service instances are
running, determine whether they are healthy, and take administrative actions on
them. Cyborg has no such API. This spec adds service registration, heartbeat
tracking, and a /v2/services REST endpoint so that operators can answer
basic questions like “is the cyborg-agent on compute-7 alive?”
Problem Description¶
Cyborg runs three service binaries: two RPC services cyborg-conductor and
cyborg-agent which start via RPCService in
cyborg/common/service.py, and a WSGI service cyborg-api which starts
via WSGIService. None of them register in a database. There is no service
database model, no versioned service object, and no heartbeat tracking. Cyborg
persists state about accelerator devices, deployables, and accelerator
requests, but has no record of what services are running or their health.
Without a services API, operators cannot answer basic questions:
Is the cyborg-agent on compute-7 alive?
Which hosts are running cyborg-agent and when did they last report in?
This gap is especially problematic in large deployments where the agent fleet spans hundreds of compute nodes. It also blocks future work on rolling upgrades, which require service version tracking.
Use Cases¶
As an operator, I want to list all running Cyborg services and their health so that I can identify which hosts have agents that are not reporting in. Today I must rely on external monitoring or SSH into each compute node to check process status.
As an operator, I want to remove stale service entries for decommissioned hosts so that the service list reflects the actual state of the deployment. This would also allow us to partially address https://bugs.launchpad.net/openstack-cyborg/+bug/2150086 regarding a procedure for uninstalling Cyborg from a compute host. A service delete request to the API provides a signal we can use to clean up related resources automatically, similar to how service deletion works in Nova.
As a developer implementing rolling upgrades, I need a version column in
the services table so that services can negotiate compatible RPC and object
versions internally.
Note
While this spec lays the foundation for future rolling upgrades and skip-level upgrades, completing that functionality is out of scope for this spec.
Proposed Change¶
Data model: services table¶
A new Alembic migration adds a services table:
Column |
Type |
Notes |
|---|---|---|
|
BigInteger |
PK, auto-increment |
|
String(36) |
Unique, not null |
|
String(255) |
Not null. |
|
String(255) |
Not null. |
|
String(255) |
Nullable. RPC topic ( |
|
Integer |
Default 0, incremented on each heartbeat |
|
DateTime |
Nullable. Set only when |
|
Integer |
Not null. Version of the running service |
|
DateTime |
Inherited from |
|
DateTime |
Inherited from |
A unique constraint is placed on (host, binary).
Following Nova’s pattern, last_seen_up is only updated when
report_count increases (i.e., during heartbeats). This is distinct from
updated_at, which changes on any write to the service row. Liveness checks
must use last_seen_up to avoid making a non-heartbeating service appear
alive after an unrelated write. See Nova’s service_update() in
nova/db/main/api.py for the reference implementation.
A BigInteger column service_id will be added to the devices table
as a foreign key to services.id. The ownership relationship is recorded
where it actually holds – a cyborg-agent manages a set of devices – and
deployables and attachment handles inherit the relationship transitively
(deployables.device_id and attach_handles.deployable_id are both
non-nullable, so every deployable and handle resolves to exactly one service
through its device). This also enables joins on service id rather than
matching on the host string, following the approach Nova took in the
compute-object-ids spec when it added compute_id to the instances and
migrations tables.
Versioned object: Service¶
A new file cyborg/objects/service.py defines the Service versioned
object:
Inherits from
CyborgObject(matchingDevice,Deployable, etc.)Fields mirror the DB columns
Methods:
get_by_uuid()get_by_host_and_binary()list()create()save()destroy()
DB access pattern¶
This section proposes a direction for the Service object’s DB access
pattern and is subject to reviewer feedback. Reviewers may prefer to continue
with the existing approach of adding methods to cyborg/db/api.py and
cyborg/db/sqlalchemy/api.py.
Existing Cyborg objects access the database through an abstract DB API layer
(cyborg/db/api.py -> cyborg/db/sqlalchemy/api.py). Most DB API methods
have a single caller – the corresponding object method – making the
abstraction layer largely indirection with no practical benefit. The abstract
Connection base class was designed for pluggable storage backends, but no
OpenStack project ships a second backend.
Nova still has its DB API layer (nova/db/main/api.py) and continues to use
it. However, Placement – extracted from Nova – was designed without an
abstract DB API layer: its db_api.py is only a 45-line connection manager,
and all SQLAlchemy queries live directly in the objects, decorated with
@db_api.placement_context_manager.reader/writer. Cyborg is closer in size
and complexity to Placement than to Nova, making this a potentially more
appropriate model to follow.
Cyborg is small enough today (~50 DB API methods) that establishing this direction now is low-cost. Waiting until after services, notifications, and rolling upgrade infrastructure are added following the old pattern would make the eventual migration significantly more work.
The proposed approach is for the Service object to place its SQLAlchemy
queries directly in the object class methods, with no new methods added to
cyborg/db/api.py or cyborg/db/sqlalchemy/api.py. Existing objects and
the direct DB API usage in quota.py would not be migrated as part of this
spec – that is separate cleanup work.
Service registration and heartbeat¶
RPC services (cyborg-conductor, cyborg-agent)¶
Stable service UUID¶
To detect host renames and prevent duplicate service rows, each
cyborg-agent persists its service UUID to a local state file on disk,
following the approach from Nova’s stable-compute-uuid spec.
On first startup, the agent generates a UUID and writes it to
$state_path/service_uuid (e.g. /var/lib/cyborg/service_uuid). On
subsequent startups, the agent reads the file and uses that UUID to look up
its existing service row. If the hostname in the DB row does not match
CONF.host, a rename has occurred and the agent refuses to start, logging
an error.
This prevents the case where renaming a host silently creates a new service
row while the old one becomes permanently stale, and the service_id FK
on any associated devices becomes orphaned.
Modify RPCService.start() in cyborg/common/service.py:
After
self.manager.init_host(), call_register_service():First query
Service.get_by_host_and_binary(host, binary). This mirrors Nova’s idempotent find-or-create startup behavior.Read the local UUID from
$state_path/service_uuidif it exists.If a local UUID exists, look up the service row by UUID:
If the UUID row exists and its
hostdiffers fromCONF.host, refuse to start (possible host rename).If the UUID row exists and host matches, use that row.
If the UUID row is missing but
(host, binary)exists, adopt the(host, binary)row and rewrite$state_path/service_uuidwith that row’s UUID.If both lookups are missing, create a new
Servicerow using the persisted UUID.
If no local UUID exists:
If
(host, binary)exists, adopt that row and write its UUID to$state_path/service_uuid.Otherwise create a new row and write its UUID to
$state_path/service_uuid.
If a create races with a sibling worker and hits a duplicate-key error on
(host, binary), re-fetch by(host, binary)and continue.Once the row is selected, increment
report_countand updateversion(treated as the initial heartbeat).For
cyborg-agent: backfilldevices.service_idfor all devices on this host – that is, setservice_idto the new service row’s id for every device withhostname = CONF.hostthat does not already reference it. Because Cyborg does not support rolling upgrades, every agent restarts with new code during the upgrade maintenance window, so existing devices are associated with their service record as part of the same startup that creates it – no separate backfill migration is required for hosts that come back. Devices discovered later (e.g. hot-plugged hardware) are handled where their rows are written: the conductor setsservice_idwhen creating device rows duringreport_data, resolving the service row by hostname.
Add periodic task
_report_state()(everyreport_intervalseconds):Increment
report_countCall
service.save()last_seen_upis set insave()only whenreport_countincreases
New config options:
[DEFAULT] report_interval– Integer, default 300 seconds. How often each service reports its state to the database.[DEFAULT] service_down_time– Integer, default 900 seconds. Elapsed time sincelast_seen_upafter which a service is considered down.
WSGI service (cyborg-api)¶
cyborg-api is a WSGI service, not an RPC service. It does not listen on a
message bus topic and cannot heartbeat through the same periodic task mechanism
as the RPC services.
Modify WSGIService.start() in cyborg/common/service.py to use the same
find-or-create behavior by (host, binary) for cyborg-api startup:
reuse and update an existing row on restart, create only when missing. New
rows use binary = "cyborg-api", topic = None, report_count = 0.
Unlike Nova, which filters WSGI services out of its os-services list response,
Cyborg includes them. Hiding WSGI services prevents operators from seeing where
all API services are deployed, which undermines the purpose of the services
API. WSGI service rows appear in GET /v2/services with state: null and
last_seen_up: null since they do not heartbeat.
Liveness detection¶
The state field is computed at API response time (not stored). For RPC
services it takes one of two values: "up" or "down". For WSGI
services (cyborg-api), state is null because they do not
heartbeat. For RPC services:
Use
last_seen_upif not NULL, otherwise fall back tocreated_at. This matches Nova’sis_up()logic innova/servicegroup/drivers/db.pyand means a freshly registered service that has not yet heartbeated is considered “up” forservice_down_timeseconds after creation, rather than immediately appearing “down”.state = "up"if(now - COALESCE(last_seen_up, created_at)) < service_down_timestate = "down"otherwise
For WSGI services (cyborg-api): WSGI services do not heartbeat, so
last_seen_up is always NULL and state is returned as null in the
API response.
REST API: /v2/services¶
A new controller cyborg/api/controllers/v2/services.py is wired into the v2
Controller in __init__.py. The endpoint requires a new microversion.
GET /v2/services (list all services)
Normal response code: 200
Optional query parameters:
binary– exact-match filter on the service binary name (e.g.,cyborg-agent,cyborg-conductor).host– exact-match filter on the hostname.
Both parameters may be combined.
Example response:
{
"services": [
{
"uuid": "d9d2f0c6-3e4a-4b8c-9f1a-2b3c4d5e6f7a",
"host": "compute-7",
"binary": "cyborg-agent",
"state": "up",
"last_seen_up": "2026-07-20T12:00:00Z",
"report_count": 1842,
"updated_at": "2026-07-20T12:00:00Z",
"created_at": "2026-07-15T08:00:00Z"
},
{
"uuid": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"host": "controller-1",
"binary": "cyborg-conductor",
"state": "up",
"last_seen_up": "2026-07-20T12:00:05Z",
"report_count": 5463,
"updated_at": "2026-07-20T12:00:05Z",
"created_at": "2026-06-01T10:30:00Z"
},
{
"uuid": "b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
"host": "controller-1",
"binary": "cyborg-api",
"state": null,
"last_seen_up": null,
"report_count": 0,
"updated_at": "2026-07-15T08:00:00Z",
"created_at": "2026-07-15T08:00:00Z"
}
]
}
The API response includes a subset of the data model fields. Internal fields
not exposed through the API: id (integer PK – uuid is used for API
identification), topic (RPC bus topic – an internal implementation
detail), and version (service object version – internal to rolling upgrade
negotiation). The computed state field is added at response time.
GET /v2/services/{uuid} (show single service)
Normal response code: 200
Error response codes: 404
Returns a single service object. Returns 404 if the UUID does not match a known service.
Example response (RPC service):
{
"service": {
"uuid": "d9d2f0c6-3e4a-4b8c-9f1a-2b3c4d5e6f7a",
"host": "compute-7",
"binary": "cyborg-agent",
"state": "up",
"last_seen_up": "2026-07-20T12:00:00Z",
"report_count": 1842,
"updated_at": "2026-07-20T12:00:00Z",
"created_at": "2026-07-15T08:00:00Z"
}
}
Example response (WSGI service):
{
"service": {
"uuid": "b2c3d4e5-6f7a-8b9c-0d1e-2f3a4b5c6d7e",
"host": "controller-1",
"binary": "cyborg-api",
"state": null,
"last_seen_up": null,
"report_count": 0,
"updated_at": "2026-07-15T08:00:00Z",
"created_at": "2026-07-15T08:00:00Z"
}
}
DELETE /v2/services/{uuid} (delete a service and clean up resources)
Normal response code: 204
Error response codes: 404, 409
Removes a service entry and cleans up associated resources. Returns 404 if the UUID does not match a known service. Returns 409 Conflict if the service’s state is “up” – deleting a live service is not permitted because the agent may be actively managing deployables and resource providers. Operators must wait for the service to go down (or stop it) before deleting.
For cyborg-agent services, the API first verifies delete preconditions,
then dispatches cleanup to the conductor. A 409 response is returned if any
precondition fails: service state is up, bound ARQs are still present, or
there are allocations against any of the Placement resource providers owned
by the service’s deployables (queried synchronously via the Placement API).
The allocation check runs in the API alongside the other preconditions –
before cleanup is dispatched – so that no internal cleanup happens ahead of
a refusal and the deployment is never left half-cleaned; this matches the
Nova behavior of refusing to delete a compute service that is hosting
instances. As with the bound ARQ check, the allocation precondition is
best-effort and subject to a race (an allocation could be created between
the check and the conductor’s cleanup), which is acceptable for an
operator-driven decommissioning workflow.
If preconditions pass, the conductor:
Deletes the Placement resource providers for those deployables. This is the only cleanup step that can be refused externally – Placement returns 409 for a resource provider that still has allocations (e.g. an allocation created after the precondition check by an in-flight Nova build; Cyborg itself never writes allocations against its resource providers) – so it runs first, before any local state is modified. If this step fails, the cleanup aborts with nothing destroyed in the Cyborg DB and the service remains visible for a retry.
Destroys all deployables owned by the service, together with their dependent rows – attach handles and attributes, and any unbound ARQs referencing them (
extarqs.deployable_idusesON DELETE RESTRICT, so ARQ rows must be removed explicitly; bound ARQs were already refused by the precondition). Deployables are looked up through their device: all deployables whosedevice_idrefers to a device withservice_idmatching the service being deleted. Ownership is recorded on the device and inherited transitively. (Every deployable is created with a non-nullabledevice_id, and theparent_id/root_idtree fields – currently unused in the code, reserved for networked FPGA sub-deployables – would nest within a single device, so this lookup captures tree members as well.)Deletes the service row from the database.
If a refusal is caused by an allocation that is genuinely leaked (e.g. from a failed host) rather than in flight, the operator removes the allocation in Placement directly and retries the service deletion.
Devices belonging to hosts that never restarted with new code have
service_id = NULL and are skipped by this lookup; their deployables keep
today’s behavior (manual cleanup), unchanged by this spec. This is a
one-time, transitional population: any host that restarts with new code –
including a host that dies after upgrading – has a service row and stamped
devices, so the delete workflow covers it.
The API returns 204 after precondition checks pass and the cleanup request is
dispatched to the conductor via cast (asynchronous, fire-and-forget). This
is a departure from Cyborg’s existing conductor RPC calls, which all use
synchronous call; cast is appropriate here because cleanup may involve
multiple Placement API calls and the operator does not need to wait for them.
If the conductor’s cleanup fails, the service row is not deleted, the
failure is logged, and the service remains visible in GET /v2/services.
The operator can retry deletion after remediation.
The cleanup steps are ordered and shaped so that a failure at any point leaves the deployment minimally broken and the retry cheap:
Every step is idempotent. Deleting a resource provider that is already gone is a no-op (the placement client treats 404 as success), and destroying deployables that no longer exist does nothing.
Every intermediate state is a prefix of the completed cleanup: a failed cleanup leaves the host partially decommissioned, never inconsistent. Because the externally-refusable step (Placement resource provider deletion) runs first and local destruction runs after it, the worst intermediate state is deployable rows remaining in the Cyborg DB with no Placement inventory – inert, since new allocations and ARQ binds are both impossible at that point.
The service row is deleted last. It is the retry handle: as long as it is present, re-issuing
DELETE /v2/services/{uuid}re-runs the workflow from wherever it stopped.
This spec does not introduce periodic cleanup tasks; cleanup runs only when an operator explicitly issues service deletion.
This provides a single-command workflow for decommissioning a compute host, replacing the current undocumented procedure of draining the node, disabling all drivers, restarting the agent, and waiting for it to report no resources. See https://bugs.launchpad.net/openstack-cyborg/+bug/2150086.
For cyborg-conductor and cyborg-api services, no associated resources
need cleanup – the service row is deleted directly.
All endpoints are admin-only. A PUT endpoint for administrative actions such as
disabling a service is anticipated as follow-up work but is not part of this
spec. Disabling a Cyborg service has complex interactions with Placement
inventory and Nova scheduling that require their own design; a separate spec
would propose the behavioral semantics, the schema additions (disabled,
disabled_reason), and the PUT endpoint together.
Policy rules¶
A new cyborg/policies/services.py module defines the policies using
DocumentedRuleDefault with scope_types, following the pattern
established by the consistent-and-secure-rbac spec (2026.2) and already
implemented in cyborg/policies/devices.py and other modules.
All service endpoints are admin-only. Since the check string is base.ADMIN
(rule:admin_api), which is unchanged from the legacy default, no
deprecated_rule bridge is needed (matching the device disable/enable
pattern):
# cyborg/policies/services.py
service_policies = [
policy.DocumentedRuleDefault(
name='cyborg:service:get_all',
check_str=base.ADMIN,
description='List all services',
operations=[
{'path': '/v2/services',
'method': 'GET'},
],
scope_types=['project'],
),
policy.DocumentedRuleDefault(
name='cyborg:service:get_one',
check_str=base.ADMIN,
description='Show service detail',
operations=[
{'path': '/v2/services/{uuid}',
'method': 'GET'},
],
scope_types=['project'],
),
policy.DocumentedRuleDefault(
name='cyborg:service:delete',
check_str=base.ADMIN,
description='Delete a service entry',
operations=[
{'path': '/v2/services/{uuid}',
'method': 'DELETE'},
],
scope_types=['project'],
),
]
A cyborg:service:update policy would be added if a PUT endpoint is
implemented in a future spec.
Alternatives¶
External monitoring only (Prometheus/Nagios): Does not provide service status through the OpenStack API. Operators expect this from OpenStack services.
Reuse Nova’s servicegroup: Creates a cross-service database dependency. Each project should track its own services.
Poll the RPC bus directly: Unreliable when the message bus is partially available. Also not accessible to operators through a standard API.
Data Model Impact¶
One new table (services) and one schema change to an existing table:
devices.service_id (nullable BigInteger FK to services.id),
with corresponding Alembic migrations.
REST API Impact¶
A new endpoint /v2/services is gated behind a new microversion. The
endpoint does not exist at lower microversions. Three methods are added:
GET /v2/services– 200 on success, 403 if not adminGET /v2/services/{uuid}– 200 on success, 403 if not admin, 404 if not foundDELETE /v2/services/{uuid}– 204 on success, 403 if not admin, 404 if not found, 409 if the service is still up or still has bound ARQs
All methods require admin privileges.
Security Impact¶
All endpoints are admin-only. No new credentials or secrets are introduced. Heartbeat data (host, binary, timestamps) is not sensitive.
Notifications Impact¶
None. Versioned notifications for service lifecycle events (service up, service down) are future work that would build on this infrastructure.
Other End User Impact¶
OpenStack SDK: A new Service resource would be added to the Cyborg proxy
(openstack/accelerator/v2/service.py) to support the new /v2/services
endpoints, covering list(), get(), and delete() operations.
python-openstackclient: New commands would be added:
openstack accelerator service listopenstack accelerator service showopenstack accelerator service delete
Additional commands for administrative actions (e.g., openstack accelerator
service set) would follow if/when disable semantics are defined. Client
updates will follow in subsequent patches.
Performance Impact¶
One DB write per service per report_interval (default 300 seconds). At 500
agents + a few conductors, this is approximately 1.67 writes/second. The
services table has at most one row per (host, binary) pair.
Other Deployer Impact¶
Two new config options are added:
[DEFAULT] report_interval(integer, default 300) – how often services report their state. Deployers should not need to change the default unless they have a very large number of services.[DEFAULT] service_down_time(integer, default 900) – how long before a service is considered down. Should be at least several multiples ofreport_interval.
The services table is populated automatically when services start with new
code. Existing devices are associated to services by the agent at startup,
as described in Upgrade Impact.
Developer Impact¶
If the proposed DB access pattern is accepted, new versioned objects should
place SQLAlchemy queries directly in the object class rather than adding
methods to cyborg/db/api.py. To support migrating existing objects and
query call sites to this pattern, a short contributor document will be added
describing the pattern and how to convert existing DB API usage to it.
A new ServiceNotFound exception is added to cyborg/exception.py.
Upgrade Impact¶
New migrations add the
servicestable anddevices.service_id(nullable FK toservices.id).Services populate the
servicestable automatically on restart with new code.During a rolling upgrade, old-code services simply do not appear in the services list until they are restarted with new code. This is acceptable because the services API is new – there is no prior behavior to preserve.
Existing devices are associated with their service record by the agent itself at startup, as part of the same registration flow that creates the service row (see Service registration and heartbeat). Because Cyborg does not support rolling upgrades today, upgrades are stop-the-world: every agent restarts with new code inside the maintenance window and stamps its devices before the deployment serves traffic again, so no separate online data migration step is required. Devices belonging to hosts that never restart with new code (decommissioned before the upgrade) keep
service_id = NULL; their rows do not participate in service-id-based cleanup and retain today’s behavior.The
versionfield lays groundwork for future rolling upgrade version checks (e.g., ensuring all agents are at version N before enabling version N features).
Road to rolling upgrade support¶
This spec is the first of several steps needed to support rolling upgrades. Because 2027.1 is the first Cyborg release that introduces service records and version tracking, there is no earlier release that populates this data model. Upgrade checks in this spec therefore focus on consistency and readiness within 2027.1 deployments and on preparing for n+1 rolling-upgrade mechanics (for example, a 2027.2 conductor and API talking to 2027.1 agents during the upgrade window).
Must land in 2027.1:
Services table with version tracking (this spec). The services table must exist and be populated for a full deployment cycle so that N+1 code can query
min(version)across the agent fleet. Without this, the N+1 upgrade has no programmatic way to determine what agent versions are running.Object versioning audit (separate investigation, not a spec). All versioned objects that cross the conductor-agent RPC boundary must have correct
VERSIONdeclarations in N, since those become the compatibility target that N+1’sobj_make_compatible()methods downlevel to. Some objects already have this (ExtARQ,DeviceProfile); the audit verifies completeness and flags any gaps. This should happen early in the cycle so that fixes can land before release.
Lands in 2027.2 (release N+1):
``obj_make_compatible()`` methods for any versioned objects bumped in N+1, so the N+1 conductor can downlevel objects when talking to N agents.
RPC version pinning:
VERSION_ALIASESdicts and anautomode for the[upgrade_levels]config options introduced by Versioned Object Indirection, which will add manual numericconductorandagentcaps in 2027.1. Theautomode added in 2027.2 would readmin(version)from the services table (populated during the N deployment) to automatically cap the RPC API version during the upgrade window, replacing the need for operators to set the caps by hand.``cyborg-status upgrade check``: verifies that DB schema migrations and online data migrations have been applied, and that no agents older than N-1 are still registered (a “too old agent” check, same as Nova’s
_check_old_computes).Online data migrations (continued): continue using the existing
cyborg-dbsync online_data_migrationsentry point for future N+1 schema and data changes that must be applied without downtime. (The 2027.1 device backfill is not an online data migration – it is performed by the agent at startup, as described in Upgrade Impact.)
Implementation¶
Assignee(s)¶
- Primary assignee:
melwitt
- Other contributors:
None
Work Items¶
Core infrastructure: DB model, Alembic migrations, versioned
Serviceobject with SQLAlchemy queries directly in the object (no DB API layer methods).Device backfill at agent startup: as part of service registration, the agent stamps
service_idon its existing devices (no separatecyborg-dbsync online_data_migrationsbackfill).RPC service registration and heartbeat: Modify
RPCService.start()for registration, add_report_state()periodic task, addreport_interval/service_down_timeconfig options.WSGI service registration: Modify
WSGIService.start()to registercyborg-apiwithtopic=Nonefor version tracking.REST API:
ServicesController(GET list, GET one, DELETE), policy rules, new microversion, wire into v2 Controller.Tests: Unit tests for the
Serviceobject and REST controller. Functional/API tests.OpenStack SDK (separate repo): New
Serviceresource in the Cyborg proxy supportinglist(),get(), anddelete()operations.OSC commands (separate repo): New
openstack accelerator servicecommands inpython-openstackclient.Contributor docs: Document the decision to place SQLAlchemy queries directly in versioned objects rather than adding to the DB API layer.
Dependencies¶
No new library dependencies for the services API.
Testing¶
Unit tests will cover:
Serviceobject CRUD operations against an in-memory databaseHeartbeat logic (
report_countincrement,last_seen_upupdate timing)ServicesControllerrequest/response validationLiveness detection computation (up/down threshold)
Policy enforcement (admin-only)
WSGI services returned with
state: null
Functional/API tests will cover:
End-to-end service registration on
RPCServicestartupPeriodic heartbeat reporting
GET
/v2/serviceswith and without query filtersDELETE of a down service (verify resource cleanup)
DELETE of a live service (verify 409 rejection)
DELETE of a down service with bound ARQs (verify 409 rejection)
Microversion gating (endpoint absent at older microversions)
No specialized hardware is required. All tests can run in the standard gate environment.
Documentation Impact¶
Admin Guide: Document the new
/v2/servicesendpoint,report_intervalandservice_down_timeconfig options, and how to interpret service health.API Reference: Add
/v2/servicesendpoint documentation with request/response examples.Release Notes: Note the new services API, new microversion, new config options, and new
servicesdatabase table.
References¶
Nova services API:
nova/api/openstack/compute/services.py,nova/objects/service.py,nova/servicegroup/drivers/db.pyNova WSGI service registration:
nova/api/openstack/wsgi_app.py(_setup_service()– registers API service for version tracking, no heartbeat)Nova bug 1543625 – WSGI services always appear down because they do not heartbeat
Neutron agents API:
neutron/db/agents_db.py,neutron/objects/agent.py,neutron_lib/api/definitions/agent.pyCyborg consistent-and-secure-rbac spec (2026.2):
specs/2026.2/implemented/consistent-and-secure-rbac.rst(establishes the policy authoring pattern used here)Versioned Object Indirection (2027.1): introduces
[upgrade_levels]RPC version caps that the rolling upgrade roadmap in this spec builds on
History¶
Release Name |
Description |
|---|---|
2027.1 |
Introduced |