Bug 1834542 - "engine-setup" does not manage DNF configured proxy
Summary: "engine-setup" does not manage DNF configured proxy
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Setup.Engine
Version: 4.4.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Yedidyah Bar David
QA Contact: Barbora Dolezalova
URL:
Whiteboard:
Depends On:
Blocks: 1417161
TreeView+ depends on / blocked
 
Reported: 2020-05-11 22:10 UTC by Simon Coter
Modified: 2023-09-15 00:31 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-4.5.0
Clone Of:
Environment:
Last Closed: 2022-04-28 09:26:34 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.5+
gdeolive: testing_ack+


Attachments (Terms of Use)

Description Simon Coter 2020-05-11 22:10:35 UTC
Description of problem:

Installing ovirt-engine behind a proxy is not automatically managed by "engine-setup".
So, even if "DNF" is configured with proper proxy configuration, the "engine-setup" installation fails and ignore the configured DNF proxy.


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

4.4.0-RC1


How reproducible:

Install ovirt-engine on CentOS-8 behind a proxy (with proxy configured on dnf.conf).
Run "engine-setup" to see installation/configuration failing in the first steps.

Actual results:
Failed ovirt-engine installation/setup.


Expected results:
"engine-setup" intercepts the DNF configured proxy and use it while looking for packages/RPMs.


Additional info:
Work-around: export http_proxy/https_proxy env variables before running "engine-setup".

Comment 1 RHEL Program Management 2020-05-12 00:10:38 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 2 Sandro Bonazzola 2020-09-09 11:29:03 UTC
I also got report that when proxy is used (adding proxy=... in /etc/yum.conf) and/or exporting http_proxy and https_proxy variables, engine-setup is not reading /etc/yum/vars/contentdir so it then fails downloading reposytory metadata:

[ INFO  ] DNF Errors during downloading metadata for repository 'AppStream':
           - Status code: 404 for http://mirror.centos.org/$contentdir/8/AppStream/x86_64/os/repodata/repomd.xml 

so $contendir is not resolved to "centos"

Looks like we are missing to read the yum config at all here.

Comment 3 Yedidyah Bar David 2022-03-02 08:00:47 UTC
Please try with current master code (would be released eventually as 4.5). I didn't try this manually recently, but we do rely on this in [1] - search the code there for 'socks.proxy|sshd.proxy'. We had to do this for testing IPv6-only setups, because some of our dnf repos are/were IPv4-only.

[1] https://github.com/ovirt/ovirt-system-tests/

Comment 5 Sandro Bonazzola 2022-04-28 09:26:34 UTC
This bugzilla is included in oVirt 4.5.0 release, published on April 20th 2022.

Since the problem described in this bug report should be resolved in oVirt 4.5.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.

Comment 6 Red Hat Bugzilla 2023-09-15 00:31:44 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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