Bootstrap failure detection
#912 opened on May 8, 2020
Repository metrics
- Stars
- (417 stars)
- PR merge metrics
- (PR metrics pending)
Description
/kind feature
Describe the solution you'd like If bootstrapping doesn't succeed, set VSphereMachine.Status.FailureReason and FailureMessage to indicate there was an error.
Anything else you would like to add: More information in https://github.com/kubernetes-sigs/cluster-api/issues/2554.
We may need to amend the bootstrap provider contract to require them to write a sentinel file indicating success to a specific location because not all bootstrap providers will necessarily use cloud-init and have that as a consistent means for checking success/failure. I will probably write up a separate proposal for that.
We will need a way for the CAPV controller to be able to determine the status for a given VSphereMachine. Does vCenter have any services where the bootstrap logic in the VM could send an update to indicate bootstrap success? Or maybe some way to label or tag the actual VM? This would need to be properly secured, presumably.