Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSTALL_RKE2_CHANNEL=stable with install script gives 404 error #5090

Closed
chiqomar opened this issue Nov 30, 2023 · 1 comment
Closed

INSTALL_RKE2_CHANNEL=stable with install script gives 404 error #5090

chiqomar opened this issue Nov 30, 2023 · 1 comment

Comments

@chiqomar
Copy link

chiqomar commented Nov 30, 2023

Environmental Info:
RKE2 Version:

This is a bug in the install script
Node(s) CPU architecture, OS, and Version:

multipass running on M2 Macbook Pro:
Darwin 22.6.0 Darwin Kernel Version 22.6.0: Thu Nov 2 07:43:25 PDT 2023; root:xnu-8796.141.3.701.17~6/RELEASE_ARM64_T6020 arm64
Cluster Configuration:

This is a bug in the install script
Describe the bug:

I was attempting to use multipass-rke2, and debug the issue with the script; apparently the resulting command in the default setting of the cloud-config file is the following:

curl -sfL https://get.rke2.io | INSTALL_RKE2_CHANNEL=stable  sh -

When you attempt to run this, the command results in the following output:

[INFO] finding release for channel stable
[INFO] using v1.26.10+rke2r2 as release
[INFO] downloading checksums at https://github.com/rancher/rke2/releases/download/v1.26.10+rke2r2/sha256sum-arm64.txt
curl: (22) The requested URL returned error: 404

Attempting to run the same with the latest tag works fine, which defaults to stable according to the docs.
Steps To Reproduce:

Although I was using the script from the project mentioned, simply running

curl -sfL https://get.rke2.io | INSTALL_RKE2_CHANNEL=stable  sh -

should show the 404 error.

Expected behavior:

I would expect that the three specified commands:

curl -sfL https://get.rke2.io | INSTALL_RKE2_CHANNEL=stable  sh -
curl -sfL https://get.rke2.io | INSTALL_RKE2_CHANNEL= sh -
curl -sfL https://get.rke2.io | sh -

Should result in the exact same install of the stable branch of RKE2
Actual behavior:

The result is a 404 in running the command, but within the cloud-config, there is no error, and it simply fails at its next step to run the expected kubectl command as it is not installed.
Additional context / logs:

@brandond
Copy link
Member

brandond commented Nov 30, 2023

Attempting to run the same with the latest tag works fine, which defaults to stable according to the docs.

The latest "tag" does not default to stable, I'm not sure what you mean by this. If you don't specify a channel, it defaults to stable - which is not the same thing at all.

The latest channel gives you the highest available non-RC release: https://github.com/rancher/rke2/blob/master/channels.yaml#L4

The stable channel gives you a known-good release, which is currently from the 1.26 minor:
https://github.com/rancher/rke2/blob/master/channels.yaml#L2-L3

[INFO] finding release for channel stable
[INFO] using v1.26.10+rke2r2 as release
sha256sum-arm64.txt

arm64 support is still experimental, and only available for tarball install on the 1.27 and newer minors. You should use either the latest channel, or the v1.27/v1.28 channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants