[RKE2 Upgrade issue] Hi, I have RKE2 running on an...
# rke2
a
[RKE2 Upgrade issue] Hi, I have RKE2 running on an SL-Micro 6 3-node cluster. It's currently running
v1.30.3+rke2r1
and I want to upgrade it to the latest stable release (
v1.31.6+rke2r1
) . So I'm running the install/upgrade script as explained in the official procedure. It goes through the process, but nothing gets upgraded:
Copy code
node1:/ # curl -sfL <https://get.rke2.io> | sh -
[WARN]  /usr/local is read-only or a mount point; installing to /opt/rke2
[INFO]  staging local checksums from /root/rke2-artifacts/sha256sum-amd64.txt
[INFO]  staging zst airgap image tarball from /root/rke2-artifacts/rke2-images.linux-amd64.tar.zst
[INFO]  staging tarball from /root/rke2-artifacts/rke2.linux-amd64.tar.gz
[INFO]  verifying airgap tarball
[INFO]  installing airgap tarball to /var/lib/rancher/rke2/agent/images
[INFO]  verifying tarball
[INFO]  unpacking tarball file to /opt/rke2
[INFO]  updating tarball contents to reflect install path
[INFO]  moving systemd units to /etc/systemd/system
[INFO]  install complete; you may want to run:  export PATH=$PATH:/opt/rke2/bin
I have restarted the RKE2 server. Also none of the containers got redeployed, the whole procedure went very fast. I have also tried to specify the upgrade version with
curl -sfL <https://get.rke2.io> | INSTALL_RKE2_VERSION=vX.Y.Z+rke2rN sh -
The result is the same. Any idea I can troubleshoot this ? PS: The environment is behind a proxy
c
You appear to have env vars set that are instructing the install script to skip downloading and just use the already download local artifacts. Why?
Check your env for vars that start with INSTALL_RKE2
a
mmm... I can't find anything like this:
Copy code
node01:~ # env | grep INSTALL
node01:~ #
c
Either that or you've trimmed out a bunch of the log. I don't see any of the stuff about checking the channel server, printing out what version it's installing, and so on.
a
I literally copied and pasted the entire contents of the install output here. Only redacted the node name
c
It is running as if you have
$INSTALL_RKE2_ARTIFACT_PATH
set. I don't see any other possibility. https://github.com/rancher/rke2/blob/bf068e2ab2df279d690d636caf157f632cb8edb2/install.sh#L630
a
shit
sorry, you're right
it gets installed by the proxy script
when you asked me to check - I logged into the node and checked, but didn't source the proxy
sorry about that. I'll take it from here