Bug 2108339

Summary: datasource does not provide timestamp when updated
Product: Container Native Virtualization (CNV) Reporter: joherr
Component: StorageAssignee: Arnon Gilboa <agilboa>
Status: CLOSED ERRATA QA Contact: Yan Du <yadu>
Severity: medium Docs Contact:
Priority: high    
Version: 4.10.2CC: agilboa, alitke, jcall, jsafrane, yadu
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v4.12.0-351 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-24 13:38:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description joherr 2022-07-18 21:42:51 UTC
Description of problem:
The DataSource does not show a timestamp as to when it is updated. It only shows a timestamp for when it is initially populated.

Version-Release number of selected component (if applicable):
OpenShift 4.10.18
Virtualization 10.2

How reproducible:
always

Steps to Reproduce:
1. Create a imagestream
2. create an datacrontemplate in hyperconverged to populate a datasource
3. update container image the imagestreampoints to

Actual results:
The datasource updates, but  the status.conditions do not indicate it updated or changed. Only the pvc name changes.


Expected results:

To have a condition that provides a date/time when the DataSource is updated.

Comment 1 Jan Safranek 2022-07-19 08:07:22 UTC
Moving to CNV

Comment 2 Yan Du 2022-08-16 08:52:30 UTC
Test on CNV-v4.12.0-363, lastTransitionTime has been changed after updating dataImportCronTemplates

Before update:

-------8<------------
spec:
  source:
    pvc:
      name: custom-data-source-947541648d7f
      namespace: openshift-virtualization-os-images
status:
  conditions:
  - lastHeartbeatTime: "2022-08-16T04:28:51Z"
    lastTransitionTime: "2022-08-16T04:28:51Z"
    message: DataSource is ready to be consumed
    reason: Ready
    status: "True"
    type: Ready
  source:
    pvc:
      name: custom-data-source-947541648d7f
      namespace: openshift-virtualization-os-images

After update:

-------8<------------
spec:
  source:
    pvc:
      name: custom-data-source-6f58b5a089be
      namespace: openshift-virtualization-os-images
status:
  conditions:
  - lastHeartbeatTime: "2022-08-16T04:33:53Z"
    lastTransitionTime: "2022-08-16T04:33:53Z"
    message: DataSource is ready to be consumed
    reason: Ready
    status: "True"
    type: Ready
  source:
    pvc:
      name: custom-data-source-6f58b5a089be
      namespace: openshift-virtualization-os-images

Comment 6 errata-xmlrpc 2023-01-24 13:38:02 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 Virtualization 4.12.0 Images security 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-2023:0408