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

opm validate is not failing when channel entry both replaces and skips the same bundle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.21.0
    • 4.14.z, 4.15.z, 4.17.z, 4.16.z, 4.18.z, 4.19.z
    • OLM
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Rejected
    • Oddish Sprint 275, Pikachu Sprint 276, Quagsire Sprint 277, Rhydon Sprint 278
    • 4
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          opm validate is not failing when channel entry both replaces and skips the same bundle.  this is a condition created by the bug OCPBUGS-60254
          opm validate needs to be able to fail validation when it detects a channel entry which contains a replaces and skips edge referencing the same bundle version.

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

          

      How reproducible:

          100%

      Steps to Reproduce:

          1.  Create FBC with an olm.channel schema with an edge that references the same bundle version for both replaces and skips edges, for e.g.:
          ...
          "entries": [
              {
                  "name": "test-operator-v1.0.0"
              },
              {
                  "name": "test-operator-v1.1.0"
              },
              {
                  "name": "test-operator-v1.1.2"
              },
              {
                  "name": "test-operator-v1.1.4",
                  "replaces": "test-operator-v1.0.0",
                  "skips": [
                      "test-operator-v1.0.0",
                      "test-operator-v1.1.0",
                      "test-operator-v1.1.2"
                  ]
              },
          ...
          2. write this FBC to a directory
          3. run `opm validate <directory>`
          

      Actual results:

      validation passes
          

      Expected results:

      validation fails
          

      Additional info:

          

              rh-ee-jkeister Jordan Keister
              rhn-support-ssardar Sameer Sardar
              None
              None
              bruno andrade bruno andrade
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: