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

panic: runtime error: index out of range #14

Open
a1exus opened this issue Jan 22, 2019 · 0 comments
Open

panic: runtime error: index out of range #14

a1exus opened this issue Jan 22, 2019 · 0 comments

Comments

@a1exus
Copy link

a1exus commented Jan 22, 2019

while trying to follow Create cluster, I ran into following:

$ PROJECT=`gcloud config get-value project`
$ export KOPS_FEATURE_FLAGS=AlphaAllowGCE # to unlock the GCE features
$ kops create cluster test.k8s.local --zones us-east4-c,us-east4-b,us-east4-a --state gs://kops/ --project=${PROJECT} --authorization rbac --topology private --networking canal --bastion --ssh-public-key ~/.ssh/id_rsa.pub --master-count 3 --node-count 2 --cloud gce
$ kops create cluster --cloud gce --authorization rbac --topology private --networking canal --bastion --master-count 3 --node-count 2 --zones us-east4-c,us-east4-b,us-east4-a --ssh-public-key ~/.ssh/id_rsa.pub --state gs://kops/ test.k8s.local
I0121 21:24:32.801889   29495 create_cluster.go:1407] Using SSH public key: /Users/X/.ssh/id_rsa.pub
I0121 21:24:36.959846   29495 create_cluster.go:884] using google cloud project: x
Previewing changes that will be made:

I0121 21:24:46.759403   29495 apply_cluster.go:542] Gossip DNS: skipping DNS validation
W0121 21:24:46.805439   29495 external_access.go:36] TODO: Harmonize gcemodel ExternalAccessModelBuilder with awsmodel
W0121 21:24:46.805482   29495 firewall.go:35] TODO: Harmonize gcemodel with awsmodel for firewall - GCE model is way too open
W0121 21:24:46.805498   29495 firewall.go:63] Adding overlay network for X -> node rule - HACK
W0121 21:24:46.805504   29495 firewall.go:64] We should probably use subnets?
W0121 21:24:46.805531   29495 firewall.go:118] Adding overlay network for X -> master rule - HACK
W0121 21:24:46.969002   29495 storageacl.go:71] we need to split master / node roles
panic: runtime error: index out of range

goroutine 1 [running]:
k8s.io/kops/pkg/model/gcemodel.(*AutoscalingGroupModelBuilder).Build(0xc000de1480, 0xc000220120, 0x0, 0x0)
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/pkg/model/gcemodel/autoscalinggroup.go:173 +0x1912
k8s.io/kops/upup/pkg/fi/cloudup.(*Loader).BuildTasks(0xc000a2d580, 0x46473c0, 0xc0009ba890, 0xc000e06a70, 0x1, 0x1, 0xc0009f66c0, 0xc000cb25c0, 0xc000eed1d0, 0x14, ...)
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/upup/pkg/fi/cloudup/loader.go:179 +0x351
k8s.io/kops/upup/pkg/fi/cloudup.(*ApplyClusterCmd).Run(0xc0003cc000, 0x0, 0x0)
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/upup/pkg/fi/cloudup/apply_cluster.go:793 +0x18f4
main.RunUpdateCluster(0xc000a14300, 0x7ffeefbffac0, 0xe, 0x460b400, 0xc0000e0008, 0xc0007c82d0, 0x0, 0x27, 0x0)
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/cmd/kops/update_cluster.go:256 +0x7d6
main.RunCreateCluster(0xc000a14300, 0x460b400, 0xc0000e0008, 0xc000e0e700, 0x0, 0x0)
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/cmd/kops/create_cluster.go:1275 +0x33dd
main.NewCmdCreateCluster.func1(0xc00011a780, 0xc00085da40, 0x1, 0x14)
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/cmd/kops/create_cluster.go:264 +0x164
k8s.io/kops/vendor/github.com/spf13/cobra.(*Command).execute(0xc00011a780, 0xc00085d900, 0x14, 0x14, 0xc00011a780, 0xc00085d900)
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/vendor/github.com/spf13/cobra/command.go:760 +0x2cc
k8s.io/kops/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x6c40ba0, 0x3839400, 0x0, 0x0)
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/vendor/github.com/spf13/cobra/command.go:846 +0x2fd
k8s.io/kops/vendor/github.com/spf13/cobra.(*Command).Execute(0x6c40ba0, 0x6c77000, 0x0)
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/vendor/github.com/spf13/cobra/command.go:794 +0x2b
main.Execute()
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/cmd/kops/root.go:97 +0x87
main.main()
	/private/tmp/kops-20190102-83288-1naju7c/kops-1.11.0/src/k8s.io/kops/cmd/kops/main.go:25 +0x20
$ 

Please advise.

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

1 participant