Skip to content

Published images unreachable: ghcr.io/kagenti/* returns 403 after the org rename; setup scripts die in ImagePullBackOff #177

Closed

Description

@pdettori

Symptom

A fresh setup-ocp.sh bring-up fails: the three sandbox pods and the relay sit in ImagePullBackOff. The underlying pull error:

Failed to pull image "ghcr.io/kagenti/serverless-harness-sandbox:latest":
  Requesting bearer token: received unexpected HTTP status: 403 Forbidden

Note setup-ocp.sh still exits 0 in this state (see the separate issue), so the bring-up reports success while nothing usable is running.

Cause

After the kagenti → rossoctl org rename, the published images are reachable at the new org and not at the old one. Verified anonymously (fresh token per repo, from a laptop — so this is not a cluster egress issue):

Image Status
ghcr.io/rossoctl/serverless-harness:latest 200 — public, multi-arch (amd64 + arm64)
ghcr.io/rossoctl/serverless-harness-sandbox:latest 200 — public, multi-arch
ghcr.io/kagenti/serverless-harness:latest 403
ghcr.io/kagenti/serverless-harness-sandbox:latest 403

Worth flagging before anyone "just does a find/replace": .github/workflows/build.yaml still publishes to the old paths (ghcr.io/kagenti/serverless-harness, -sandbox, -echo-target, lines ~29/36/44). So the choice is a registry-ownership decision, not purely a code change:

  • (a) make the kagenti packages public again / relink them to the renamed repo, leaving all references as-is; or
  • (b) repoint the publish targets to rossoctl and update every consumer.

Blast radius for option (b)

ghcr.io/kagenti currently appears in ~19 tracked files, including:

  • deploy/knative/setup-ocp.sh, setup-k8s.sh, setup-kind.sh
  • deploy/knative/overlays/ocp/kustomization.yaml, patch-sandbox.yaml, and the ocp-authbridge overlay
  • deploy/knative/sandbox-pool-ab2.yaml, authbridge/ab1-deployment.yaml
  • .github/workflows/build.yaml (the publisher)
  • two tests that assert on the paths: packages/knative-server/test/authbridge-manifests.test.ts, ocp-authbridge-overlay.test.ts
  • docs: README-ocp.md, README-k8s.md, EXPERIMENTS.md, experiments/swebench/RUNBOOK.md, two specs, one ADR

Secondary defect

In setup-ocp.sh:40-41 the image paths are plain assignments, not ${VAR:-default}:

HARNESS_IMAGE="ghcr.io/kagenti/serverless-harness:latest"
SANDBOX_IMAGE="ghcr.io/kagenti/serverless-harness-sandbox:latest"

so HARNESS_IMAGE=... ./setup-ocp.sh is silently ignored — the only working override is the --image / --sandbox-image flags. Making these respect the environment would be a cheap usability win independent of which option above is chosen.

Workaround

bash deploy/knative/setup-ocp.sh \
  --image ghcr.io/rossoctl/serverless-harness:latest \
  --sandbox-image ghcr.io/rossoctl/serverless-harness-sandbox:latest

One extra step if the cluster already has Sandbox CRs: changing the image updates the CR but does not roll the pods (a Sandbox is not a Deployment), so the old pods stay in ImagePullBackOff until deleted:

kubectl delete pod sandbox-0 sandbox-1 sandbox-2 -n default

Confirmed working on OpenShift 4.20.8 — with these overrides the full stack came up and the remote-sandbox live gate passed 6/6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions