Skip to content

OpenSlice Upgrade Guide from 2026Q2 to 2026Q4

This guide upgrades a running OpenSlice instance from release 2026Q2 to release 2026Q4. Follow the section that matches how the instance was installed: Kubernetes or Docker Compose.

The two paths differ in where your configuration lives. Docker Compose keeps it in generated files that sit beside templates the new release updates, so every upgrade asks you to merge. Helm keeps it in a values file outside the chart, which the upgrade never touches.

🚧 Draft: 2026Q4 is not released yet. Sections marked 🚧 are placeholders. The commands that name tags/2026Q4 work only once that tag exists, and have not been rehearsed.

What changes in this release

This is a major infrastructure upgrade for Docker Compose deployments:

Component 2026Q2 2026Q4
Keycloak 16.1.1 (WildFly) 26.8.2 (Quarkus)
MySQL 5.7.43, container amysql, data in ~/mysql/data, host port 13306 8.4.13, container amysql8, data in ./mysql/data, host port 3386

Both have to be migrated by hand, see the prerequisite.

The differences in the main project:

File Change
compose/docker-compose.yaml.configure MySQL 8.4 and Keycloak 26 services, database host amysql8
compose/mysql-init/01-databases.sql MySQL 8 syntax, creates the keycloak26 database
compose/keycloak-upgrade/ new, the Keycloak migration kit
kubernetes/helm/openslice/Chart.yaml appVersion 2026Q4. 🚧 chart version
kubernetes/helm/openslice/values.yaml image tags. 🚧 other changes
config.prod.default.json, config.theming.default.json version string, copyright year
pom.xml module versions

🚧 Placeholder: confirm this table against the final tag, including added or removed services and settings.

You can confirm it on your own checkout:

cd org.etsi.osl.main
git fetch --all --tags
git diff --stat tags/2026Q2 tags/2026Q4 -- compose kubernetes pom.xml

Note: Always write tags/ in front of a release name. A local branch can carry the same name as a tag, which makes the bare name ambiguous.

Changes in the services

OSOM v2: planning orders before they run. The orchestrator can now plan an order before it is acknowledged, compare alternative plans, hold Chronos capacity, run What-if sandboxes over running orders and reset failed orders. See Planning orders before they run. For an upgrade this means:

  • OSOM v2 is installed with its own Helm chart, next to the OpenSlice release.
  • The OpenSlice chart still deploys the old OSOM (<release>-osom). Two OSOMs on the same broker both fulfil every order, so scale the bundled one to 0 with kubectl -n openslice scale deploy/openslice-osom --replicas=0, and repeat that after every OpenSlice helm upgrade.
  • A new Keycloak realm role, SERVICE_OPERATOR, and a new client, osom-manage. See Role/Keycloak management.

🚧 Placeholder: release notes, database schema changes and how they are applied on first start, and any new or renamed configuration settings.


Upgrading a Kubernetes deployment

🚧 Placeholder: this path is not written yet. The Keycloak and MySQL migration has not been rehearsed on Kubernetes. Do not apply the Docker Compose commands to a cluster.

1. Prepare the environment

🚧 Placeholder.

2. Migrate Keycloak and MySQL

🚧 Placeholder. The expected flow, not rehearsed yet:

  • Kubernetes / Helm: the same flow applies: scale Keycloak to 0, run the export as a Job with the KC 16 image and the -Dkeycloak.migration.* arguments on a PVC, create the new DB, then run kc.sh import --dir … --override true as a Job with the KC 26 image before starting the new Deployment.

3. Download the new release

🚧 Placeholder.

4. Refresh the Web UI configuration

🚧 Placeholder.

5. Reconcile your values file

🚧 Placeholder.

6. Pin the image tags

🚧 Placeholder.

7. Render the chart before upgrading

🚧 Placeholder.

8. Deploy

🚧 Placeholder.

9. Validate the upgrade

🚧 Placeholder.

Rolling back a Kubernetes deployment

🚧 Placeholder.


Upgrading a Docker Compose deployment

Important Note: Run every docker compose and deploy.sh command as the same user that installed the deployment, and never mix sudo with plain invocations. The 2026Q2 MySQL service mounts ~/mysql/data, and ~ expands for whoever runs the command, so switching to sudo silently points MySQL at an empty directory. deploy.sh run under sudo also leaves org.etsi.osl.tmf.web/dist/ owned by root, and every later build you run as yourself fails to write there.

