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

Error when re-using edge devices #23

Open
robert-sanfeliu opened this issue Sep 12, 2024 · 0 comments
Open

Error when re-using edge devices #23

robert-sanfeliu opened this issue Sep 12, 2024 · 0 comments
Labels
question Further information is requested

Comments

@robert-sanfeliu
Copy link
Contributor

I tried to make a deployment with an edge device that wasn't fresh. It had already been used to deploy a cluster (successfully).

The deployment failed on the worker initialization with this error:

[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:47:55] Saving to: ‘install-kube-u22-wg.sh’
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:47:55] 0K .... 100% 76.7M=0s
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:47:55] 2024-09-12 10:47:55 (76.7 MB/s) - ‘install-kube-u22-wg.sh’ saved [4459/4459]
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:47:55] INFO [Thu Sep 12 10:47:55 UTC 2024]: Configuration started!
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:47:55] INFO [Thu Sep 12 10:47:55 UTC 2024]: Logs are saved at: /var/log/kube-install.25296.log
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:47:55] INFO [Thu Sep 12 10:47:55 UTC 2024]: Updating the package list.
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:48:31] INFO [Thu Sep 12 10:48:31 UTC 2024]: Checking for apt lock
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:48:31] INFO [Thu Sep 12 10:48:31 UTC 2024]: Exited the while loop, time spent: 0
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:48:31] INFO [Thu Sep 12 10:48:31 UTC 2024]: Waiting for lock task ended properly.
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:48:31] INFO [Thu Sep 12 10:48:31 UTC 2024]: Installing curl
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:48:31] INFO [Thu Sep 12 10:48:31 UTC 2024]: Installing Docker
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:48:32] INFO [Thu Sep 12 10:48:32 UTC 2024]: Adding Kubernetes Repo
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:48:32] INFO [Thu Sep 12 10:48:32 UTC 2024]: Checking for apt lock
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:48:42] INFO [Thu Sep 12 10:48:42 UTC 2024]: Exited the while loop, time spent: 10
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:48:42] INFO [Thu Sep 12 10:48:42 UTC 2024]: Waiting for lock task ended properly.
[[email protected];worker-tstedgamd20241212351-tstedgamd2024121235_Task_install_0;10:48:42] ERROR [Thu Sep 12 10:48:42 UTC 2024]: Kubernetes repo can't be added!

This error comes from the execution of the script install-kube-u22-wg.sh (https://raw.githubusercontent.com/eu-nebulous/sal-scripts/main/k8s/install-kube-u22-wg.sh) on line

curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.26/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg || { log_print ERROR "Kubernetes repo can't be added!"; exit $EXITCODE; }
sudo apt-get update

If I SSH to the edge node and I try to run the script. I get:

ubuntu@worker-tstedgamd20241212351-tstedgamd2024121235:~$ curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.26/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
File '/etc/apt/keyrings/kubernetes-apt-keyring.gpg' exists. Overwrite? (y/N)

My assumption is that installation failed because '/etc/apt/keyrings/kubernetes-apt-keyring.gpg' already existed.

@robert-sanfeliu robert-sanfeliu added the question Further information is requested label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant