aup-learning-cloud icon indicating copy to clipboard operation
aup-learning-cloud copied to clipboard

Pin K3s version consistently for the multi-AIPC PXE netboot agent

Open Stanley-PH opened this issue 6 months ago • 0 comments

Summary

The multi-AIPC PXE netboot deployment guide (docs: installation/multi-node/multi-aipc-hardware-deployment) relies on a PXE controller role whose netboot rootfs installs the K3s agent with no version pin (i.e. latest), while the K3s server is installed pinned. K3s requires an agent to be the same version as (or older than) the server, so a freshly netbooted agent can end up newer than the server and fail to join. This blocks the guide from being reliably "clone and run".

Details

The PXE controller role currently lives on the internal fet-deploy branch and is not in this repo yet. When it is integrated here, the agent install must be pinned to the same K3s version used everywhere else.

  • Netboot rootfs agent install (role template chroot-setup.sh.j2): curl -sfL https://get.k3s.io | ... sh -s - agent -> no INSTALL_K3S_VERSION (installs latest)
  • This repo is currently consistent at v1.32.3+k3s1 (deploy/ansible/inventory.yml + auplc_installer/k3s.py)
  • On fet-deploy, inventory.yml has drifted to v1.34.6+k3s1 while auplc_installer/k3s.py is still v1.32.3+k3s1

Proposed fix

  1. Pick one supported K3s version and use it everywhere (server + every agent).
  2. Pin the netboot agent in chroot-setup.sh.j2, ideally via a role variable (e.g. pxe_k3s_version) defaulted in roles/pxe_controller/defaults/main.yml.
  3. Reconcile the fet-deploy inventory (v1.34.6+k3s1) with auplc_installer/k3s.py (v1.32.3+k3s1) before/when the role lands here.

Found while validating docs: installation/multi-node/multi-aipc-hardware-deployment.

Stanley-PH avatar May 29 '26 06:05 Stanley-PH