Bug 1906416 - Errant change to lastupdatetime in copied CSV status can trigger runaway csv syncs
Summary: Errant change to lastupdatetime in copied CSV status can trigger runaway csv ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 4.6.z
Assignee: Ben Luddy
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On: 1905599
Blocks: 1910401
TreeView+ depends on / blocked
 
Reported: 2020-12-10 13:32 UTC by Ben Luddy
Modified: 2020-12-23 18:29 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1905599
: 1910401 (view as bug list)
Environment:
Last Closed: 2020-12-21 13:24:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github operator-framework operator-lifecycle-manager pull 1902 0 None closed Bug 1906416: Preserve original .status.lastUpdateTime in copied CSVs. 2021-02-01 15:58:49 UTC
Red Hat Product Errata RHSA-2020:5614 0 None None None 2020-12-21 13:24:31 UTC

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.

https://access.redhat.com/errata/RHSA-2020:5614


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