Bug 2043999 - virt-cdi-importer fails to import a VM image when clusterwide proxy configured
Summary: virt-cdi-importer fails to import a VM image when clusterwide proxy configured
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.8.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.8.5
Assignee: Michael Henriksen
QA Contact: Yan Du
URL:
Whiteboard:
: 2046268 (view as bug list)
Depends On:
Blocks: 2046268 2046271 2049800
TreeView+ depends on / blocked
 
Reported: 2022-01-23 07:05 UTC by nsurati
Modified: 2022-04-12 16:45 UTC (History)
10 users (show)

Fixed In Version: CNV v4.8.5-26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2046268 2046271 2049800 (view as bug list)
Environment:
Last Closed: 2022-04-12 16:45:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt containerized-data-importer pull 2122 0 None Merged [release-v1.34] used uncached client to get cluster proxy configmap (#2055) 2022-02-01 10:22:30 UTC
Github kubevirt containerized-data-importer pull 2139 0 None Merged [release-v1.34] Set http(s)_proxy to lower case env variable 2022-02-06 10:13:04 UTC
Github kubevirt containerized-data-importer pull 2148 0 None Merged Fix failing imageio test 2022-02-16 12:33:13 UTC
Github kubevirt containerized-data-importer pull 2154 0 None Merged [release-v1.34] Fix failing imageio test (#2148) 2022-02-16 12:33:13 UTC
Red Hat Knowledge Base (Solution) 6807841 0 None None None 2022-03-10 15:21:51 UTC
Red Hat Product Errata RHBA-2022:1328 0 None None None 2022-04-12 16:45:32 UTC

Description nsurati 2022-01-23 07:05:47 UTC
Description of problem:

virt-cdi-importer fails to import a VM image when global proxy settings.


Version-Release number of selected component (if applicable):
OpenShift 4.8.15
OpenShift Virtualization 4.8.3

How reproducible:
1. Configure global proxy settings to access Internet
2. Import qcow2 image from the Internet

Actual results:
I0120 00:54:31.368755       1 importer.go:52] Starting importer
I0120 00:54:31.369483       1 importer.go:135] begin import process
E0120 00:55:31.370197       1 importer.go:140] Get "https://access.cdn.redhat.com/content/origin/files/sha256/8e/8e34e57feb68d19ba9ffbefcd3f662b1a3437c9f7d811449c5ad452adda64384/rhel-8.2-x86_64-kvm.qcow2?user=16cbb97d7034eaaf6884a3a99e6751f8&_auth_=1642654271_686502123a3cc36afa60deff5b253224": dial tcp 23.223.151.32:443: i/o timeout
HTTP request errored
kubevirt.io/containerized-data-importer/pkg/importer.createHTTPReader
    /remote-source/app/pkg/importer/http-datasource.go:301
kubevirt.io/containerized-data-importer/pkg/importer.NewHTTPDataSource
    /remote-source/app/pkg/importer/http-datasource.go:89
main.main
    /remote-source/app/cmd/cdi-importer/importer.go:138
runtime.main
    /usr/lib/golang/src/runtime/proc.go:204
runtime.goexit
    /usr/lib/golang/src/runtime/asm_amd64.s:1374

Expected results:

Image downloaded using the proxy


Additional info:

Following messages observed in cdi-deployment pod

2022-01-18T18:36:17.664722324Z E0118 18:36:17.664670       1 reflector.go:138] sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:229: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: configmaps is forbidden: User "system:serviceaccount:openshift-cnv:cdi-sa" cannot list resource "configmaps" in API group "" at the cluster scope

Comment 2 Alexander Wels 2022-01-31 12:56:51 UTC
Found some more issues I need to fix. The immediate error is fixed already but other things are broken, working on a PR.

Comment 3 Maya Rashish 2022-02-01 10:29:50 UTC
If it's in POST can you link a PR?
Can you update bz#2046271 too?
Thanks!

Comment 4 Alexander Wels 2022-02-01 13:08:50 UTC
There are 2 issues, the PR that fixes the first issue is linked already, the second issue doesn't have a backporter PR yet.

Comment 5 Maya Rashish 2022-02-06 10:12:04 UTC
*** Bug 2046268 has been marked as a duplicate of this bug. ***

Comment 8 Maya Rashish 2022-02-10 15:01:02 UTC
Moving back to POST - the changes introduced a regression and we'd like to fix it within the context of this bug.

Comment 9 Dan Kenigsberg 2022-02-27 08:58:24 UTC
@alitke which 4.9.z is getting this fix?

Comment 10 Maya Rashish 2022-02-27 10:11:10 UTC
bz#2049800 is for the fix to 4.9.z and has a target release of 4.9.4

Comment 11 Yan Du 2022-03-28 12:47:14 UTC
Test on OCP-4.8.35 + CNV-v4.8.5-53, 
issue have been fixed.

Comment 17 errata-xmlrpc 2022-04-12 16:45:25 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 (OpenShift Virtualization 4.8.5 Images), 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/RHBA-2022:1328


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