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

opm registry add should not change the database unless operatorbundle and channel_entry rebuild are successful

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.15
    • OLM / Registry
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

       OPM returns expected error, however database file (index.db) is modified. 
      
          

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

        1.26.4
      
          

      Steps to Reproduce:

          1. podman pull registry-proxy.engineering.redhat.com/rh-osbs/iib@sha256:2e07a948bff29523091ac45cfc21569634402856b0400627b82f7681b335d7c2
          2. podman create registry-proxy.engineering.redhat.com/rh-osbs/iib@sha256:2e07a948bff29523091ac45cfc21569634402856b0400627b82f7681b335d7c2
          3. podman cp [Image ID from step 2]:/var/lib/iib/_hidden/do.not.edit.db ./index.db
          4. opm registry add --database ./index.db --enable-alpha --bundle-images registry-proxy.engineering.redhat.com/rh-osbs/openshift-gitops-1-gitops-operator-bundle@sha256:507c080e662d74970f52fa2c6ab79c357e3d581147d9b033c632e7b7640b029a --overwrite-latest
      
      
          

      Actual results:

       Error ("add prunes bundle ...") with database file modification
      
          

      Expected results:

       Same error without database file modification
      
          

      Additional info:

        Related IIB build logs: https://iib.engineering.redhat.com/api/v1/builds/616911/logs
      
          

            rh-ee-gabell Gavin Bell
            rhn-support-mzelenak Michal Zelenak
            Jia Fan Jia Fan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: