Bug 2209456 - no_proxy option for virt-who does not work
Summary: no_proxy option for virt-who does not work
Keywords:
Status: CLOSED DUPLICATE of bug 2181960
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Virt-who Configure Plugin
Version: 6.10.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: yanpliu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-24 01:07 UTC by Ashfaqur Rahaman
Modified: 2023-08-14 15:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-14 15:39:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-18033 0 None None None 2023-06-01 14:44:01 UTC

Description Ashfaqur Rahaman 2023-05-24 01:07:12 UTC
Description of problem:

Satellite generated virt-who config updates the global virt-who configuration which does recognize no_proxy. 
 
even with no_proxy=* in /etc/virt-who.conf, virt-who does not ignore the default proxy configured in /etc/rhsm/rhsm.conf  

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

satellite 6.10.7
virt-who-0.28.10-1.el7_9.noarch

I have tested in 6.10, later versions should have similar impact as well.

How reproducible:
100%

Steps to Reproduce:

1. Configure a proxy in /etc/rhsm/rhsm.conf which is default proxy. 

2. Create virt-who configuration in satellite GUI with "Ignore Proxy" = * 

3. Deploy virt-who configuration and it will set "no_proxy=*" in /etc/virt-who.conf

3. Check /var/log/rhsm.log 

Actual results:

- /etc/virt-who.conf updated with "no_proxy=*"

- virt-who failed to send the guest-host mapping , it still tried to connect via proxy and ignored the "no_proxy" option:  

~~~
2023-05-23 19:33:41,391 [virtwho.rhsm_log WARNING] MainProcess(24321):MainThread @config.py:init_config:1556 - [global]: Ignoring unknown configuration option "no_proxy"
~~~

Expected results:

- Satellite virt-who configuration should update "/etc/virt-who.d/virt-who-config-X.conf" with "rhsm_no_proxy=*" instead updating the global configuration.

Additional info:

Workaround : 
- Add "rhsm_no_proxy=*" in /etc/virt-who.d/virt-who-config-X.conf , where X is the latest generated configuration. 
- restart virt-who

Comment 1 Chris Roberts 2023-08-14 15:39:38 UTC

*** This bug has been marked as a duplicate of bug 2181960 ***


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