Skip to content

Planning orders before they run

Intended Audience: OpenSlice Administrators, Service Operators, Integrators and Controller Developers

The OpenSlice orchestrator, OSOM, can plan a service order before anything is deployed. It answers "what would OpenSlice do for this order, and what would it cost?" and lets an operator review the answer, compare alternatives, secure the capacity the order needs, and only then approve the order for fulfilment.

Planning is optional and runs only when someone asks for it. An order that nobody plans is acknowledged and fulfilled exactly as before.

What it does

Capability Description
Tentative planning OSOM runs the real order BPMN with every side effect intercepted, against a virtual inventory. The result is a Tentative Fulfilment View (a plan): the service tree that would be created, the resources and the controllers that would create them, the BPMN path and gateway decisions, the LCM rules that would fire, the Chronos reservations, risks, assumptions and an audit narrative
Cost, energy and duration estimates Controllers can answer planning requests (X-OSL-SIMULATION=true) with estimates instead of deploying anything. The plan adds them up for creating, operating and tearing down the order
Chronos holds When the Chronos addon is installed, planning checks availability and places short-lived tentative holds, so an approved plan rests on capacity nobody else can take meanwhile. Refusals come with the windows Chronos would accept, offered as one-click re-plans
Validation and approval Validate re-checks whether the plan's assumptions and holds still stand, without changing anything. Approve turns the holds into firm reservations (same ids, nothing booked twice) and acknowledges the order in one update, re-dated to the planned window. The order is then fulfilled as usual
Planning sessions Several named plans per order, each with its own run options and planned window, so alternatives can be compared side by side. One is selected and is the one that gets approved
Order-item editing A plan can change what the order asks for (alter an item's characteristics, drop an item, add one) in memory. apply-plan makes the edits permanent on the real order
Dry runs Plan an order that has not been submitted at all, optionally holding Chronos capacity for a few minutes, then hand those holds over to the real order once it is placed
What-if sandboxes Ask "what would happen if I changed this order?", also for an order that is already running: simulate a characteristic change, a termination, an extra order item or a new end date. Selected effects can then be committed for real: a new item amends the order, a change to a live service becomes a day-2 action
Failed-order recovery Tear down what a FAILED order left behind and turn it back into a plannable INITIAL order with a new window
Web management UI Server-rendered pages for all of the above, served by OSOM itself, with Keycloak login

How it fits into the order flow

  1. A customer places a service order. It is stored in state INITIAL, as before.
  2. A service operator opens the order in the OSOM management UI (or calls the REST API) and asks for a plan. Only future-dated orders are planned. An INITIAL order whose start date has already passed is planned to start as soon as possible (by default 10 minutes from now).
  3. The operator reads the plan, re-plans with other options or another window, compares sessions, and optionally edits the order items.
  4. The operator validates and approves the plan. Reservations are committed and the order becomes ACKNOWLEDGED, dated to the planned window.
  5. OSOM's order scheduler picks the order up when its start date arrives, and ordinary orchestration begins.

Where to find it

On a Kubernetes deployment OSOM is served on the OpenSlice host under the /osom prefix:

URL What
{rootUrl}/osom/manage/ Web management UI (Keycloak login)
{rootUrl}/osom/api/tentative-planning/... REST API (bearer token)
{rootUrl}/osom/swagger-ui.html Swagger UI
{rootUrl}/osom/actuator/health Health (also /health/liveness and /health/readiness)

Both the UI and the API admit only users with the Keycloak realm role SERVICE_OPERATOR or ADMIN. See Role/Keycloak management.

Deploying

OSOM with planning ships its own Helm chart, installed next to an existing OpenSlice Helm release. It reuses the OpenSlice ActiveMQ Artemis broker and Keycloak realm. It needs no database of its own: the process engine and the planning state live in memory inside the pod, so plans do not survive a restart. Chart releases are tagged chart-vX.Y.Z.

The chart's optional bootstrap Job (keycloak.bootstrap.enabled: true) creates the SERVICE_OPERATOR role and the osom-manage client used by the UI. The chart README describes how to create them by hand instead.

⚠ Warning: the OpenSlice chart still deploys its own OSOM (<release>-osom). Two OSOMs on the same broker both fulfil every order, so stop the bundled one before (or right after) installing the OSOM chart. A helm upgrade of the OpenSlice release scales it back to 1, so repeat this after every OpenSlice upgrade.

kubectl -n openslice scale deploy/openslice-osom --replicas=0

Pick the guide for your role

All guides live in the OSOM repository.

You are… Read
Service operator: plan, compare and approve orders in the UI User guide and its walkthrough From a testbed order to an approved plan (with screencasts)
Integrator (REST API) API consumer guide, then the worked REST API usage examples
Integrator: planning orders before submitting them Dry runs over the REST API
Controller / adapter developer: answer OSOM's planning requests Writing a simulator adapter and Planning lifecycle estimates
Administrator: install and configure OSOM The chart README, Deployment and operations and the Configuration reference
Developer: work inside OSOM The developer documentation, in particular Planning engine, Planning sessions, What-if sandboxes and Failed-order recovery
Anyone wanting an overview The slide decks OSOM v2.0: what's new (10 slides) and the full OSOM planning overview

Probe further

  • OSOM README: features, architecture, build and run.
  • Developer documentation index: fifteen pages on architecture, orchestration, integration, planning, API and testing, with reading paths.
  • Chart README: every Helm value, Keycloak setup, URLs and releasing.
  • Chronos: the reservation service planning books capacity in.