Ensure PHX proxy does not cache resources.ovirt.org


Out proxy is currently caching packages from resources.ovirt.org when jobs ask for then, since resources.ovirt.org is now in PHX, this is redundant and places unnecessary load on the proxy.

We need to configure the proxy to issue an HTTP permanent redirect (301) to all requests for file from resource.ovirt.org.


Evgheni Dereveanchin
June 12, 2017, 8:22 AM

Thanks for the confirmation. As said, the only way we can do this is on client side. The client needs to support the no_proxy env var (it should if it supports http_proxy). There's nothing that can be done server side as any redirects will end up at the proxy itself causing infinite loops. Closing for now.

Barak Korren
June 11, 2017, 1:04 PM

OK. I suppose we can CLOSE WONTFIX if we can't/unwilling to find any satisfactory solution.

Evgheni Dereveanchin
May 18, 2017, 12:33 PM

Is this still relevant? As discussed, we can't force any redirects on server-side and the current setup does not negatively affect anything. I propose to close this request.

Barak Korren
March 10, 2017, 1:29 PM

Ah, the issue with environment variables is that they are not universally respected by all tools. The purpose of this ticket is to check if squid can offer some sort of a safe catch-all fallback. I think it may be able to, because forward proxies are (as opposed to reverse proxies) AFAIK built-in to the HTTP protocol, and it has AFAIK some specialized keywords for handling them. One of which may be, "this proxy does not cache this resource, please go directly to...".

Of course setting the clients to not hit the proxy at all is more efficient, and we have various tickets to deal with that. But given the complex and unexpected nature of the clients we may see in use, we may never manage to properly setup 100% of the clients. This is why we need to make an effort and check if a server-based solution is possible at all.

Evgheni Dereveanchin
March 10, 2017, 12:45 PM

This is not a squid option but an environment variable for clients that is processed when http_proxy is set on them.

Won't Fix
Your pinned fields
Click on the next to a field label to start pinning.


Evgheni Dereveanchin


Barak Korren