The upgrade has two stages, in this order:

  1. The prerequisite, steps P1 to P8, moves your data to MySQL 8.4 and Keycloak 26.
  2. Steps 1 to 9 move the OpenSlice services to 2026Q4.

The old MySQL 5.7 data folder (~/mysql/data) is never modified, so you can always roll back. The new MySQL 8.4.13 data folder (./mysql/data) will be relative to the ./compose path, and independent of the user executing the docker compose stack (the old ~ convention uses different path for a root user / sudo command)

⚠️ ~/mysql/data and ./mysql/data are different folders. Check the first character before you copy, mount, archive or delete either one.

Folder Holds Location
~/mysql/data old MySQL 5.7 data, your rollback home folder of the user who ran the old stack (/root with sudo)
./mysql/data new MySQL 8.4 data inside the compose folder

Prerequisite: migrate Keycloak and MySQL

This procedure moves an OpenSlice docker compose installation from Keycloak 16.1.1 (WildFly) on MySQL 5.7 to Keycloak 26.8.2 (Quarkus) on MySQL 8.4. Keycloak 26 does not support MySQL 5.7, so the upgrade has two parts: - Keycloak: all realms are exported from the old server and imported into a new, empty keycloak26 database. - MySQL: all OpenSlice databases are moved from the MySQL 5.7 container amysql to a new MySQL 8.4 container amysql8, with a dump and a restore.

The Keycloak export/import was rehearsed on a copy of a production database (165 users, 3 realms, Google/GitHub login). Users, passwords, roles, clients and signing keys came across unchanged (see What is kept / lost). The whole migration, including its rollback, was rehearsed from mysql:5.7.43 to mysql:8.4.13: - Keycloak 16 database in latin1, plus sample OpenSlice tables. - After the restore, table counts and data bytes were identical. Keycloak before/after was identical.

Expected downtime: about 5 minutes for Keycloak (export ≈ 1 min, import + first start ≈ 3 min), plus the dump and restore of your databases, which depends on the size of your data. All users have to log in again afterwards.

Check the starting point

The instance must run 2026Q2. If it runs an older release, follow the earlier guides first, starting with 2025Q4 to 2026Q2.

cd org.etsi.osl.main/compose
grep -oE 'org\.etsi\.osl\.[a-z.]+:[A-Za-z0-9_.]+' docker-compose.yaml | sort -u

Every line should read 2026Q2. These tags are what a rollback returns to. If they read latest, pin them first, as in step 4 of the previous guide.

The installation must also match what the migration expects: MySQL 5.7 as amysql (mysql:5.7.43, data in ~/mysql/data) holding all OpenSlice databases (osdb, ostmfdb, keycloak, …), and Keycloak 16.1.1 as keycloak:

docker ps --format '{{.Names}} {{.Image}}' | grep -E 'amysql|keycloak'

What you need

  • bash, curl and Docker with the compose plugin. On Windows use Git Bash; the scripts handle its path conversion. The scripts pull ghcr.io/jqlang/jq:1.7.1, so jq does not need to be installed.
  • The master admin username and password of the old Keycloak (KEYCLOAK_USER and KEYCLOAK_PASSWORD in your compose file, by default user admin). Both keep working after the upgrade, also if you changed the username. If you changed either of them later in the admin console, use the current values.
  • The MySQL root password of amysql (MYSQL_ROOT_PASSWORD, default letmein).
  • Enough free disk space for the dump and the new ./mysql/data. Together they need about twice the size of ~/mysql/data.
  • Run all commands of the steps P1 to P8 from org.etsi.osl.main/compose (the folder with docker-compose.yaml).

Fetch the migration files

Take the migration kit and the database script from the new release, without switching the whole checkout yet:

cd ..                                   # org.etsi.osl.main
git fetch --all --tags
cp -n compose/mysql-init/01-databases.sql ~/01-databases.sql.2026Q2
git checkout tags/2026Q4 -- compose/keycloak-upgrade compose/mysql-init/01-databases.sql
cd compose

Important Note: The last git checkout overwrites 01-databases.sql. If you changed the portaluser or keycloak passwords in it, apply them to the new file before you continue.

The kit lives in org.etsi.osl.main/compose/keycloak-upgrade/.

