https://rancher.com/ logo
Title
f

fierce-summer-6167

06/29/2022, 3:08 PM
Hello, I am attempting to install a specific version of RKE2 using:
curl -sfL <https://get.rke2.io> | INSTALL_RKE2_VERSION=1.22.9+rke2r2 sh -
but the installation script reports "No package rke-server-1.22.9-rke2r2 available". This release exists: https://github.com/rancher/rke2/releases/tag/v1.22.9%2Brke2r2 I've tried various combinations of INSTALL_RKE2_CHANNEL, INSTALL_RKE2_VERSION, and INSTALL_RKE2_COMMIT, with no change in behavior. Is this expected, or should I be able to install a specific release?
c

creamy-pencil-82913

06/29/2022, 3:38 PM
You appear to be missing the v at the beginning of the version in your command
The version is v1.22.9+rke2r2, as shown in the release you linked to. Not 1.22.9+rke2r2.
f

fierce-summer-6167

06/29/2022, 3:56 PM
Hello @creamy-pencil-82913, There's the problem. I remember asking myself that question early on, and used "v1.22" when specifying the channel (for example, from the channel API), but somehow concluded based on the success of pulling the latest release in various channels (and fact that the installed package name includes the version without the v), that INSTALL_RKE2_CHANNEL was somehow overriding INSTALL_RKE2_VERSION in those cases. My mistake. Thank you.