Bug 1837652 - [sig-builds][Feature:Builds] forcePull should affect pulling builder images ForcePull test case execution s2i
Summary: [sig-builds][Feature:Builds] forcePull should affect pulling builder images ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Build
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.5.0
Assignee: Gabe Montero
QA Contact: wewang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-19 18:26 UTC by Petr Muller
Modified: 2020-07-13 17:40 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
[sig-builds][Feature:Builds] forcePull should affect pulling builder images ForcePull test case execution s2i
Last Closed: 2020-07-13 17:40:02 UTC
Target Upstream Version:
Embargoed:
adam.kaplan: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:40:22 UTC

Description Petr Muller 2020-05-19 18:26:19 UTC
test:
[sig-builds][Feature:Builds] forcePull should affect pulling builder images  ForcePull test case execution s2i 

is failing frequently in CI, see search results:
https://search.svc.ci.openshift.org/?maxAge=168h&context=1&type=bug%2Bjunit&name=&maxMatches=5&maxBytes=20971520&groupBy=job&search=%5C%5Bsig-builds%5C%5D%5C%5BFeature%3ABuilds%5C%5D+forcePull+should+affect+pulling+builder+images++ForcePull+test+case+execution+s2i

Comment 1 Ben Parees 2020-05-19 18:46:14 UTC
This was caused by registry.redhat.io issues.  It should be ok now, but it would be good to use this bug to confirm the test is passing again in recent runs.

Comment 2 Gabe Montero 2020-05-19 19:04:57 UTC
Based on the serach.svc query no imagestream related problems have occurred since 2 days ago when the TBR problems abated.

So Ben's ask in #Comment 1 I believe is addressed.

That said, these forcepull tests have been skipped for quite a while, re: https://github.com/openshift/origin/blob/master/test/extended/builds/forcepull.go#L112-L134

@Adam @Ben do we think the buildah based caching stuff will re-introduced the advantages of forcePull being set to true?
Or is it time to just delete these tests.

Comment 3 Ben Parees 2020-05-19 19:34:28 UTC
> @Adam @Ben do we think the buildah based caching stuff will re-introduced the advantages of forcePull being set to true?
Or is it time to just delete these tests.

i think it will reintroduce the value... my expectation is that if the "tag" exists in the local image cache, no registry check/pull will be performed, which would mean you get potentially stale content unless you do a forcepull.

But it might be worth confirming what the behavior will be with the buildah folks.  They may only be caching layers by sha in which case the registry would always be consulted to get the latest shas for the tag, prior to cheecking the local cache for those shas, in which case there is no value in explicitly saying "force pull"

Comment 4 Gabe Montero 2020-05-19 19:47:53 UTC
(In reply to Ben Parees from comment #3)
> > @Adam @Ben do we think the buildah based caching stuff will re-introduced the advantages of forcePull being set to true?
> Or is it time to just delete these tests.
> 
> i think it will reintroduce the value... my expectation is that if the "tag"
> exists in the local image cache, no registry check/pull will be performed,
> which would mean you get potentially stale content unless you do a forcepull.
> 
> But it might be worth confirming what the behavior will be with the buildah
> folks.  They may only be caching layers by sha in which case the registry
> would always be consulted to get the latest shas for the tag, prior to
> cheecking the local cache for those shas, in which case there is no value in
> explicitly saying "force pull"

Good point re: Buildah details

@Nalin - do you have enough context here in this BZ address whether the current 
trend wrt buildah caches will be able to provide value for an openshift build's controls around
always pulling its builder image?

If not, perhaps we can discuss in the next devex scrum.

Comment 8 errata-xmlrpc 2020-07-13 17:40:02 UTC
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/RHBA-2020:2409


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