File Purpose
kc16-export.sh Stops the KC 16 container and exports all realms to a folder using a one-shot KC 16 container. Then applies kc26-fixup.jq.
kc26-fixup.jq Caps client session timeouts that exceed the realm limits. KC 16 accepted them, KC 26 refuses to import them.
create-kc26-db.sql Creates the empty keycloak26 database (utf8mb4) and grants it to the keycloak DB user, if missing. The new mysql-init already does this on a new data folder; use the script to re-create the database after a reset.
keycloak26-service.yaml The new keycloak: service block for docker-compose.yaml, shown in step P4.
kc26-import.sh Checks that the keycloak26 DB exists and is empty, runs a one-shot import into it, then starts Keycloak 26 and waits until it answers.
kc26-verify.sh Prints users / clients / roles / IdPs / signing-key id per realm. Run it before and after, then compare.

Before you migrate

⚠️ Do not run docker compose down, up or pull with the new docker-compose.yaml before step P4. Steps P1–P3 run against the stack you have now, with your current compose file. They export Keycloak and back up amysql while it is still the database in use.

You can't point MySQL 8 at the 5.7 data folder: - MySQL 8.4 refuses to start on it (Failed to initialize DD Storage Engine). A direct 5.7 → 8.4 upgrade is not supported. - An in-place upgrade through 8.0 could not be undone.

That is why the data is moved with a dump into a new, empty data folder.

P1. Record the current state (old server still running)

KC_ADMIN_USER='<admin-username>' KC_ADMIN_PASSWORD='<admin-password>' \
 bash ./keycloak-upgrade/kc26-verify.sh http://localhost:8080/auth | tee kc-before.txt
Use the master admin of your old Keycloak. KC_ADMIN_USER defaults to admin, so you can leave it out if you never changed the username.

Note: Keep the single quotes around your values. Without them the shell interprets characters such as $, & or spaces in a password, and the login fails. If the value itself contains a single quote, write it as '\''.

P2. Export Keycloak (downtime starts here)

bash ./keycloak-upgrade/kc16-export.sh keycloak ./keycloak-export
The script stops the keycloak container and prints users= clients= realm-roles= idps= per realm. The numbers must match kc-before.txt. If the export fails, docker start keycloak brings the old server back.

⚠️ ./keycloak-export contains password hashes, client secrets and the realms' private signing keys. Keep it on a protected disk and delete it once you are satisfied (step 9).

P3. Back up amysql (MySQL 5.7)

P3.1 Stop everything that writes to the database except MySQL. Keycloak is already stopped by step P2.

docker compose --profile prod stop $(docker compose --profile prod config --services | grep -v -x mysql-portal)

docker ps --format '{{.Names}}'          # only amysql (plus unrelated containers) may still run

