Uploaded image for project: 'OpenShift Builds'
  1. OpenShift Builds
  2. BUILD-1195

Default `buildah` Strategy Fails if Output Image is Empty

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Previously when builds did not specify an output image, builds that used the "buildah" ClusterBuildStrategy would fail attempting to push to an invalid image destination. This was fixed by ...
    • Bug Fix

      Description of problem:

      The default `buildah` ClusterBuildStrategy fails if the `Build` or `BuildRun` does not define an output image.

      Workaround:

      1) Define an output image registry
      2) Create a separate BuildStrategy/ClusterBuildStrategy that skips image push

      Prerequisites (if any, like setup, operators/versions):

      Builds for OpenShift 1.1.0 or Builds for OpenShift 1.2.0

      Steps to Reproduce

      1. Install Builds for OpenShift 1.1.0 or 1.2.0
      2. Create a build using the "buildah" cluster build strategy that does not define an output image (or sets the output image URL to empty)
      3. Run the build

      Actual results:

      Build fails:

      [INFO] Pushing image 
      Error: invalid image name ""
      

      Expected results:

      Image push is skipped

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Acceptance criteria: 

      • Build with the "buildah" strategy succeeds if it does not define an output image.

      Definition of Done:

      • Code implemented and merged
      • CI checks passing
      • Candidate operator build includes code change, verified by QE/automated testing.
      • Release Note drafted and approved by technical writers

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

              Unassigned Unassigned
              adkaplan@redhat.com Adam Kaplan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: