This is an automated email from the ASF dual-hosted git repository.

pingsutw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git


The following commit(s) were added to refs/heads/master by this push:
     new 9479ad7  SUBMARINE-1012. Submarine CR status is inconsistent with 
actual state
9479ad7 is described below

commit 9479ad7662f3e3db9f9fe7720746707e774019f8
Author: MortalHappiness <[email protected]>
AuthorDate: Sun Sep 12 17:18:29 2021 +0800

    SUBMARINE-1012. Submarine CR status is inconsistent with actual state
    
    ### What is this PR for?
    When creating the submarine using the operator, the status of the submarine 
CR shows mlflow failed due to time-out processing. However, the mlflow 
deployment is running.
    
    #### Cause:
    Submarine operator treat progressing error, ex. ProgressDeadlineExceeded, 
as a fatal error. However, the deployment controller will continue to process 
failed deployment, so the deployment may be running in several minutes. This 
causes inconsistent CR status with the actual state.
    
    #### Solution:
    Does not treat progressing error as a fatal error
    
    #### References:
    https://pkg.go.dev/k8s.io/api/apps/v1#DeploymentSpec
    
    ### What type of PR is it?
    [Bug Fix]
    
    ### Todos
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/projects/SUBMARINE/issues/SUBMARINE-1012
    
    ### How should this be tested?
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Do the license files need updating? No
    * Are there breaking changes for older versions? No
    * Does this need new documentation? No
    
    Author: MortalHappiness <[email protected]>
    
    Signed-off-by: Kevin <[email protected]>
    
    Closes #744 from MortalHappiness/SUBMARINE-1012 and squashes the following 
commits:
    
    34e94cc9 [MortalHappiness] SUBMARINE-1012. Submarine CR status is 
inconsistent with actual state
---
 submarine-cloud-v2/pkg/controller/controller.go | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/submarine-cloud-v2/pkg/controller/controller.go 
b/submarine-cloud-v2/pkg/controller/controller.go
index 048fa6f..28c26d3 100644
--- a/submarine-cloud-v2/pkg/controller/controller.go
+++ b/submarine-cloud-v2/pkg/controller/controller.go
@@ -643,10 +643,6 @@ func (c *Controller) 
checkSubmarineDependentsReady(submarine *v1alpha1.Submarine
                        if condition.Type == appsv1.DeploymentReplicaFailure {
                                return false, fmt.Errorf("failed creating 
replicas of %s, message: %s", deployment.Name, condition.Message)
                        }
-                       // progressing error, ex. ProgressDeadlineExceeded
-                       if condition.Type == appsv1.DeploymentProgressing && 
condition.Status == corev1.ConditionFalse {
-                               return false, fmt.Errorf("failed creating 
replicas of %s, message: %s", deployment.Name, condition.Message)
-                       }
                }
                // check if ready replicas are same as targeted replicas
                if deployment.Status.ReadyReplicas != 
deployment.Status.Replicas {

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to