@@ -1480,22 +1480,22 @@ func (umh UpdateMachineHandler) Handle(c echo.Context) error {
14801480
14811481 we , err := stc .ExecuteWorkflow (wfCtx , wfOpts , "ApplyMachineHealthReportOverride" , insReq )
14821482 if err != nil {
1483- logger .Error ().Err (err ).Msg ("failed to start Temporal workflow for online repair health override" )
1484- return cutil .NewAPIErrorResponse (c , http .StatusInternalServerError , fmt .Sprintf ("Failed to start online repair workflow on Site: %s" , err ), nil )
1483+ logger .Error ().Err (err ).Msg ("failed to start Temporal workflow for applying online repair health override" )
1484+ return cutil .NewAPIErrorResponse (c , http .StatusInternalServerError , fmt .Sprintf ("Failed to start applying online repair health override workflow on Site: %s" , err ), nil )
14851485 }
14861486 wid := we .GetID ()
1487- logger .Info ().Str ("Workflow ID" , wid ).Msg ("executed synchronous ApplyMachineHealthReportOverride workflow" )
1487+ logger .Info ().Str ("Workflow ID" , wid ).Msg ("executed synchronous applying online repair health override workflow" )
14881488 err = we .Get (wfCtx , nil )
14891489 if err != nil {
14901490 var timeoutErr * tp.TimeoutError
14911491 if errors .As (err , & timeoutErr ) || err == context .DeadlineExceeded || wfCtx .Err () != nil || ctx .Err () != nil {
14921492 return common .TerminateWorkflowOnTimeOut (c , logger , stc , wid , err , "Machine" , "ApplyMachineHealthReportOverride" )
14931493 }
14941494 code , werr := common .UnwrapWorkflowError (err )
1495- logger .Error ().Err (werr ).Msg ("online repair health override workflow failed" )
1496- return cutil .NewAPIErrorResponse (c , code , fmt .Sprintf ("Failed to execute online repair workflow on Site: %s" , werr ), nil )
1495+ logger .Error ().Err (werr ).Msg ("applying online repair health override workflow failed" )
1496+ return cutil .NewAPIErrorResponse (c , code , fmt .Sprintf ("Failed to execute applying online repair health override workflow on Site: %s" , werr ), nil )
14971497 }
1498- logger .Info ().Str ("Workflow ID" , wid ).Msg ("completed synchronous ApplyMachineHealthReportOverride workflow" )
1498+ logger .Info ().Str ("Workflow ID" , wid ).Msg ("completed synchronous applying online repair health override workflow" )
14991499 } else {
15001500 if inst .Status != cdbm .InstanceStatusRepairing {
15011501 return cutil .NewAPIErrorResponse (c , http .StatusBadRequest , fmt .Sprintf ("Instance must be in Repairing state to exit online repair (current state: %s)" , inst .Status ), nil )
@@ -1590,7 +1590,7 @@ func buildOnlineRepairHealthInsertRequest(machineID string, req *model.APIMachin
15901590 TenantMessage : cdb .GetStrPtr (fmt .Sprintf ("TenantReportedIssue: %s" , mhi .Summary )),
15911591 Classifications : []string {
15921592 "PreventAllocations" ,
1593- "PreventDeletion " ,
1593+ "PreventInstanceDeletion " ,
15941594 "SuppressExternalAlerting" ,
15951595 },
15961596 }
0 commit comments