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 handling of machine creation errors in the vsphere driver #13

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

artbin
Copy link
Member

@artbin artbin commented Oct 21, 2024

What this PR does / why we need it:

In the vsphere driver, creating a machine(driver.Create()) is not an atomic operation. The driver.Create() method creates a virtual machine and then reconfigures it. If the reconfiguration fails, the Machine controller will set the Machine.status.currentStatus.timeoutActive: false field, and the Machine resource will be stuck in the CrashLoopBackOff state forever. To fix this bug, the Machine controller should set the Machine.status.currentStatus.timeoutActive: true field, then the Machine controller will delete the virtual machine after the healthTimeout timeout(defaults to 10 minutes).

Release note:

NONE

@artbin artbin force-pushed the fix-vsphere-machine-creation-error-handling branch from 809ab15 to 0393b61 Compare October 21, 2024 11:57
@artbin artbin changed the title Fix vsphere machine creation error handling Fix vSphere machine creation error handling Oct 21, 2024
@artbin artbin changed the title Fix vSphere machine creation error handling Fix machine creation error handling in vsphere driver Oct 21, 2024
@artbin artbin changed the title Fix machine creation error handling in vsphere driver Fix machine creation error handling in vsphere driver Oct 21, 2024
@artbin artbin changed the title Fix machine creation error handling in vsphere driver Fixed handling of machine creation errors in the vsphere driver. Oct 21, 2024
@artbin artbin changed the title Fixed handling of machine creation errors in the vsphere driver. Fix handling of machine creation errors in the vsphere driver. Oct 21, 2024
@artbin artbin changed the title Fix handling of machine creation errors in the vsphere driver. Fix handling of machine creation errors in the vsphere driver Oct 21, 2024
@artbin artbin self-assigned this Oct 21, 2024
@aleksey-su aleksey-su self-requested a review October 22, 2024 08:15
@aleksey-su aleksey-su merged commit 8fe770e into master Oct 22, 2024
1 check passed
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.

2 participants