Bug 1738256 - samples operator needs to report degraded if imagestream imports continue to fail after 2 hours
Summary: samples operator needs to report degraded if imagestream imports continue to ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.2.0
Assignee: Gabe Montero
QA Contact: XiuJuan Wang
URL:
Whiteboard:
Depends On:
Blocks: 1738646
TreeView+ depends on / blocked
 
Reported: 2019-08-06 15:39 UTC by Gabe Montero
Modified: 2019-10-16 06:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Feature: Expose image import issues lasting more than 2 hours in the samples operator clusteroperator Degrading condition Reason: While there is exposure of failed imports in the Progressing condition, exposing it in Degraded provides more explicit exposure to administrators. Also, the 2 hour delay allows intall/upgrade to complete successfully, and failed imagestream import is not a condition that should fail an install/upgrade. Result: Better exposure of possible cluster substandard operation status.
Clone Of:
: 1738646 (view as bug list)
Environment:
Last Closed: 2019-10-16 06:34:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-samples-operator pull 165 0 None closed Bug 1738256: report clusteroperator degraded if image import persists for 2 hours 2020-08-04 04:07:00 UTC
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:35:01 UTC

Description Gabe Montero 2019-08-06 15:39:17 UTC
https://docs.google.com/document/d/1LopVzuX2nPVlS4IHkOsUNBuVOeAdkBQ92wkaVB2kTwU/edit#heading=h.sr1qkxck5lv0

We do have indication in progressing reason field even though it is kept at false when import failures occur.

Comment 2 XiuJuan Wang 2019-08-08 08:38:27 UTC
When ImportImageErrorsExist keeps true 2 hours later, the `Degraded` change to True.

Status:
  Conditions:
    Last Transition Time:  2019-08-08T02:46:54Z
    Message:               Samples installation successful at 4.2.0-0.nightly-2019-08-08-002434
    Status:                True
    Type:                  Available
    Last Transition Time:  2019-08-08T08:22:07Z
    Message:               Samples installation in error at 4.2.0-0.nightly-2019-08-08-002434: FailedImageImports
    Status:                True
    Type:                  Progressing
    Last Transition Time:  2019-08-08T08:22:07Z
    Message:               Samples installed at 4.2.0-0.nightly-2019-08-08-002434, with image import failures, see samples operator config object
    Status:                True
    Type:                  Degraded
  Extension:               <nil>

Check in 4.2.0-0.nightly-2019-08-08-002434 payload.

Comment 3 errata-xmlrpc 2019-10-16 06:34:52 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-2019:2922


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