Bug 1495304 - virt-who-config plugin incorrectly configures proxy
Summary: virt-who-config plugin incorrectly configures proxy
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Virt-who Configure Plugin
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Marek Hulan
QA Contact: Katello QA List
satellite-doc-list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-25 18:34 UTC by Perry Gagne
Modified: 2019-10-22 12:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-26 13:14:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Perry Gagne 2017-09-25 18:34:55 UTC
Description of problem: When a proxy is configured using the virt-who config plugin the proxy is incorrectly 


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


How reproducible:


Steps to Reproduce:
1. Create virt-who config using plugin and specify proxy 

Actual results:
The resulting script will set an 'http_proxy' environment variable in /etc/sysconfig/virt-who


Expected results: The configuration file should be populated with these fields:

rhsm_proxy_hostname
rhsm_proxy_port
rhsm_proxy_user
rhsm_proxy_password or more likely rhsm_encrypted_proxy_password

The environment variable NO_PROXY is also used to ignore hosts. 



Additional info: We will also probably need to add fields to the UI, or do something like parsing of the 'proxy' URL scheme.

Comment 2 Perry Gagne 2017-09-25 18:47:21 UTC
Ignore my comment about the proxy:// URL scheme, there is no standard way to parse this.  So we will have to either add fields or do something else here.

Comment 3 Marek Hulan 2017-09-26 13:14:53 UTC
Perry, this is not a bug. http_proxy global parameter can be used if you need to proxy the communication, if you need to do it selectively, use Ignore Proxy option. If you want to change the rhsm_hostname you should just change the satellite url but that's not a proxy. How would the proxy know where is the Satellite that it should proxy the communication to?

Anyway this is consistent with the lab script. Please see inline help of fields if it's still confusing or ask Suresh, who was involved in the testing from the beginning.

If you think there should be proxy configurable per hypervisor, please raise RFE for virt-who project.

Comment 4 Perry Gagne 2017-09-26 13:25:55 UTC
Chris, does this sound right to you?

Comment 5 Chris Snyder 2019-04-25 20:08:57 UTC
That does sound right to me Perry.

Let's ask Will to be sure.

Will does comment 3 sound right to you?

Comment 6 William Poteat 2019-10-22 12:19:32 UTC
Yes


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