Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1656

[janus-idp/operator] Rolling deployment restart doesn't restart the pod

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • True
    • Release Note Not Required

      [2211884531] Upstream Reporter: Moti Asayag
      Upstream issue status: Closed
      Upstream description:

      It seems that with RHDH 1.1 operator rolling out a restart of the deployment doesn't affect the running pod:

      # replicaset before issuing a rollout restart of the deployment
      ? oc get -n rhdh-operator replicasets.apps 
      NAME                             DESIRED   CURRENT   READY   AGE
      backstage-backstage-76cf6bb88b   1         1         1       21h
      rhdh-operator-6d9786bbf9         1         1         1       21h
      masayag@masayag: ~/work/orchestrator-helm-chart/charts (main)
      
      # pods before issuing a rollout restart of the deployment
      ? oc get -n rhdh-operator pods
      NAME                                   READY   STATUS    RESTARTS   AGE
      backstage-backstage-76cf6bb88b-q95qw   1/1     Running   0          21h
      backstage-psql-backstage-0             1/1     Running   0          21h
      rhdh-operator-6d9786bbf9-58krh         2/2     Running   0          21h
      
      # executing a restart
      ? oc rollout restart deployment -n rhdh-operator backstage-backstage 
      deployment.apps/backstage-backstage restarted
      
      # pod didn't restart
      ? oc get -n rhdh-operator pods
      NAME                                   READY   STATUS    RESTARTS   AGE
      backstage-backstage-76cf6bb88b-q95qw   1/1     Running   0          21h
      backstage-psql-backstage-0             1/1     Running   0          21h
      rhdh-operator-6d9786bbf9-58krh         2/2     Running   0          21h
      
      # replicaset created, but not advanced
      ? oc get -n rhdh-operator replicasets.apps 
      NAME                             DESIRED   CURRENT   READY   AGE
      backstage-backstage-76cf6bb88b   1         1         1       21h
      backstage-backstage-7d8dd84c56   0         0         0       13s
      rhdh-operator-6d9786bbf9         1         1         1       21h

      more info for the replicaset:

      ? oc describe rs backstage-backstage-7d8dd84c56 -n rhdh-operator 
      Name:           backstage-backstage-7d8dd84c56
      Namespace:      rhdh-operator
      Selector:       pod-template-hash=7d8dd84c56,rhdh.redhat.com/app=backstage-backstage
      Labels:         pod-template-hash=7d8dd84c56
                      rhdh.redhat.com/app=backstage-backstage
      Annotations:    deployment.kubernetes.io/desired-replicas: 1
                      deployment.kubernetes.io/max-replicas: 2
                      deployment.kubernetes.io/revision: 12
      Controlled By:  Deployment/backstage-backstage
      Replicas:       0 current / 0 desired
      Pods Status:    0 Running / 0 Waiting / 0 Succeeded / 0 Failed
      Pod Template:
        Labels:       pod-template-hash=7d8dd84c56
                      rhdh.redhat.com/app=backstage-backstage
        Annotations:  kubectl.kubernetes.io/restartedAt: 2024-03-27T22:43:23+02:00
        Init Containers:
         install-dynamic-plugins:
          Image:      registry.redhat.io/rhdh/rhdh-hub-rhel9@sha256:3d620b8f73dfd9d79fb1eaddcf97096299e61d167ff6c871758badbf8218b915
          Port:       <none>
          Host Port:  <none>
          Command:
            ./install-dynamic-plugins.sh
            /dynamic-plugins-root
          Limits:
            cpu:                1
            ephemeral-storage:  5Gi
            memory:             2560Mi
          Environment:
            NPM_CONFIG_USERCONFIG:  /opt/app-root/src/.npmrc.dynamic-plugins
          Mounts:
            /dynamic-plugins-root from dynamic-plugins-root (rw)
            /opt/app-root/src/.npmrc.dynamic-plugins from dynamic-plugins-npmrc (ro,path=".npmrc")
            /opt/app-root/src/dynamic-plugins.yaml from dynamic-plugins-rhdh (ro,path="dynamic-plugins.yaml")
        Containers:
         backstage-backend:
          Image:      registry.redhat.io/rhdh/rhdh-hub-rhel9@sha256:3d620b8f73dfd9d79fb1eaddcf97096299e61d167ff6c871758badbf8218b915
          Port:       7007/TCP
          Host Port:  0/TCP
          Args:
            --config
            dynamic-plugins-root/app-config.dynamic-plugins.yaml
            --config
            /opt/app-root/src/app-config-rhdh.yaml
            --config
            /opt/app-root/src/app-config-auth.gh.yaml
            --config
            /opt/app-root/src/app-config-catalog.yaml
          Limits:
            cpu:                1
            ephemeral-storage:  5Gi
            memory:             2560Mi
          Liveness:             http-get http://:7007/healthcheck delay=60s timeout=2s period=10s #success=1 #failure=3
          Readiness:            http-get http://:7007/healthcheck delay=30s timeout=2s period=10s #success=2 #failure=3
          Environment Variables from:
            backstage-psql-secret-backstage  Secret  Optional: false
            backstage-backend-auth-secret    Secret  Optional: false
          Environment:
            APP_CONFIG_backend_listen_port:  7007
          Mounts:
            /opt/app-root/src/app-config-auth.gh.yaml from app-config-rhdh-auth (rw,path="app-config-auth.gh.yaml")
            /opt/app-root/src/app-config-catalog.yaml from app-config-rhdh-catalog (rw,path="app-config-catalog.yaml")
            /opt/app-root/src/app-config-rhdh.yaml from app-config-rhdh (rw,path="app-config-rhdh.yaml")
            /opt/app-root/src/dynamic-plugins-root from dynamic-plugins-root (rw)
        Volumes:
         dynamic-plugins-root:
          Type:          EphemeralVolume (an inline specification for a volume that gets created and deleted with the pod)
          StorageClass:  
          Volume:        
          Labels:            <none>
          Annotations:       <none>
          Capacity:      
          Access Modes:  
          VolumeMode:    Filesystem
         dynamic-plugins-npmrc:
          Type:        Secret (a volume populated by a Secret)
          SecretName:  dynamic-plugins-npmrc
          Optional:    true
         dynamic-plugins-rhdh:
          Type:      ConfigMap (a volume populated by a ConfigMap)
          Name:      dynamic-plugins-rhdh
          Optional:  false
         app-config-rhdh:
          Type:      ConfigMap (a volume populated by a ConfigMap)
          Name:      app-config-rhdh
          Optional:  false
         app-config-rhdh-auth:
          Type:      ConfigMap (a volume populated by a ConfigMap)
          Name:      app-config-rhdh-auth
          Optional:  false
         app-config-rhdh-catalog:
          Type:      ConfigMap (a volume populated by a ConfigMap)
          Name:      app-config-rhdh-catalog
          Optional:  false
      Events:
        Type    Reason            Age    From                   Message
        ----    ------            ----   ----                   -------
        Normal  SuccessfulCreate  2m20s  replicaset-controller  Created pod: backstage-backstage-7d8dd84c56-mqhx9
        Normal  SuccessfulDelete  2m19s  replicaset-controller  Deleted pod: backstage-backstage-7d8dd84c56-mqhx9

      Upstream URL: https://github.com/janus-idp/operator/issues/281

              gazarenk-1 Gennady Azarenkov
              upstream-sync Upstream Sync
              RHIDP - Install
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: