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

Unable to create a virtual cluster #1654

Closed
Arpit-yb opened this issue Apr 5, 2024 · 5 comments · Fixed by #1656
Closed

Unable to create a virtual cluster #1654

Arpit-yb opened this issue Apr 5, 2024 · 5 comments · Fixed by #1656
Assignees

Comments

@Arpit-yb
Copy link

Arpit-yb commented Apr 5, 2024

What happened?

vcluster create command itself is failing with the following error -
~ ❯ vcluster create vc-1
17:51:35 info Creating namespace vcluster-vc-1
17:51:36 info Create vcluster vc-1...
17:51:36 info execute command: helm upgrade vc-1 /var/folders/86/q11k1v1j51x8nbhcr9vzd80r0000gn/T/vcluster-0.19.5.tgz-1664191840 --kubeconfig /var/folders/86/q11k1v1j51x8nbhcr9vzd80r0000gn/T/4044563248 --namespace vcluster-vc-1 --install --repository-config='' --values /var/folders/86/q11k1v1j51x8nbhcr9vzd80r0000gn/T/1873813573
17:51:42 fatal error executing helm upgrade vc-1 /var/folders/86/q11k1v1j51x8nbhcr9vzd80r0000gn/T/vcluster-0.19.5.tgz-1664191840 --kubeconfig /var/folders/86/q11k1v1j51x8nbhcr9vzd80r0000gn/T/4044563248 --namespace vcluster-vc-1 --install --repository-config='' --values /var/folders/86/q11k1v1j51x8nbhcr9vzd80r0000gn/T/1873813573: Release "vc-1" does not exist. Installing it now.
Error: parse error at (vcluster/templates/_plugin.tpl:8): function "continue" not defined

This was working earlier, I started hitting this issue after upgrading the version to 0.19.5.

What did you expect to happen?

virtual cluster should have been created successfully

How can we reproduce it (as minimally and precisely as possible)?

  1. Install vcluster version 0.19.5
  2. run - vcluster create <VC_NAME>

Anything else we need to know?

No response

Host cluster Kubernetes version

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-12T14:18:45Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.7-gke.1121002", GitCommit:"ed8e3c1a1b3ebc42a4e8deb08ed3a811c299d061", GitTreeState:"clean", BuildDate:"2024-01-04T22:47:35Z", GoVersion:"go1.20.10 X:boringcrypto", Compiler:"gc", Platform:"linux/amd64"}

Host cluster Kubernetes distribution

GKE

vlcuster version

$ vcluster --version
0.19.5

Vcluster Kubernetes distribution(k3s(default)), k8s, k0s)

k3s

OS and Arch

OS: macOS - 13.6.1 
Arch: x86_64
@johannesfrey
Copy link
Contributor

johannesfrey commented Apr 5, 2024

Thx @Arpit-yb for raising the issue.

Could you please check which version of helm you have installed on the machine where you are issuing vcluster create. The parse error in the last line might indicate that the version might be too old.

@Arpit-yb
Copy link
Author

Arpit-yb commented Apr 5, 2024

Thx @johannesfrey for taking a look.
The helm version I am using is v3.6.0

@johannesfrey
Copy link
Contributor

johannesfrey commented Apr 5, 2024

Thx! Could you try installing a newer version of Helm (e.g. the latest being v3.14.0) and try vcluster create again.

@johannesfrey johannesfrey self-assigned this Apr 5, 2024
@Arpit-yb
Copy link
Author

Arpit-yb commented Apr 5, 2024

Thanks! After updating helm, it started working again.

@johannesfrey
Copy link
Contributor

Thanks! After updating helm, it started working again.

Glad it worked. It looks like {{ contine }} inside go template is supported since go 1.18. Helm started using go 1.18 starting with v3.10.0.

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

Successfully merging a pull request may close this issue.

3 participants