P3.2 Dump all OpenSlice databases (everything except MySQL's own system schemas) and record their table counts:

PW=<root-password>    # MYSQL_ROOT_PASSWORD of amysql, default letmein
DBS=$(docker exec amysql mysql -uroot -p$PW -N -e "select schema_name from information_schema.schemata \
      where schema_name not in ('mysql','sys','information_schema','performance_schema')" | tr -d '\r' | xargs)
echo "$DBS"           # e.g. keycloak osdb ostmfdb metricodb ...
docker exec amysql mysqldump -uroot -p$PW --single-transaction --routines --triggers --events \
       --databases $DBS > amysql57-backup-$(date +%Y%m%d).sql
tail -1 amysql57-backup-*.sql   # must print: -- Dump completed on ...
docker exec amysql mysql -uroot -p$PW -N -e "select table_schema, count(*) from information_schema.tables \
       where table_schema not in ('mysql','sys','information_schema','performance_schema') group by 1 order by 1" \
       | tr -d '\r' > tables-57.txt
Don't continue unless the last line reads -- Dump completed.

⚠️ The dump contains every OpenSlice database, including password hashes and client secrets. Keep it on a protected disk, never in a git repository, and delete it once you are satisfied (step 9). MySQL's own mysql schema (users, grants) is deliberately left out: it is not compatible with MySQL 8. The application users are created by mysql-init on the new server.

P3.3 Stop MySQL 5.7 cleanly, still with the old compose file:

docker compose --profile prod stop mysql-portal
For an extra safety copy, take one now, while it is stopped, e.g. cp -a ~/mysql/data ~/mysql/data-backup-5.7. Never delete ~/mysql/data and never mount it into a MySQL 8 container: it is your rollback.

P4. Switch the compose file to MySQL 8 and Keycloak 26

⛔ From now on, do not run a plain docker compose up -d until step 7. Start only the services named in each step. A plain up -d would start Keycloak 26 on the still empty keycloak26 database. It then creates an empty openslice realm and no admin, and the import in step P7 refuses to run until you reset that database. Your old data is not affected, but you lose time.

Keep a copy of your current docker-compose.yaml for rollback, e.g. cp docker-compose.yaml docker-compose.yaml.kc16-mysql57. Then make these edits in your own docker-compose.yaml. Do not replace it with the new release's template, and keep your 2026Q2 image tags: the services move to 2026Q4 later.

MySQL - Comment out the mysql-portal: (amysql, mysql:5.7.43) block. - Add the MySQL 8 service, with a new, empty data folder:

  mysql8-portal:
    container_name: amysql8
    restart: always
    image: mysql:8.4.13
    profiles: ["dev", "prod"]
    environment:
      MYSQL_ROOT_PASSWORD: letmein          # keep the same root password as amysql
      MYSQL_ROOT_HOST: "%"
    ports:
    -  "3386:3306"
    logging:
      driver: "json-file"
      options:
        max-size: "200m"
        max-file: "2"            
    volumes:
    - ./mysql/data:/var/lib/mysql
    - ./mysql-init:/docker-entrypoint-initdb.d
    networks:
    -  back
- The host port changes from 13306 to 3386. Point anything that connects to MySQL from outside Docker (database clients, backup jobs, services run from source) to 3386. Inside the Docker network the port stays 3306. - In every OpenSlice service, change the database host from amysql to amysql8 (jdbc:mysql://amysql/… → jdbc:mysql://amysql8/…), and depends_on: - mysql-portal to - mysql8-portal. - Use the mysql-init/01-databases.sql of this release. The older one uses GRANT … IDENTIFIED BY, which MySQL 8 rejects, and the new container then stops during its first start (ERROR 1064 … near 'IDENTIFIED BY').

Keycloak: comment out the old keycloak: service block and paste this one in its place, keeping the indentation. If you changed the keycloak DB user's password, set it in KC_DB_PASSWORD.

# Replaces the `keycloak:` service in org.etsi.osl.main/compose/docker-compose.yaml (keep the indentation).
  # --- Keycloak 26.8.2 (Quarkus). Uses a NEW database `keycloak26` on amysql8.
  # --- Upgrading from 16.1.1: BEFORE the first start run the kit in ./keycloak-upgrade (export -> kc26-import.sh), see the upgrade guide.
  # --- Fresh install: mysql-init creates the empty `keycloak26` DB; start, then create the admin once (see KC_BOOTSTRAP note below).
  # --- Upgrade: do NOT start this service before kc26-import.sh. It would initialise `keycloak26` with an empty realm (the import then refuses).
  keycloak:
      container_name: keycloak
      image: quay.io/keycloak/keycloak:26.8.2
      restart: always
      profiles: ["dev", "prod"]
      command: ["start", "--import-realm"]      # imports keycloak-init/realm-export.json only if that realm does not exist yet
      environment:
        KC_DB: mysql
        KC_DB_URL: "jdbc:mysql://amysql8:3306/keycloak26?useSSL=false&allowPublicKeyRetrieval=true"
        KC_DB_USERNAME: keycloak
        KC_DB_PASSWORD: password
        KC_HTTP_RELATIVE_PATH: /auth            # keep the /auth prefix: issuer URLs and all UI configs stay the same
        KC_HTTP_ENABLED: "true"                 # plain HTTP behind nginx (8443 is no longer exposed)
        KC_HOSTNAME_STRICT: "false"             # issuer follows the request Host header, as in Keycloak 16
        KC_PROXY_HEADERS: xforwarded            # replaces PROXY_ADDRESS_FORWARDING
        KC_HEALTH_ENABLED: "true"               # readiness: http://keycloak:9000/auth/health/ready
        JAVA_OPTS_KC_HEAP: "-Xms512m -Xmx2048m" # same heap as before
        JAVA_OPTS_APPEND: "-Djava.net.preferIPv4Stack=true"
        # No KC_BOOTSTRAP_ADMIN_* here: on the upgrade path the admin comes from the export, and these variables
        # make kc26-import.sh roll back. Fresh install only - create the admin once:
        #   docker compose run --rm -e PW=<password> keycloak bootstrap-admin user --username admin --password:env PW
      logging:
        driver: "json-file"
        options:
          max-size: "400m"
          max-file: "3"    
      volumes:
      - ./keycloak-init/realm-export.json:/opt/keycloak/data/import/realm-export.json:ro
      ports:
        - 8080:8080
      depends_on:
        - mysql8-portal
      networks:
        - front
        - back

⚠️ This block does not carry over KEYCLOAK_FRONTEND_URL. If your old service sets it, read the Keycloak issuer before you start Keycloak 26.

What changes:

Keycloak 16 Keycloak 26
DB_VENDOR/DB_ADDR/DB_PORT/DB_DATABASE/DB_USER/DB_PASSWORD/JDBC_PARAMS (amysql, database keycloak) KC_DB=mysql, KC_DB_URL (amysql8, database keycloak26), KC_DB_USERNAME, KC_DB_PASSWORD
/auth context path (built in) KC_HTTP_RELATIVE_PATH=/auth, so all URLs, issuers and UI configs stay the same
PROXY_ADDRESS_FORWARDING=true KC_PROXY_HEADERS=xforwarded
KEYCLOAK_USER/KEYCLOAK_PASSWORD not needed: the admin, with its old username and password, comes from the import (see below)
KEYCLOAK_IMPORT + ./keycloak-init:/tmp command: start --import-realm + realm-export.json mounted in /opt/keycloak/data/import. It only imports a realm that does not exist yet, so after the upgrade it logs Realm 'openslice' already exists. Import skipped.
ports 8080 + 8443 8080 only (TLS is terminated by nginx). Health and metrics are on 9000 inside the network.
JAVA_OPTS JAVA_OPTS_KC_HEAP for the heap (without it KC 26 sizes the heap itself, 70% of the container memory), JAVA_OPTS_APPEND for other options

⚠️ Do not set KC_BOOTSTRAP_ADMIN_USERNAME/PASSWORD on the upgrade path. The import brings the existing master admin, the bootstrap user then collides with it, and the whole import is rolled back. kc26-import.sh refuses to run if they are set.

nginx: Keycloak 26 listens only on plain HTTP, port 8080. Keycloak 16 also served HTTPS on 8443 with a self-signed certificate it created itself. nginx.conf.default ships two /auth locations, one marked # For http and a commented one marked # For https that proxies to https://keycloak:8443/auth. If your nginx.conf uses the HTTPS one, nginx returns 502 Bad Gateway for /auth once Keycloak 26 runs. Check:

grep -n 'keycloak:8443' nginx/nginx.conf      # must print nothing

  • Served over HTTP (for example http://10.10.10.56 or http://localhost): the # For http location already proxies to http://keycloak:8080/auth and needs no change. It sends no X-Forwarded-Proto or X-Forwarded-Port, so Keycloak 26 takes the scheme from the request and the host from the Host header, as Keycloak 16 did. Do not copy the HTTPS block below into an HTTP deployment: Keycloak 26 trusts its X-Forwarded-Port 443 (KC_PROXY_HEADERS: xforwarded) and would build its URLs as http://<host>:443/auth/….
  • Served over HTTPS: if the grep prints a line, change only the target of the /auth location. Keep the proxy_set_header lines: Keycloak 26 reads Host, X-Forwarded-Proto and X-Forwarded-Port.

        location /auth {
            proxy_pass http://keycloak:8080/auth;      # was https://keycloak:8443/auth
            proxy_set_header  X-Real-IP $remote_addr;
            proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_set_header X-Forwarded-Port   443;
        }
Two setups need the forwarded headers set by hand, in either case: - nginx published on a non-standard port (for example 8081:80): if Keycloak's URLs lose the port, add proxy_set_header X-Forwarded-Port 8081;, with the port the browser uses. - TLS terminated in front of nginx (a load balancer or another proxy): nginx itself sees http, so set X-Forwarded-Proto https and X-Forwarded-Port 443 explicitly instead of $scheme.

nginx looks up keycloak only when it loads its configuration. If nginx is still running, restart it on its own after step P7 with docker compose restart nginx. If your Keycloak service still maps 8443:8443, remove that line: nothing listens there any more.

Note: Step P8 checks Keycloak at localhost:8080, which bypasses nginx, so it does not catch this. Once nginx runs, curl -s -o /dev/null -w "%{http_code}\n" <scheme>://<your-host>/auth/ must not print 502, using the address your users open (for example https://openslice.example.org or http://10.10.10.56).

P5. Start MySQL 8 and restore the databases

Start only MySQL 8 and wait until its first-start initialisation has finished:

docker compose --profile prod up -d mysql8-portal
docker logs -f amysql8      # wait for "MySQL init process done" and then "ready for connections … port: 3306", then Ctrl-C
Restore the dump and compare the table counts:
docker exec -i amysql8 mysql -uroot -p$PW < amysql57-backup-<date>.sql
docker exec amysql8 mysql -uroot -p$PW -N -e "select table_schema, count(*) from information_schema.tables \
       where table_schema not in ('mysql','sys','information_schema','performance_schema') group by 1 order by 1" \
       | tr -d '\r' > tables-8.txt
diff tables-57.txt tables-8.txt && echo IDENTICAL
The tables keep their old character sets (latin1, utf8), and the data is copied byte for byte. MySQL 8 may print 'utf8' is currently an alias for the character set UTF8MB3 warnings, which are harmless. Hibernate and Flyway (baseline-on-migrate) accept the restored schemas as they are.

The restored keycloak database (Keycloak 16) is not used by Keycloak 26. It just stays there as a reference. Don't start Keycloak or the other OpenSlice services yet.

P6. Check the new Keycloak database

The new mysql-init/01-databases.sql already created the empty keycloak26 database when amysql8 started for the first time. Running create-kc26-db.sql again is harmless (it only creates what is missing). You need it if you use an older mysql-init:

docker exec -i amysql8 mysql -uroot -p$PW < ./keycloak-upgrade/create-kc26-db.sql
docker exec amysql8 mysql -uroot -p$PW -N -e "select count(*) from information_schema.tables where table_schema='keycloak26'"   # must be 0
If you changed the keycloak DB user's password, edit the SQL and KC_DB_PASSWORD in the keycloak: service to match.

P7. Import and start Keycloak 26

COMPOSE="docker compose --profile prod" bash ./keycloak-upgrade/kc26-import.sh ./keycloak-export keycloak
The script creates the schema, imports every realm in ./keycloak-export (a standard installation has master and openslice, plus any realm you added yourself), then starts the service and waits until it answers. Before importing, it reads the database from KC_DB_URL and stops with an error if: - Keycloak 26 is already running; - the keycloak26 database does not exist; - the keycloak26 database is not empty, which means Keycloak 26 was started before the import; - the import logs any ERROR.

If Keycloak 26 was started too early, reset its database and repeat this step:

docker compose --profile prod stop keycloak
docker exec amysql8 mysql -uroot -p$PW -e 'DROP DATABASE keycloak26'
docker exec -i amysql8 mysql -uroot -p$PW < ./keycloak-upgrade/create-kc26-db.sql
This only touches keycloak26. The restored keycloak (16) database and your export stay as they are.

For about 15 s after start-up Keycloak 26 returns 503 Bootstrap in progress. This is normal.

P8. Verify Keycloak

KC_ADMIN_USER='<admin-username>' KC_ADMIN_PASSWORD='<admin-password>' \
  bash ./keycloak-upgrade/kc26-verify.sh http://localhost:8080/auth | tee kc-after.txt
diff <(sort kc-before.txt) <(sort kc-after.txt) && echo IDENTICAL
All counts and the signing-kid of every realm must be identical. The same kid means the realm keys were carried over, so tokens stay valid for the OpenSlice back-ends (tmf.api, portal.api, …).

Do not start the rest of OpenSlice yet. The services start in step 7, on 2026Q4.

Note: 2026Q2 services are not expected to work fully on MySQL 8. Two column names they use, system and function, are reserved words there, and the fix for them is newer than 2026Q2.

Keep docker-compose.yaml.kc16-mysql57 and ~/mysql/data until you have validated 2026Q4. Continue only when the comparison reports IDENTICAL.

Rolling back the prerequisite

Use this if the migration fails, before you continue with step 1. After the services run 2026Q4, use Rolling back a Docker Compose deployment.

~/mysql/data (MySQL 5.7, including the old keycloak database) was never written to, so you go back to the previous compose file as a whole:

docker compose --profile prod stop                # Keycloak 26, amysql8 and the OpenSlice services
cp docker-compose.yaml.kc16-mysql57 docker-compose.yaml   # amysql 5.7 + Keycloak 16, services on host amysql
docker compose --profile prod up -d               # everything back on MySQL 5.7, exactly as before the upgrade
Anything written after the switch is not in the 5.7 database: new Keycloak users or passwords, and OpenSlice data (orders, services, …). Keep ./mysql/data if you need to recover it. To retry the upgrade later, delete ./mysql/data and start again at step P1. The files fetched from 2026Q4 can stay: MySQL 5.7 does not read mysql-init on an existing data folder.

What is kept / lost

Measured by comparing every table of the source and target databases, row by row.

Kept unchanged - Users: IDs, usernames, e-mails, names, enabled flag (165 + 3 + 1). Since the user IDs (sub) are the same, references stored in OpenSlice (relatedParty, portal users) still match. - Password hashes (105/105 identical). Users log in with their old usernames and passwords, including the master admin (admin, or the name you set instead). - Realm roles, client roles, composite roles and every user→role mapping (719). - Pending required actions (63), e.g. "verify e-mail" or "update password". - Clients: client IDs, redirect URIs, settings and the secrets of confidential clients. - Identity providers (Google, GitHub) including their client secrets, and all 69 user↔Google/GitHub account links. - Realm RSA signing keys (same kid), groups, user attributes, consents, authentication flows in use, SMTP and theme settings.

Lost - All sessions. Logged-in users must log in again. Refresh tokens and offline tokens stop working. Access tokens issued just before the switch remain valid at the back-ends until they expire (minutes). - The event log (login/error events in EVENT_ENTITY, ~5,300 rows in the rehearsal) and admin events. If you need them, keep the old database or the backup. - Brute-force lockout counters, pending action tokens (e.g. password-reset links sent before the switch). - The old database's migration history (not used by Keycloak 26).

Changed by Keycloak 26 / the fix-up - kc26-fixup.jq: client session idle timeouts larger than the realm's SSO idle timeout are lowered to it. In the rehearsal these were two clients of an extra, non-OpenSlice realm (3600 s and 10800 s), both lowered to 1800 s. KC 16 already applied the realm limit at runtime, so the effective behaviour does not change. - The built-in flows http challenge and Authentication Options were removed (deprecated in KC 16 and unused). New built-ins were added: organization flows, client scopes basic/acr/service_account, and an hmac-generated-hs512 key. - Public clients no longer store a secret. Internal confidential clients without a secret (broker, realm-management) get one generated. - Log warnings about the deprecated features identity-brokering-api:v1 and twitter-broker:v1 are harmless.

Check your client secrets

If a confidential client's secret in the export reads "**********", that literal string is the secret stored in your database. This happens if a realm was once created from a partial (masked) export. It is carried over as is. Consider regenerating it in the admin console (Clients → client → Credentials) and updating whoever uses it:

docker run --rm -i ghcr.io/jqlang/jq:1.7.1 -r \
  '.clients[] | select(.secret == "**********" and (.publicClient | not)) | .clientId' < keycloak-export/openslice-realm.json

Other cases

  • Fresh installs (no existing Keycloak): mysql-init creates the keycloak26 database on the first start of amysql8, so just use the keycloak: service from step P4 as is. On first start, --import-realm imports the openslice realm from keycloak-init/realm-export.json. The master realm then has no admin. Create one once (Keycloak may keep running):
    docker compose --profile prod run --rm --no-deps -e PW=<admin-password> keycloak \
           bootstrap-admin user --username admin --password:env PW
    
    Keycloak marks this admin as temporary. Log in to the admin console and create a permanent admin, or clear the flag. This was rehearsed on an empty database.
  • Alternative: in-place upgrade. Keycloak 26 can also migrate the old database directly, which also keeps the event log. Keycloak 16 databases created under MySQL 5.7 have latin1 tables, though, and the KC 26.6 migration fails on them (FK_GROUP_ORGANIZATION … incompatible). The tables must first be converted to utf8mb4, and the DB must run on MySQL 8. This path also worked in rehearsal, but there's no rollback without restoring the backup, which is why export/import is the recommended path.

1. Prepare the environment

🚧 Placeholder.

2. Download the new release

🚧 Placeholder.

3. Reconcile the Docker Compose file

🚧 Placeholder.

4. Pin the image tags

🚧 Placeholder.

5. Build the new release

🚧 Placeholder.

6. Configure the Web UI

🚧 Placeholder.

7. Deploy

🚧 Placeholder.

8. Validate the upgrade

🚧 Placeholder.

9. Clean up

🚧 Placeholder.

Rolling back a Docker Compose deployment

A rollback returns the whole deployment to 2026Q2 on MySQL 5.7 and Keycloak 16. ~/mysql/data was never written to, so there is no dump to restore.

Important Note: Anything written after the switch to MySQL 8 is not in the old database: new users or passwords, orders, services and other data. This rollback is possible only while ~/mysql/data, docker-compose.yaml.kc16-mysql57 and the 2026Q2 images still exist, so before you clean up.

cd org.etsi.osl.main/compose
docker compose --profile prod down
cp docker-compose.yaml.kc16-mysql57 docker-compose.yaml

cd ..
cp -n compose/mysql-init/01-databases.sql ~/01-databases.sql.2026Q4
git checkout tags/2026Q4 -- compose/mysql-init/01-databases.sql   # drop local edits, saved above
git checkout tags/2026Q2
cp ~/01-databases.sql.2026Q2 compose/mysql-init/01-databases.sql

cd compose
docker compose --profile prod up -d          # no --build: reuse the 2026Q2 images
docker compose --profile prod restart
docker compose restart nginx

Note: The Web UI is the exception. dist/ now holds the 2026Q4 bundle, so to roll the portal back as well, restore the version strings in the two configuration files and run ./deploy.sh 2026Q2 from the folder holding the checkouts.


Common local modifications

These are the settings that deployments commonly change. The list matters for Docker Compose, where the prerequisite and step 3 ask you to edit a file that holds all of them. Unless stated otherwise, they are found in docker-compose.yaml.

Modification Symptom if lost
MySQL portaluser and keycloak passwords, in compose/mysql-init/01-databases.sql and the Keycloak KC_DB_PASSWORD Keycloak cannot reach its database
MySQL root password, if not the default the services cannot reach their databases
Keycloak issuer changed from http://keycloak:8080 to your own URL every authenticated request returns 401
KEYCLOAK_FRONTEND_URL on the old keycloak service, which needs a Keycloak 26 equivalent the issuer follows the request Host header again
bugzillaurl, bugzillakey, main_operations_product the Bugzilla connector silently stops working
SPRING_AI_OLLAMA_* and the system prompt on oslmcpbackend the assistant addresses the wrong LLM
A kubeconfig placed in compose/kubedir/ (untracked, survives the checkout) CRIDGE loses access to its cluster
A pinned third-party image updated, for example Portainer the container restarts continuously
Services removed from the prod profile, and their location blocks in nginx.conf they start again and fail against dependencies you never deployed, or nginx refuses to start
server_name in nginx.conf no effect while it remains the only server block
/auth in nginx.conf proxied to https://keycloak:8443/auth (HTTPS deployments), see step P4 /auth returns 502 Bad Gateway with Keycloak 26
Host and API URLs in org.etsi.osl.portal.web/src/js/config.js the portal addresses localhost from the browser
TITLE and branding in config.prod.json, theming.scss, config.theming.json your branding reverts to the shipped text
The release name hardcoded in config.theming.json, inside FOOTER_HTML the footer continues to name the old release
Edits to the tracked compose/keycloak-init/realm-export.json the checkout aborts on any release that changes that file

The Keycloak issuer on Docker Compose

The iss claim of a token must match the issuer URL that the services expect. If you replaced http://keycloak:8080 with your deployment URL in 2026Q2, keep that URL in the service settings, and make Keycloak 26 issue tokens with it.

The keycloak: service in step P4 sets KC_HOSTNAME_STRICT: "false" and no public URL, so the issuer follows the request Host header.

🚧 Placeholder: the Keycloak 26 replacement for KEYCLOAK_FRONTEND_URL. Keycloak 26 sets its public URL with KC_HOSTNAME, but the value to use with this service has not been confirmed here.

Important Note: Do not rewrite proxy_pass http://keycloak:8080/auth in nginx.conf. That occurrence is the internal proxy target on the Docker network and must remain a container name.