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

CI fails on "[sig-cli][Feature:LegacyCommandTests][Disruptive][Serial] test-cmd: test/cmd/images.sh [apigroup:image.openshift.io]"

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • All
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      After this change on openshift-apiserver https://github.com/openshift/openshift-apiserver/pull/528 the job e2e-agnostic-ovn-cmd  started failing because of this with the error 

      s: "error waiting for the pod 'test-cmd' to complete: images.sh:33: executing 'oc delete images test --context='cmd-images/api-ci-op-j7sbqksh-c6e4e-ci-azure-devcluster-openshift-com:6443/system:admin'' expecting success...\nSUCCESS after 1.000s: test/cmd/images.sh:33: executing 'oc delete images test --context='cmd-images/api-ci-op-j7sbqksh-c6e4e-ci-azure-devcluster-openshift-com:6443/system:admin'' expecting success\nimages: ok\nRunning test/cmd/images.sh:38: executing 'oc get imageStreams' expecting success...\nSUCCESS after 0.000s: test/cmd/images.sh:38: executing 'oc get imageStreams' expecting success\nRunning test/cmd/images.sh:39: executing 'oc create -f ${TEST_DATA}/test-image-stream.json' expecting success...\nSUCCESS after 0.000s: test/cmd/images.sh:39: executing 'oc create -f ${TEST_DATA}/test-image-stream.json' expecting success\nRunning test/cmd/images.sh:42: executing 'oc delete imageStreams test' expecting success...\nSUCCESS after 0.000s: test/cmd/images.sh:42: executing 'oc delete imageStreams test' expecting success\nRunning test/cmd/images.sh:43: executing 'oc get imageStreams test' expecting failure...\nSUCCESS after 0.000s: test/cmd/images.sh:43: executing 'oc get imageStreams test' expecting failure\nRunning test/cmd/images.sh:45: executing 'oc create -f ${TEST_DATA}/image-streams/image-streams-centos7.json' expecting success...\nSUCCESS after 1.000s: test/cmd/images.sh:45: executing 'oc create -f ${TEST_DATA}/image-streams/image-streams-centos7.json' expecting success\nRunning test/cmd/images.sh:56: executing 'oc get imagestreamtags wildfly:latest' expecting success; re-trying every 0.2s until completion or 60.000s...\nFAILURE after 60.000s: test/cmd/images.sh:56: executing 'oc get imagestreamtags wildfly:latest' expecting success; re-trying every 0.2s until completion or 60.000s: the command timed out\nStandard output from the command:\nStandard error from the command:\nError from server (NotFound): imagestreamtags.image.openshift.io \"wildfly:latest\" not found\n... repeated 178 times\n[ERROR] hack/lib/cmd.sh:114: `return \"${return_code}\"` exited with status 1.\n", 

       

       

      Job result: https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/29976/pull-ci-openshift-origin-main-e2e-agnostic-ovn-cmd/1943015545750163456

       

      Seems this is happening due of the use of old images on origin that trigger this error when an imagestream gets created

      $ oc get is wildfly -oyaml
      .
      .
      .
      - conditions:
          - generation: 2
            lastTransitionTime: "2025-07-11T15:42:38Z"
            message: 'Internal error occurred: unsupported image manifest type: *schema1.SignedManifest'
            reason: InternalError
            status: "False"
            type: ImportSuccess
          items: null
          tag: "21.0" 

       

      This causes the imagestream to not be created and for the test to fail on any scenario-

       

      We need to decide either we need to start moving away from old images on origin or reverting https://github.com/openshift/openshift-apiserver/pull/528.

       

      Code where the test is running: https://github.com/openshift/origin/blame/e9b1fca65d56d6a5b616419c0ada00ee13575b70/test/extended/testdata/cmd/test/cmd/images.sh#L45-L56

       

      Imagestream being tested:https://github.com/openshift/origin/blob/e9b1fca65d56d6a5b616419c0ada00ee13575b70/test/extended/testdata/cmd/test/cmd/testdata/image-streams/image-streams-centos7.json#L933-L962 

       

       

       

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

       

      4.20

       

      How reproducible:

       

      On a PR on origin run the job ci/prow/e2e-agnostic-ovn-cmd

              rh-ee-okupka Ondřej Kupka
              aroyo@redhat.com Antonio Carlos Royo
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: