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

cannot perform Air-Gap Install with Tarball Method #5922

Closed
heroes1412 opened this issue May 17, 2024 · 2 comments
Closed

cannot perform Air-Gap Install with Tarball Method #5922

heroes1412 opened this issue May 17, 2024 · 2 comments

Comments

@heroes1412
Copy link

Environmental Info:
RKE2 Version: v1.30.0+rke2r1

Node(s) CPU architecture, OS, and Version:
Linux cp1 5.15.0-205.149.5.1.el9uek.x86_64 #2 SMP Fri Apr 5 11:29:36 PDT 2024 x86_64 x86_64 x86_64 GNU/Linux
Oracle Linux 9

Steps To Reproduce:

  • selinux was disabled
    ip link add dummy0 type dummy
    ip link set dummy0 up
    ip addr add 203.0.113.254/31 dev dummy0
    ip route add default via 203.0.113.255 dev dummy0 metric 1000
  • already copied rke2-images.linux-amd64.tar.gz to /var/lib/rancher/rke2/agent/images/
  • Installed RKE2 by: INSTALL_RKE2_TYPE="server" ./install_rke2.sh

Expected behavior:

  • can install RKE2 server node in offline enviroment

Actual behavior:
[root@localhost tmp]# INSTALL_RKE2_TYPE="server" ./install_rke2.sh
[INFO] finding release for channel stable
curl: (28) Failed to connect to update.rke2.io port 443: Connection timed out
[INFO] using stable series from channel stable
Rancher RKE2 Common (stable) 0.0 B/s | 0 B 06:00
Errors during downloading metadata for repository 'rancher-rke2-common-stable':

@heroes1412 heroes1412 changed the title cannot perform Air-Gap Install cannot perform Air-Gap Install with Tarball Method May 17, 2024
@brandond
Copy link
Member

See the docs - specifically https://docs.rke2.io/install/airgap#rke2-installsh-script-install where it says install.sh may be used in an offline mode by setting the INSTALL_RKE2_ARTIFACT_PATH variable to a path containing pre-downloaded artifacts - it does not appear that you've set that variable.

@heroes1412
Copy link
Author

heroes1412 commented May 17, 2024

thanks, it works. i thought that i only need put all zst|gz file into /var/lib/rancher/rke2/agent/images/
install script will detect and run in offline mode :D

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