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

Upgrade CloudStack controlPlaneConfigurations.machineGroupRef.name field failed #5313

Closed
jiayiwang7 opened this issue Mar 20, 2023 · 0 comments
Assignees
Milestone

Comments

@jiayiwang7
Copy link
Member

For Cloudstack, upgrade of controlPlaneConfigurations.machineGroupRef.name field fails with below error

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x31e954c]

goroutine 1 [running]:
github.com/aws/eks-anywhere/pkg/providers/cloudstack.(*cloudstackProvider).validateMachineConfigNameUniqueness(0xc000597e50?, {0x46639d0?, 0xc000132008?}, {0xc000544a10, 0xe}, 0xa?)
        /Users/pjshah/workspace/eks-anywhere/pkg/providers/cloudstack/cloudstack.go:1359 +0x4c
github.com/aws/eks-anywhere/pkg/providers/cloudstack.(*cloudstackProvider).validateMachineConfigsNameUniqueness(0xc00081c200, {0x46639d0, 0xc000132008}, 0xc0007a4a00?, 0xc0007a4a00)

Upon debugging, it looks it fails at https://github.com/aws/eks-anywhere/blob/main/pkg/providers/cloudstack/cloudstack.go#L1325 line. clusterSpec.Cluster.GetNamespace() throws an error and thus cluster upgrade fails with panic.

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

No branches or pull requests

2 participants