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

[v2] "permission denied" blocked the pod created by the catalogresource yaml running

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Yes
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      with the catalogResource yaml create the pod, the pod fail to run

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

      4.20.0-202509181632.p2.g588c3e9.assembly.stream.el9-588c3e9

      How reproducible:

       Always   

      Steps to Reproduce:

      1. pre the isc 73359.yaml
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      mirror:
        operators:
          - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.14
            targetCatalog: "redhatcatalog73359"
            packages:
            - name: local-storage-operator
      
      2.mirror2mirror
      $oc-mirror -c 73359.yaml docker://my-route-e2e-test-ocmirrorv2-b8bb9.apps.maxu-mirror1.qe.devcluster.openshift.com --v2 --workspace file:///tmp/case73359 --authfile /tmp/case73359/.dockerconfigjson --dest-tls-verify=false      
      
      3. $oc create -f /tmp/case73359/mywork/working-dir/cluster-resources/cs-redhatcatalog73359-v4-14.yaml   
      
      4. $oc get pod -n openshift-marketplace  -l olm.catalogSource=cs-redhatcatalog73359-v4-14  
      
      

      Actual results:

      $oc get pod -n openshift-marketplace  -l olm.catalogSource=cs-redhatcatalog73359-v4-14 
       NAME                                READY   STATUS             RESTARTS   AGE 
      cs-redhatcatalog73359-v4-14-m7tgc   0/1     ErrImagePull     0          26s

      Expected results:

       cs-redhatcatalog73359-v4-14-67kqp  status is Running   

      Additional info:

      $oc --kubeconfig=/home/jenkins/kubeconf/kubeconfig describe pods -n openshift-marketplace -l olm.catalogSource=cs-redhatcatalog73359-v4-14
      ....
       Containers:
      09-24 18:03:10.342      registry-server:
      09-24 18:03:10.342        Container ID:  cri-o://c8f7641e1f3c27cd6974318464926971ecac5a45f8033b7becb116507f7fbc94
      09-24 18:03:10.342        Image:         my-route-e2e-test-ocmirrorv2-b8bb9.apps.maxu-mirror1.qe.devcluster.openshift.com/redhatcatalog73359:v4.14
      09-24 18:03:10.342        Image ID:      my-route-e2e-test-ocmirrorv2-b8bb9.apps.maxu-mirror1.qe.devcluster.openshift.com/redhatcatalog73359@sha256:4cf1291ed25f1a0ee5b605a254ffb12e8ef31349b6c4fae4916a80adadb0b34e
      09-24 18:03:10.342        Port:          50051/TCP
      09-24 18:03:10.342        Host Port:     0/TCP
      09-24 18:03:10.342        State:         Terminated
      09-24 18:03:10.342          Reason:      Error
      09-24 18:03:10.342          Message:     time="2025-09-24T09:51:59Z" level=info msg="starting pprof endpoint" address="localhost:6060"
      09-24 18:03:10.342    time="2025-09-24T09:51:59Z" level=fatal msg="open local-storage-operator/catalog.json: permission denied"
      09-24 18:03:10.342  
      09-24 18:03:10.342          Exit Code:  1
      09-24 18:03:10.342          Started:    Wed, 24 Sep 2025 09:51:59 +0000
      09-24 18:03:10.342          Finished:   Wed, 24 Sep 2025 09:51:59 +0000
      09-24 18:03:10.342        Last State:   Terminated
      09-24 18:03:10.342          Reason:     Error
      09-24 18:03:10.342          Message:    time="2025-09-24T09:51:57Z" level=info msg="starting pprof endpoint" address="localhost:6060"
      09-24 18:03:10.342    time="2025-09-24T09:51:57Z" level=fatal msg="open local-storage-operator/catalog.json: permission denied"
      $oc logs pod/cs-redhatcatalog73359-v4-14-ss6t5 -n openshift-marketplace
      time="2025-09-25T04:52:10Z" level=info msg="starting pprof endpoint" address="localhost:6060"
      time="2025-09-25T04:52:10Z" level=fatal msg="open local-storage-operator/catalog.json: permission denied"
          

              rh-ee-aguidi Alex Guidi
              maxu@redhat.com May Xu
              None
              None
              May Xu May Xu
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: