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

Improve error handling in cluster install binary #8536

Open
jaradtke-aws opened this issue Jul 25, 2024 · 0 comments
Open

Improve error handling in cluster install binary #8536

jaradtke-aws opened this issue Jul 25, 2024 · 0 comments

Comments

@jaradtke-aws
Copy link
Member

jaradtke-aws commented Jul 25, 2024

What would you like to be added:
Improved error handling and reporting from eksanywhere installer

Why is this needed:
I believe I have something wrong with my vSphere setup. (as this system is able to deploy EKS-A of the same version using bottlerocket - therefore, the eksanywhere binary would appear to be fine).
It would be nicer/better if when the installer encounters an issue of some sort, if it could 1/ not display output that looks like it crashed 2/ inform the user of what issue was encountered.

Update: I believe it was erroring out due to the fact that I had replicated my kind: VSphereMachineConfig without giving the second instance a new name (i.e. I had 2 VSphereMachineConfig with the same name)

eksctl anywhere create cluster \
   -f  $CLUSTER_CONFIG
Warning: VSphereDatacenterConfig configured in insecure mode
Using the new workflow using the controller for management cluster create
Performing setup and validations
Closer failed	{"closerType": "*dependencies.Dependencies", "error": "govc returned error when logging out: govc: Post \"https://vsphere.kubernerdes.lab/sdk\": dial tcp: lookup vsphere.kubernerdes.lab on 127.0.0.53:53: no such host\n"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x148 pc=0x2cb023a]

goroutine 1 [running]:
github.com/aws/eks-anywhere/pkg/validations/createvalidations.(*CreateValidations).PreflightValidations(0xc00052d8d0, {0x3ccd898?, 0x56e8b60})
	github.com/aws/eks-anywhere/pkg/validations/createvalidations/preflightvalidations.go:72 +0xf1a
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