Bug 1807363 - Image Pruner can fail if image registry is Removed
Summary: Image Pruner can fail if image registry is Removed
Keywords:
Status: CLOSED DUPLICATE of bug 1806687
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 4.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.4.0
Assignee: Corey Daley
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-26 07:55 UTC by Wenjing Zheng
Modified: 2020-04-01 14:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-01 14:20:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Wenjing Zheng 2020-02-26 07:55:04 UTC
This bug was initially created as a copy of Bug #1806019

I am copying this bug because: 



Description of problem:

If the automatic image pruner is enabled and the image registry itself is `Removed`, the image pruning jobs can fail.


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


How reproducible: Always


Steps to Reproduce:
1. Create an image pruner CRD
2. Mark the internal registry as `Removed`
3. Run the image pruner

Actual results:

Image pruner jobs fail trying to prune images from the non-existent registry.


Expected results:

Image pruner jobs only prune image metadata in etcd.

Additional info:

Comment 1 Wenjing Zheng 2020-02-26 08:12:59 UTC

*** This bug has been marked as a duplicate of bug 1806687 ***

Comment 2 Wenjing Zheng 2020-03-26 04:51:32 UTC
This is for 4.5: https://bugzilla.redhat.com/show_bug.cgi?id=1806019

Comment 3 Wenjing Zheng 2020-03-26 05:59:32 UTC
For the 4.5 fix, there is one warning for image pruner when image registry is removed(https://bugzilla.redhat.com/show_bug.cgi?id=1806019#c3):
$ oc logs pods/image-pruner-1583834340-ln8wn
Only API objects will be removed.  No modifications to the image registry will be made.

Although for 4.4 image pruner no fail after image registry is removed.

Comment 4 Corey Daley 2020-03-26 14:22:10 UTC
If the image registry is marked as "Removed", the --prune-registry flag is removed, so this is the correct behavior.

Comment 5 Adam Kaplan 2020-04-01 14:20:39 UTC

*** This bug has been marked as a duplicate of bug 1806687 ***


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