k3d-io / k3d

Little helper to run CNCF's k3s in Docker
https://k3d.io/
MIT License
5.34k stars 456 forks source link

[BUG] unable to add node to the cluster #1260

Open rohanlucifer opened 1 year ago

rohanlucifer commented 1 year ago

Question / Where do you need Help?

Scope of your Question

INFO[0001] Adding 1 node(s) to the runtime local cluster 'wordpress'... 
INFO[0003] Using the k3d-tools node to gather environment information 
INFO[0003] Starting new tools node...                   
INFO[0034] Starting Node 'k3d-wordpress-tools'          
INFO[0133] HostIP: using network gateway 172.29.0.1 address 
INFO[0133] Successfully created 1 node(s)!              
panic: runtime error: index out of range [-1]

goroutine 6 [running]:
github.com/k3d-io/k3d/v5/pkg/client.NodeAddToCluster({0xf6c198, 0xc0001364b0}, {0xf7b2b0?, 0x156de50?}, 0xc000103040, 0xc0001e8d00?, {0x1, 0x0, {0x0, 0x0, ...}, ...})
    /home/runner/work/k3d/k3d/pkg/client/node.go:200 +0x20c8
github.com/k3d-io/k3d/v5/pkg/client.NodeAddToClusterMulti.func1()
    /home/runner/work/k3d/k3d/pkg/client/node.go:346 +0x57
golang.org/x/sync/errgroup.(*Group).Go.func1()
    /home/runner/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x64
created by golang.org/x/sync/errgroup.(*Group).Go
    /home/runner/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0xa5

can anyone help me please find out the solution

Mike-no commented 1 year ago

I have the same issue right now (both on v5.4.8 and v5.4.9)

wu-json commented 1 year ago

Same problem here on v5.4.9