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

The error message of "opm alpha render-veneer semver" is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.12.z
    • 4.12
    • OLM
    • None
    • None
    • [OLM-224] FBC/PSA - Pikachu
    • 1
    • False
    • Hide

      None

      Show
      None
    • NA
    • Done

      Description of problem:

      The error message of "opm alpha render-veneer semver" is not correct, "semver &{%!q(*os.file=&{{{0 0 0} 3 {0} 0 1 true true true}" is meaningless, should not be printed.

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

      zhaoxia@xzha-mac operator-framework-olm % opm version
      Version: version.Version{OpmVersion:"2149aebcc", GitCommit:"2149aebcc71367e6fba8f5416374917dae1e6a1c", BuildDate:"2022-09-08T04:31:47Z", GoOs:"darwin", GoArch:"amd64"}

      How reproducible:

      always

      Steps to Reproduce:

      1. create file
      zhaoxia@xzha-mac OCP-53915 % cat catalog-semver-veneer-1.yaml
      Schema: olm.semver
      Candidate:
        Bundles:
        - Image: quay.io/olmqe/nginxolm-operator-bundle:v0.0.1
        - Image: quay.io/olmqe/nginxolm-operator-bundle:v1.0.1
        - Image: quay.io/olmqe/nginxolm-operator-bundle:v1.0.1-alpha
        - Image: quay.io/olmqe/nginxolm-operator-bundle:v1.0.1-beta
        - Image: quay.io/olmqe/nginxolm-operator-bundle:v1.0.1-alpha20220829
        - Image: quay.io/olmqe/nginxolm-operator-bundle:v1.0.1-alpha20220830
      Stable:
        Bundles:
        - Image: quay.io/olmqe/nginxolm-operator-bundle:v1.0.1-beta
      Fast:
        Bundles:
        - Image: quay.io/olmqe/nginxolm-operator-bundle:v0.0.1
        - Image: quay.io/olmqe/nginxolm-operator-bundle:v1.0.1-beta
      
      2. run "opm alpha render-veneer semver" 
      zhaoxia@xzha-mac operator-framework-olm % opm alpha render-veneer semver catalog-semver-veneer-1.yaml
      2022/09/08 12:35:05 semver &{%!q(*os.file=&{{{0 0 0} 3 {0} <nil> 0 1 true true true} catalog-semver-veneer-1.yaml <nil> false false false})}: semver-render: unable to post-process bundle info: encountered bundle versions which differ only by build metadata, which cannot be ordered: [bundle version "1.0.1-alpha" cannot be compared to "1.0.1-alpha", bundle version "1.0.1-alpha+20220829" cannot be compared to "1.0.1-alpha"] 
      
      3.
      

      Actual results:

      "semver &{%!q(*os.file=&{{{0 0 0} 3 {0} 0 1 true true true}" is meaningless, should not be printed.

      Expected results:

      no error message "semver &{%!q(*os.file=&{{{0 0 0} 3 {0} 0 1 true true true}"

      Additional info:

       

              rh-ee-jkeister Jordan Keister
              rhn-support-xzha Xia Zhao
              Jian Zhang Jian Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: