-
Notifications
You must be signed in to change notification settings - Fork 7
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
issues when using template with --user-data-file / --user-data-filepath - always uses hostname "ranchergui" and doesn't apply config #36
Comments
I built from sources using "go install" in ubuntu 22.04 |
when I check cloudconfig in harvester gui it shows the one from the template. and it alos runs it instea dof replacing it and it also doesn't use the vlaues from --disk-size, --cpus, --memory, |
the issue also occurs when using the full path to the .yaml -files. |
@belgaied2 Hey there :) |
Hi @ne0YT , sorry for not replying since a long time. I have been very busy with my work, and did not spend time on Harvester CLI. So, it looks like my latest implementations did not work correctly. |
I think I figured out your issue @ne0YT. You are putting the name of the VM too early. In my case, if I do this: go run main.go vm create --template ubuntu-template:1 hello-world --disk-size 50Gi -c 4 -m 8Gi Harvester CLI would completely ignore the go run main.go vm create --template ubuntu-template:1 --disk-size 50Gi -c 4 -m 8Gi hello-world-2 More information about this, refer to this issue in upstream urfave/cli, which was closed without resolution. |
hey there. Thank you, it seems to fix that part but smh I cannot use cloudinit with it rn;
and --namespace only works if the template is in the same namespace too right? |
@belgaied2 were you able to use "--user-data-*" yourself? |
@belgaied2 |
@belgaied2 |
I tried to deploy a vm like this:
harvester-cli vm create --template ubuntu2204cloudinit caddy --user-data-filepath 002_ubuntu2204_cloudconfig_CADDY.yaml --network-data-filepath 002_ubuntu2204_cloudconfig_CADDY_NETWORK.yaml
it will always set the hostname "ranchergui" even though I defined "caddy".
I also tried using "--user-data-file". and I also tried using ./002_ubuntu2204_cloudconfig_CADDY.yaml (the files are in the same path as I'm in when running the command)
when I use the yaml-data manually and just paste it in the regaridng fields it works without any problem.
The text was updated successfully, but these errors were encountered: