If the co/samples object is deleted, the samples operator sometimes fails to restore the Degraded false condition to the conditions array. This leads to visual inconsistency and may cause generic operator actions (test cases, user interfaces, etc) to display an error. Cluster operators are required to report all three conditions with the appropriate true/false/unknown status, although it is allowable to delay slightly (seconds) before filling out conditions it should not be multiple minutes before the condition is set to false. apiVersion: config.openshift.io/v1 kind: ClusterOperator metadata: creationTimestamp: "2019-09-05T03:00:41Z" generation: 1 name: openshift-samples resourceVersion: "48455" selfLink: /apis/config.openshift.io/v1/clusteroperators/openshift-samples uid: 5897ab71-cf89-11e9-9e6a-126169521af2 spec: {} status: conditions: - lastTransitionTime: "2019-09-05T03:00:41Z" message: Samples installation successful at 4.2.0-0.ci-2019-09-04-220355 status: "True" type: Available - lastTransitionTime: "2019-09-05T03:00:41Z" message: Samples installation successful at 4.2.0-0.ci-2019-09-04-220355 status: "False" type: Progressing - lastTransitionTime: "2019-09-05T03:07:24Z" status: "False" type: Degraded Note the transition times (before this, the condition was absent) It would be acceptable to set Degraded false at the same time Available and Progressing are set, and set Degrade true when an error is actually detected.
Clayton - please confirm whether "If the co/samples object is deleted" means: 1) oc delete configs.samples cluster 2) oc delete clusteroperator openshift-samples My initial interpretation is that it is 1), but would like to be sure. thanks
Before the fix, delete config.samples cluster, status: conditions: - lastTransitionTime: "2019-09-10T09:35:14Z" status: "False" type: Available - lastTransitionTime: "2019-09-10T09:35:14Z" status: "False" type: Progressing - lastTransitionTime: "2019-09-10T02:54:20Z" status: "False" type: Degraded After including the fix in 4.2.0-0.nightly-2019-09-10-074025 Delete config.samples cluster,the openshift-samples co reports: status: conditions: - lastTransitionTime: "2019-09-10T09:37:55Z" status: "False" type: Available - lastTransitionTime: "2019-09-10T09:38:01Z" message: Samples processing to 4.2.0-0.nightly-2019-09-10-074025 status: "True" type: Progressing - lastTransitionTime: "2019-09-10T09:37:55Z" status: "False" type: Degraded
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
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days