Chronos: Resource Reservations and Scheduling
Intended Audience: OpenSlice Administrators, Service Designers and Integrators
Chronos is the resource reservation and scheduling service for OpenSlice. It lets an operator book managed resources from the OpenSlice resource inventory (TMF639) for a time window, and it guarantees that two bookings never overlap on the same resource. These resources can be lab equipment, radio units, compute nodes, licences or shared capacity.
Chronos is an optional addon. It runs next to an existing OpenSlice deployment and reuses its message bus and identity provider.
- Backend: https://labs.etsi.org/rep/osl/code/addons/chronos/org.etsi.osl.chronos
- Web UI: https://labs.etsi.org/rep/osl/code/addons/chronos/org.etsi.osl.chronos.ui
- Helm chart: https://labs.etsi.org/rep/osl/code/addons/chronos/org.etsi.osl.chronos.deploy
What it does
| Capability | Description |
|---|---|
| Resource pools | Group TMF639 resources into typed pools: physical-discrete, logical-countable, logical-uncountable, shared-capacity |
| Membership lifecycle | Push, extract and move pool members, and track their live status |
| Availability calendars | Date-range and weekly recurring windows, blackout periods, and setup/teardown buffers per pool or member |
| Tentative holds | Short-lived holds (60 minutes by default) that reserve a slot while an order is being finalised |
| Firm reservations | Conflict-checked, buffer-aware bookings. Requests that do not fit are rejected with alternatives |
| Fulfilment assessment | Dry-run feasibility check for a service order, without creating a hold |
| Schedule modification | Extend, shorten or move an existing reservation |
| Activity and statistics | Inconsistency flags between reservation state and resource status, and aggregate counts |
Chronos exposes these features through:
- a REST API (
/api/v1, OpenAPI/Swagger UI included); - an equivalent JMS API over ActiveMQ Artemis, with the same operations and the same error model;
- a best-effort TMF685 v5 (Resource Pool Management) facade for pool management;
- asynchronous lifecycle events for consumers that need to react to reservations;
- a web UI (React) with views for the three Chronos roles: administrator, requester and auditor.
Where it fits in OpenSlice
Chronos is a separate service with its own database. It integrates with OpenSlice only through the shared message bus and the shared Keycloak realm:
| OpenSlice component | How Chronos uses it |
|---|---|
| ActiveMQ Artemis (shared) | Fetches and browses TMF639 resources from the catalog, pushes resource status updates back, consumes resource change events, and takes part in the orchestrator handshake. Resource events are treated as signals only: Chronos re-fetches the authoritative state from OpenSlice |
| Resource Catalog | At startup Chronos registers a Chronos Reservation Request resource specification (TMF634). Service designers can then include reservations in their service specifications and order them through normal OpenSlice service orders |
| Resource Inventory (TMF639) | The source of truth for resources and their status. Resources whose status is SUSPENDED, ALARM, STANDBY or UNKNOWN cannot be booked |
Keycloak (shared realm openslice) |
Chronos validates OpenSlice-issued JWTs. Authorization uses the realm roles chronos.admin, chronos.requester and chronos.auditor. The UI logs in through a public client, chronos-ui |
| OSOM (orchestrator) | When OSOM plans an order before it runs, it checks availability and places tentative holds over JMS. It turns them into firm reservations when the plan is approved, hands dry-run holds over to the submitted order, and extends or shortens an order's reservations when its end date changes. A refused booking comes back with the windows Chronos would accept, which OSOM offers as alternative plans |
| MySQL | Not shared. Chronos needs MySQL 8 (its conflict check uses SELECT … FOR UPDATE NOWAIT), while the OpenSlice chart bundles MySQL 5.7. The Chronos chart deploys its own MySQL 8.4, or uses an external MySQL 8.x |
On a Kubernetes deployment, Chronos is served on the OpenSlice host under two path prefixes:
| URL | What |
|---|---|
{rootUrl}/chronos/ |
Web UI |
{rootUrl}/chronos-api/api/v1/... |
REST API |
{rootUrl}/chronos-api/swagger-ui.html |
Swagger UI |
{rootUrl}/chronos-api/actuator/health |
Health |
Deploying Chronos
Kubernetes (Helm)
The Helm chart deploys the backend, the UI and (optionally) MySQL 8.4 next to an existing OpenSlice Helm release.
Prerequisites
- Kubernetes 1.23+ and Helm 3.8+.
- ingress-nginx, or a Gateway API implementation such as Envoy Gateway.
- A running OpenSlice release. The chart defaults assume a release named
openslicein the same namespace.
Install the published chart
Each release of the chart is published as an OCI artifact in the labs.etsi.org registry:
CHART=oci://labs.etsi.org:5050/osl/code/addons/chronos/org.etsi.osl.chronos.deploy/chronos
helm show values "$CHART" --version 1.0.0 > my-values.yaml
# edit at least: global.rootUrl (same as OpenSlice's rooturl), image tags, MySQL passwords
helm install chronos "$CHART" --version 1.0.0 -n openslice -f my-values.yaml
kubectl -n openslice rollout status deploy/chronos-backend
curl {rootUrl}/chronos-api/actuator/health
The images come from labs.etsi.org:5050/osl/code/addons/chronos/org.etsi.osl.chronos and
labs.etsi.org:5050/osl/code/addons/chronos/org.etsi.osl.chronos.ui. Pin a release tag in backend.image.tag
and ui.image.tag instead of latest.
Keycloak roles and client
The OpenSlice realm export contains neither the Chronos roles nor the UI client. Set
keycloak.bootstrap.enabled: true and a post-install hook Job creates any missing chronos.* realm roles and
the chronos-ui client. You can also create them by hand in the Keycloak admin console. Either way, assign
the chronos.* roles to users or groups. A user without one can log in but is denied by the API. See
Role/Keycloak management for the OpenSlice
side.
Other options
The chart README covers the rest:
- serving through a Gateway API
HTTPRouteinstead of an Ingress; - installing Chronos in its own namespace (it then creates its own copies of the Artemis and Keycloak secrets);
- using an external MySQL;
- passing any
chronos.*property to the backend.
See the chart README.
!!! note The backend runs scheduled jobs (hold expiry, reconciliation, overdue alerts) without a cluster lock, so it must run as a single replica. The chart enforces this.
Docker Compose (local development)
For a local, standalone instance, the backend repository ships a docker-compose.yml that brings up Chronos,
MySQL and Artemis, and optionally a local Keycloak. See the backend
README.
Configuration
All runtime behaviour is driven by chronos.* properties, for example:
- hold expiry;
- assessment horizon;
- time zone;
- calendar enforcement;
- OpenSlice queue names;
- optional OPA policy evaluation.
The full reference is in the Operations Guide.
Using Chronos
Pick the guide for your role:
| You are… | Read |
|---|---|
| Administrator: pools, memberships, calendars, blackouts, health flags | Administrator Guide |
| Requester: availability search, holds, reservations, modifications, assessment | Requester Guide |
| Auditor: activity, inconsistency flags, statistics (read-only) | Auditor Guide |
| Service designer: ordering reservations through OpenSlice service orders | Events & Integration Guide §6: the Chronos Reservation Request specification and its characteristics |
| Integrator (HTTP) | REST API Guide and TMF685 API Guide |
| Integrator (JMS / events) | JMS API Guide and Events & Integration Guide |
| Operator | Operations Guide and the chart README |
| Developer | Backend Developer Guide and UI Developer Guide |