-
Notifications
You must be signed in to change notification settings - Fork 14
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
[Bug]: vm deletion when vmid is empty #434
Comments
Do you have logs from the caposc controller ? The reconciler is probably stuck in an error loop. (As a side note: the official name is caposc, capo is the OpenStack provider) |
I have no logs anymore but we seen that the controller make a http GET on osc api to fetch VM informatio, with vmid parameter empty and API respond a 404 continuously. After fix mentionned in #435 , faulty oscmachine is removed. |
The 404 error might come from https://github.com/outscale/cluster-api-provider-outscale/blob/main/controllers/oscmachine_keypair_controller.go#L122
|
We're using pre-existing keypair so this function is not called , or deletion is not supposed to happens |
The function is always called. The flow is:
steps 1 and 2 could be swapped, which would fix your edge case where vm does not exist (and therefore has no keypair) I'll prepare a PR. |
What happened
When we create a faulty machine deployment, CAPO tries to create related oscmachine but it remains stuck with no status even if we try a manual deletion.
It seems the ReconcileDeleteVm falls in condition where no decision is made whereas it should remove the OscMachine.
Step to reproduce
MachineDeployment
with no existing k8s version, e/g:spec.template.version: "yolo"
.Capo will create related
OscMachine
and will remains stuck with no status andvm.resourceId
.Fix the
MachineDeployment
MachineSet
will be markedDeleting
butOscMachine
will be stuck and won't be deletedExpected to happen
MachineDeployment should perform rollout of MachineSet and OscMachines attached to previous MachineSet should be destroyed
Add anything
cluster-api output
Environment
The text was updated successfully, but these errors were encountered: