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

Fix autoscaler bug #913

Merged
merged 4 commits into from
Sep 4, 2024
Merged

Fix autoscaler bug #913

merged 4 commits into from
Sep 4, 2024

Conversation

roypaulin
Copy link
Collaborator

When running a VerticaAutoscaler on a VerticaDB where vcluster-ops was not explicitly set to true we hit a CreateContainerError error. This happens because the autoscaler was still internally using a v1beta1 VerticaDB which led to the conversion webhook wrongfully setting that annotation to false.
This fixes the issue by using a v1 VerticaDB instead.

Closes #908

@cchen-vertica
Copy link
Collaborator

So the issue is: the customer is using v1 vdb, but v1beta1.vdb will convert vdb to v1beta1 version with wrong values. We probably need to fix the v1-v1beta1 conversion function in a follow-up jira.

@roypaulin
Copy link
Collaborator Author

No, the conversion logic is fine. The issue is that verticaautoscaler reconcilers were outdated, still using v1beta1 vdb to cache vdb info. So when you try to convert back from v1beta1 to v1, the absence of vertica.com/vcluster-ops in v1beta1 leads to the annotation being set to false in v1.

@roypaulin roypaulin merged commit ce09130 into main Sep 4, 2024
33 checks passed
@roypaulin roypaulin deleted the roypaulin/autoscaler branch September 4, 2024 13:02
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

Successfully merging this pull request may close these issues.

CreateContainerError occurs when trying to use VerticaAutoscaler
2 participants