Bug 1309611
| Summary: | virt-who http proxy connection failed with 404 error for hyperv and esx | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Eko <hsun> |
| Component: | virt-who | Assignee: | Chris Snyder <csnyder> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Eko <hsun> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.8 | CC: | hsun, ktordeur, patalber, redakkan, sgao, wpinheir |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-09-05 15:47:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Eko
2016-02-18 09:48:07 UTC
I believe that the problem is that setting `https_proxy` variable sets it both for ESX and the SubscriptionManager. So while the ESX succeeds via the proxy, virt-who also tries to connect to candlepin via the proxy and that fails with error 404. Please try to set `no_proxy` to the hostname from /etc/rhsm/rhsm.conf. hi Radek, I don't set any values for proxy options in /etc/rhsm/rhsm.conf, all the proxy options' value are None by default, so there is no reason rhsm send the request by proxy? proxy_hostname = proxy_port = proxy_user = proxy_password = on the other hand, I also add no_proxy = "VIRTHOST_HOSTNAME" option to /etc/rhsm/rhsm.conf for testing, but still "Proxy connection failed: 404" error. Sorry, I did not make myself clear. Please set no_proxy=hostname in the /etc/sysconfig/virt-who, where no_proxy is the hostname of candlepin. The no_proxy option might not work at the moment, please see bug 1311429. I retried this today with: virt-who-0.16-6.el6.noarch python-rhsm-1.16.6-1.el6.x86_64 And it is working correctly. When I set hostname of candlepin server to no_proxy variable in /etc/sysconfig/virt-who, the proxy is indeed bypassed and virt-who can connect directly to the candlepin server while using proxy for esx. Can you please retry it? The no_proxy option is operational, but requires python-rhsm-1.15.1-1 or newer. verified, with no_proxy option, virt-who can fetch and send host/guests mapping json normally. |