Skip to content

fix(e2e): register the k3s tmachine gateways as openshell - #6253

Open
matthewgrossman wants to merge 4 commits into
mainfrom
fix/k3s-gateway-name/matthewgrossman
Open

matthewgrossman wants to merge 4 commits into
mainfrom
fix/k3s-gateway-name/matthewgrossman

Conversation

@matthewgrossman

@matthewgrossman matthewgrossman commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Register the gateway as openshell for every tmachine installer (k3s, k3s-ha and binaries), as the deb and rpm installers already do, and make openshell the openshell_client role's default gateway name.

Small change to simplify some future changes on how we specify matrices of tests

Related Issue

No tracking issue. The k3s installers registered tmachine only because the openshell_client role defaults openshell_client_gateway_name to it, which forced every k3s row in e2e-suites.yml to carry a gateway value that differs from the packaged rows.

Changes

  • openshell-k3s-ha.yaml writes the mTLS bundle under gateways/openshell/mtls, removes the openshell baseline registration, and re-registers as openshell, all from one play var. These change together so HA does not register openshell without its client certificates.
  • e2e-suites.yml drops the gateway field from all rows and the step that passed it; the runner's --gateway default is openshell.
  • The openshell_client role defaults to openshell, and the callers' overrides are gone.
  • The binaries installer's gateway config uses the server defaults (openshell) for gateway_id, the Podman network_name and the Docker sandbox_label.
  • drivers/podman/e2e.yaml no longer branches on the gateway name or re-registers the binaries gateway; it still picks the CLI path by installer.

Testing

  • ansible-playbook --syntax-check passes on both k3s playbooks
  • The rows JSON in e2e-suites.yml parses
  • Unit tests added/updated (not applicable)
  • E2E tests added/updated (not applicable)
  • The k3s and k3s-ha rows were not run locally; CI exercises them

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

The k3s and k3s-ha installers registered their gateway as tmachine only because the openshell_client role defaults to that name. Name it openshell, as the packaged installers do, so every installer a suite row uses registers the same gateway. The HA playbook's mTLS bundle path and baseline removal change with it.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Every installer a row uses registers the gateway openshell, so rows no longer repeat it. A row can still set gateway to override the runner's default.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman
matthewgrossman requested a review from a team as a code owner December 4, 2026 23:30
@matthewgrossman matthewgrossman added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:testing Unit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure. labels Dec 4, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 4, 2026
Default openshell_client_gateway_name to openshell and drop the overrides that repeated it. The binaries installer's gateway.yaml keeps tmachine explicitly. The k3s-ha playbook takes the name from one play var, and the workflow loses its unused gateway override.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Every installer now registers the gateway openshell, so the test client role needs no per-installer name. The binaries gateway config uses the server defaults for its id, network and sandbox label, and the Podman E2E playbook no longer branches on the installer or re-registers the gateway.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman matthewgrossman added test:e2e Requires end-to-end coverage test:e2e-kubernetes Requires Kubernetes end-to-end coverage labels Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage test:e2e-kubernetes Requires Kubernetes end-to-end coverage topic:testing Unit, integration, regression, conformance, E2E tests, coverage, flakes, and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant