Bug 1906416

Summary: Errant change to lastupdatetime in copied CSV status can trigger runaway csv syncs
Product: OpenShift Container Platform Reporter: Ben Luddy <bluddy>
Component: OLMAssignee: Ben Luddy <bluddy>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: bluddy, ecordell, jiazha, mmohan, rgregory
Version: 4.4   
Target Milestone: ---   
Target Release: 4.6.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1905599
: 1910401 (view as bug list) Environment:
Last Closed: 2020-12-21 13:24:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1905599    
Bug Blocks: 1910401    

Comment 2 Jian Zhang 2020-12-14 04:05:36 UTC
Cluster version is 4.6.0-0.nightly-2020-12-14-015205
[root@preserve-olm-env data]# oc -n openshift-operator-lifecycle-manager exec catalog-operator-6bc7d9ff89-rnszx -- olm --version
OLM version: 0.16.1
git commit: fe32277830b3dc086e014c0e3391de671e5f49f4

1, subscribe to an operator for the cluster scope. Such as, etcd.
[root@preserve-olm-env data]# oc get sub -A
NAMESPACE             NAME   PACKAGE   SOURCE                CHANNEL
openshift-operators   etcd   etcd      community-operators   clusterwide-alpha
[root@preserve-olm-env data]# oc get csv -n openshift-operators
NAME                              DISPLAY   VERSION             REPLACES                          PHASE
etcdoperator.v0.9.4-clusterwide   etcd      0.9.4-clusterwide   etcdoperator.v0.9.2-clusterwide   Succeeded

2, Create many namespaces.
3, check the lastUpdateTime of the copied csv if is the same as the origin csv.
[root@preserve-olm-env data]# oc get csv -n openshift-operators etcdoperator.v0.9.4-clusterwide  -o yaml|grep lastUpdateTime
  lastUpdateTime: "2020-12-14T03:56:22Z"

[root@preserve-olm-env data]# oc get csv -n default -o yaml|grep lastUpdateTime
    lastUpdateTime: "2020-12-14T03:56:22Z"

4, Check the csv in one namespace, no incrementing.
[root@preserve-olm-env data]# oc get csv -o yaml|grep lastUpdateTime
    lastUpdateTime: "2020-12-14T03:56:22Z"
[root@preserve-olm-env data]# oc get csv -o yaml|grep lastUpdateTime
    lastUpdateTime: "2020-12-14T03:56:22Z"
[root@preserve-olm-env data]# oc get csv -o yaml|grep lastUpdateTime
    lastUpdateTime: "2020-12-14T03:56:22Z"

LGTM, verify it.

Comment 5 errata-xmlrpc 2020-12-21 13:24:29 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 (Important: OpenShift Container Platform 4.6.9 security and bug fix update), and where to find the updated
files, follow the link below.

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