Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1422378 - Warning appear if build with ImageStreamImage
Warning appear if build with ImageStreamImage
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build (Show other bugs)
3.5.0
Unspecified Unspecified
low Severity low
: ---
: ---
Assigned To: Gabe Montero
Wenjing Zheng
:
: 1502017 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-02-15 02:19 EST by Wenjing Zheng
Modified: 2017-10-19 11:32 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The new-app circular dependency code did not account for BuildConfig sources pointing to the ImageStreamImage type Consequence: An unnecessary warning was logged about not being able to follow the reference type ImageStreamImage Fix: Enhance the new-app circular dependency code to account for the ImageStreamImage type Result: The unnecessary warning no longer appears
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-10 01:18:47 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1716 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 05:02:50 EDT

  None (edit)
Description Wenjing Zheng 2017-02-15 02:19:28 EST
Description of problem:
Below warning appears when build with ImageStreamImage (build can be successfully ):
W0215 14:51:29.476413    1129 newapp.go:887] Unable to check for circular build input: Unable to follow reference type: "ImageStreamImage"

Version-Release number of selected component (if applicable):
openshift v3.5.0.20+87266c6
kubernetes v1.5.2+43a9be4
etcd 3.1.0

How reproducible:
always

Steps to Reproduce:
1. oc import-image ruby --from=docker.io/openshift/ruby-22-centos7 --confirm=true
2. oc get is ruby -o yaml
3. Edit to use ImageStreamImage to build:  
  strategy:
    sourceStrategy:
      env:
      - name: EXAMPLE
        value: sample-app
      from:
        kind: ImageStreamImage
        name: ruby@sha256:5dc0856fea9551e102815863cceeabd3aee862ec4ad5f2625eb51564924f0360
    type: Source


Actual results:
Warning appears although build completes:W0215 14:51:29.476413    1129 newapp.go:887] Unable to check for circular build input: Unable to follow reference type: "ImageStreamImage"

Expected results:
Should be no such error

Additional info:
Comment 1 Cesar Wong 2017-02-15 09:07:51 EST
Can you please include the exact command you executed to get that error?
I ran:
oc start-build bc/ruby-test 
(After modifying the bc to point to an ImageStreamImage)

I was not able to reproduce.
Comment 2 Cesar Wong 2017-02-15 09:21:33 EST
Cancelling needinfo ... was able to reproduce by exporting the bc with the imagestreamimage reference as a template, then calling new-app on that template.
Comment 3 Cesar Wong 2017-02-15 09:24:20 EST
Gabe, sending your way since this is your code. We shouldn't warn if there's nothing to check.
Comment 4 Gabe Montero 2017-03-03 16:47:06 EST
PR https://github.com/openshift/origin/pull/13233 is carrying the fix for this
Comment 5 openshift-github-bot 2017-03-04 03:02:12 EST
Commits pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/5b464bfd8b4542212be93c688a40a744dbbb686f
Enhance new-app circular test to handle ImageStreamImage refs

bug 1422378
https://bugzilla.redhat.com/show_bug.cgi?id=1422378

https://github.com/openshift/origin/commit/a5cb4d68cd2fa957cf4a7cea2f13c7db10a58855
Merge pull request #13233 from gabemontero/bug1422378

Merged by openshift-bot
Comment 6 Gabe Montero 2017-03-04 09:01:00 EST
Per OCP process moving to MODIFIED
Comment 7 Troy Dawson 2017-03-06 14:01:14 EST
Is this for 3.5 or 3.6?
Everything in the bug says for 3.5, but the pull request is for origin/master which is 3.6.

If it is for 3.5, you need to do a pull request for origin/release-1.5
Comment 8 Gabe Montero 2017-03-06 14:12:59 EST
The bug was found during 3.5 testing, but given the low priority/severity, we are proposing only fixing it in 3.6.
Comment 9 Gabe Montero 2017-03-06 14:13:56 EST
Apologies for not selecting the target release earlier.
Comment 10 Troy Dawson 2017-04-11 16:58:13 EDT
This has been merged into ocp and is in OCP v3.6.27 or newer.
Comment 12 Wenjing Zheng 2017-04-12 05:11:31 EDT
Verified with below version, no such error now:
openshift v3.6.27
kubernetes v1.5.2+43a9be4
etcd 3.1.0
Comment 14 errata-xmlrpc 2017-08-10 01:18:47 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1716
Comment 15 Gabe Montero 2017-10-19 11:32:28 EDT
*** Bug 1502017 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.