Bug 2039196 - DataImportCron with imagestream source does not support image tags
Summary: DataImportCron with imagestream source does not support image tags
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.10.0
Assignee: Arnon Gilboa
QA Contact: Yan Du
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-11 08:21 UTC by Nahshon Unna-Tsameret
Modified: 2022-03-16 16:06 UTC (History)
3 users (show)

Fixed In Version: CNV v4.10.0-618
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-16 16:06:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt containerized-data-importer pull 2117 0 None Merged Add DataImportCron ImageStream tag support 2022-01-25 17:25:23 UTC
Github kubevirt containerized-data-importer pull 2127 0 None Merged [release-v1.43] Add DataImportCron ImageStream tag support 2022-01-25 17:27:13 UTC
Red Hat Product Errata RHSA-2022:0947 0 None Closed RHEL EUS Errata Documentation 2022-06-16 06:26:55 UTC

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


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