Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-32218

"Oh no! Something went wrong." will shown on Pending pod details page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 4.16.0
    • 4.16
    • Management Console
    • None
    • Moderate
    • Yes
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

    Description

      Description of problem:

      "Oh no! Something went wrong." will shown on Pending pod details page

      Version-Release number of selected component (if applicable):

      4.16.0-0.nightly-2024-04-14-063437

      How reproducible:

      always

      Steps to Reproduce:

      1. Create a dummy pod with pending status
      eg:
      apiVersion: v1
      kind: Pod
      metadata:
        name: nginx
        labels:
          env: test
      spec:
        containers:
        - name: nginx
          image: nginx
          imagePullPolicy: IfNotPresent
        nodeSelector:
          disktype: ssd
          
      OR 
      
      apiVersion: v1
      kind: Pod
      metadata:  
        name: dummy-pod
      spec:  
        containers:    
          - name: dummy-pod      
          image: ubuntu  
        restartPolicy: Always  
        nodeSelector:    
          testtype: pending
      
      
      2. Navigate to Pod Details page
      3.
          

      Actual results:

      Oh no! Something went wrong. will shown
      
      TypeError
      Description:Cannot read properties of undefined (reading 'restartCount')
      
      Component trace:Copy to clipboardat fe (https://console-openshift-console.apps.qe-daily-416-0415.qe.azure.devcluster.openshift.com/static/main-chunk-7643d3f1edb399bb7d65.min.js:1:562500)
          at div
          at div
          at ve (https://console-openshift-console.apps.qe-daily-416-0415.qe.azure.devcluster.openshift.com/static/main-chunk-7643d3f1edb399bb7d65.min.js:1:563346)
          at div
          at ke (https://console-openshift-console.apps.qe-daily-416-0415.qe.azure.devcluster.openshift.com/static/main-chunk-7643d3f1edb399bb7d65.min.js:1:571308)
          at i (https://console-openshift-console.apps.qe-daily-416-0415.qe.azure.devcluster.openshift.com/static/main-chunk-7643d3f1edb399bb7d65.min.js:1:329180)
          at _ (https://console-openshift-console.apps.qe-daily-416-0415.qe.azure.devcluster.openshift.com/static/vendor-plugins-shared~main-chunk-4dc722526d0f0470939e.min.js:31:4920)
          at ne (https://console-openshift-console.apps.qe-daily-416-0415.qe.azure.devcluster.openshift.com/static/vendor-plugins-shared~main-chunk-4dc722526d0f0470939e.min.js:31:10364)
          at Suspense
          at div
          at k (https://console-openshift-console.apps.qe-daily-416-0415.qe.azure.devcluster.openshift.com/static/main-chunk-7643d3f1edb399bb7d65.min.js:1:118938)

      Expected results:

          no issue was found

      Additional info:

      Enable pod securtiy labels when create the pod via UI:
      $ oc label namespace <ns> security.openshift.io/scc.podSecurityLabelSync=false --overwrite
      $ oc label namespace <ns> pod-security.kubernetes.io/enforce=privileged --overwrite
      $ oc label namespace <ns> pod-security.kubernetes.io/audit=privileged --overwrite
      $ oc label namespace <ns> fix
      

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-rhamilto Robb Hamilton
              rhn-support-xiyuzhao Xiyun Zhao
              Xiyun Zhao Xiyun Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: