Bug 2039196

Summary: DataImportCron with imagestream source does not support image tags
Product: Container Native Virtualization (CNV) Reporter: Nahshon Unna-Tsameret <nunnatsa>
Component: StorageAssignee: Arnon Gilboa <agilboa>
Status: CLOSED ERRATA QA Contact: Yan Du <yadu>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.10.0CC: agilboa, cnv-qe-bugs, yadu
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: CNV v4.10.0-618 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-16 16:06:09 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 Nahshon Unna-Tsameret 2022-01-11 08:21:09 UTC
Description of problem:

When creating a DataImportCron CR with source of imagestream, where the image is with a tag (no latest), CDI returns error and the DataImportCron CR is not created.

Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:
1. Add a static file with DataImportCronTemplate with an imagestream with a tag. Or add such a DataImportCronTemplate to the HyperConverged CR.

2. Read the DataImportCron and check it was created.


Actual results:
The DataImportCron is created.

Expected results:
The DataImportCron is not created.


Additional info:

Comment 1 Yan Du 2022-01-12 13:19:28 UTC
Hi, Arnon, is this supported ?  If not, should we support it?

Comment 2 Arnon Gilboa 2022-01-12 19:10:38 UTC
Yan, we recently added tag support for DataImportCron with url source, so I don't see a problem adding it to ImageStream source as well. I'll investigate it and update.

Comment 3 Yan Du 2022-02-09 03:36:02 UTC
Test on CNV-v4.10.0-657
It is working when the tag is set to         
registry:
          imageStream: rhel8-is:8.5.0

But not working when the tag includes small version, eg:
        registry:
          imageStream: rhel8-is:8.5.0-876

Comment 4 Yan Du 2022-02-09 09:08:38 UTC
(In reply to Yan Du from comment #3)
> Test on CNV-v4.10.0-657
> It is working when the tag is set to         
> registry:
>           imageStream: rhel8-is:8.5.0
> 
> But not working when the tag includes small version, eg:
>         registry:
>           imageStream: rhel8-is:8.5.0-876


Ignore the above comment.

Test on CNV-v4.10.0-657, imageStream with tag works well, issue has been fixed.

Comment 9 errata-xmlrpc 2022-03-16 16:06:09 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 (Moderate: OpenShift Virtualization 4.10.0 Images 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-2022:0947