Skip to content

Commit

Permalink
Do not put machine in failed state if VM is is topping or stopped sta…
Browse files Browse the repository at this point in the history
…te, and use ID from instance during deletion
  • Loading branch information
shyamradhakrishnan committed Oct 21, 2023
1 parent 4f32a55 commit 64cd0f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/ocimachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ func (r *OCIMachineReconciler) reconcileNormal(ctx context.Context, logger logr.
}
fallthrough
default:
machineScope.SetNotReady()
conditions.MarkFalse(machineScope.OCIMachine, infrastructurev1beta2.InstanceReadyCondition, infrastructurev1beta2.InstanceProvisionFailedReason, clusterv1.ConditionSeverityError, "")
machineScope.SetFailureReason(capierrors.CreateMachineError)
machineScope.SetFailureMessage(errors.Errorf("Instance status %q is unexpected", instance.LifecycleState))
Expand Down

0 comments on commit 64cd0f7

Please sign in to comment.