Skip to content

Commit 64cd0f7

Browse files
Do not put machine in failed state if VM is is topping or stopped state, and use ID from instance during deletion
1 parent 4f32a55 commit 64cd0f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/ocimachine_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ func (r *OCIMachineReconciler) reconcileNormal(ctx context.Context, logger logr.
391391
}
392392
fallthrough
393393
default:
394+
machineScope.SetNotReady()
394395
conditions.MarkFalse(machineScope.OCIMachine, infrastructurev1beta2.InstanceReadyCondition, infrastructurev1beta2.InstanceProvisionFailedReason, clusterv1.ConditionSeverityError, "")
395396
machineScope.SetFailureReason(capierrors.CreateMachineError)
396397
machineScope.SetFailureMessage(errors.Errorf("Instance status %q is unexpected", instance.LifecycleState))

0 commit comments

Comments
 (0)