Skip to content

FI: upgrade the TESK to tesk-api 2.1 with Helm #178

Done

Description

@uniqueg

Why?

The FI TESK (CSC Rahti, project tesk) runs tesk-api 2.0.0 from TESK chart 0.4.0. The two-Node test of automatic upgrades (#33) and the redesigned TESK auth need it on the tesk-api 2.1 release line. Minor and major releases are deployed with Helm; Pubgrade then keeps the running minor patched (decision of 2026-11-25).

How?

  1. When tesk-api 2.1.0 is tagged (build: prepare the 2.1.0 release tesk-api#212), its release notifies Pubgrade. The FI sidecar (Pubgrade-Sidecar 0.3.1, allowedTags: 2\.0\.[0-9]+, refuseDowngrades: true) must answer 409 and change nothing. Record that here: it is the first real check of the guard.
  2. Upgrade the Helm release in project tesk to TESK chart 0.5.x (build: prepare the 0.5.0 release TESK#339) with tesk-api 2.1.x: the new auth values (issuers and audiences, the tes-authz decision service), the proTES service client, and the EOC-Compute entitlement for creating tasks. Write the runbook first and check the rendered manifests against the LimitRange and quota of the project.
  3. In the same session, set allowedTags of the FI sidecar (its own Helm release) to 2\.1\.[0-9]+, then rehearse: re-run the notify job of the deployed tesk-api release. Nothing may change.
  4. Check the service: service-info reports 2.1.x; a task of a member and a task through proTES complete; a token without the entitlement gets 403 when it creates a task.

From then on, every helm upgrade of this release passes the live tesk-api image, so that Helm doesn't undo a rollout of the sidecar.

Acceptance criteria

  • The sidecar's 409 for the 2.1.0 notification is recorded here.
  • The FI TESK runs tesk-api 2.1.x from chart 0.5.x; a member's task and a task through proTES completed; a non-member got 403.
  • The FI sidecar accepts 2\.1\.[0-9]+ only, and the rehearsal changed nothing.

Activity

  1. self-assigned this
    on Nov 28, 2026
  2. added
    status: blocked
    priority: high
    workload: hours
    ecp-wp4: M4.3
    on Nov 28, 2026
  3. moved this to Backlog in ELIXIR On-Cloudon Nov 28, 2026
  4. added
    status: in progress
    and removed
    status: blocked
    on Dec 2, 2026
  5. moved this from Backlog to In progress in ELIXIR On-Cloudon Dec 2, 2026
  6. uniqueg commented on Dec 2, 2026

    @uniqueg
    MemberAuthor

    Done: the FI TESK (Rahti, namespace tesk) runs TESK chart 0.5.0 with tesk-api 2.1.0 and the tes-authz sidecar, and its Pubgrade sidecar is on the 2.1 line. Runbook: runbooks/tesk-upgrade.md (uniqueg/project-context#64, pins #75, fixes #76).

    R0, the notifications refused before the upgrade. The FI sidecar had allowedTags 2\.0\.[0-9]+ and refuseDowngrades. It answered both release notifications with 409 "The sidecar's settings don't allow this tag; nothing changed.":

    • tesk-api 2.1.0 at 2026-12-01 22:03:43 UTC;
    • tesk-api 2.1.1 at 2026-12-02 02:34:28 UTC.

    The image stayed on 2.0.0 until the Helm upgrade.

    Upgrade. 2026-12-02 12:34 UTC, go word UPGRADE-TESK-FI. Helm revision 11 (was 10).

    • Chart tesk-0.5.0.tgz: sha256 26888f86…8b19, cosign Verified OK (identity release.yml@refs/tags/v0.5.0).
    • Images:
      • tesk-api 2.1.0@sha256:692f1941…d5f7
      • tes-authz 0.1.0@sha256:ca01827d…fef0
      • taskmaster and filer 0.13.0 by digest
    • Checks before the change:
      • 0 active task jobs, counted again after the go word;
      • the values diff dropped only the 0.4 auth keys;
      • no seccomp profile in the render;
      • LimitRange: tes-authz at 100m/500m, ratio 5;
      • quota OK;
      • server and Helm dry runs passed.

    Verification.

    • service-info: fi.rahtiapp.tesk, version 2.1.0, TES 1.1.0.
    • GET /tasks without a token: 401.
    • Both containers ready, 0 restarts.
    • Member token, 2026-12-02 13:29-13:31 UTC:
      • smoke test directly at tesk.rahtiapp.fi passed (401 without token; create, get, list and cancel OK; task-eb0a3d1a);
      • through proTES passed (task R0DSAD, forwarded to this TESK as task-6ddbf58f).

    Sidecar. 2026-12-02 12:37 UTC, go word SIDECAR-TESK-FI. pubgrade-sidecar revision 3 (was 2), allowedTags 2\.1\.[0-9]+. The tesk-api image was unchanged by the sidecar upgrade.

    Rollback. Not needed. tesk-upgrade.fish --site FI rollback would go back to the recorded revision 10.

    Not covered here. The non-member check (create 403, list 200) is part of the gi#44 walk on Thu 3 Dec.

  7. moved this from In progress to Done in ELIXIR On-Cloudon Dec 2, 2026
  8. removed
    status: in progress
    on Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ecp-wp4: M4.3priority: hightype: deploymentworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions