-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP proxy specified in /etc/rhn/rhn.conf not taken by DEB spacewalk-repo-sync module #2103
Comments
Can confirm this error with latest uyuni server. |
Just manually tried this command and get following error (all updates have been applied)
|
Well, the proxy issue is something different. We look into it. The |
I just commented the
|
But I also needed to set an
setting within Update to above: Without above setting, the bootstrap repo gets recreated. So if I want to deactivate auto-regeneration, empty value needs to be added to rhn.conf Confirmed work of sync also triggered from WebUI:
|
In my tests it was working. The old spacewalk config parsing uses namespaces. repo-sync use server.susemanager . So it take values from rhn.conf without prefix and with prefix server.susemanager. The problem was, that in deb_src.py the namespace was switched to read proxy values. |
Nothing related to proxy in /usr/share/rhn/config-defaults/rhn_server_susemanager.conf file:
I have tried to add http_proxy and server.satellite.http_proxy (uyuni restarted after each modification) but no luck. Thanks ! |
@phibid the proxy problem is different. We were able to see it here as well. So we look into it. But may take a bit. There was some new code added which does not take the proxy into account. |
Found the error. In Debian Release file, there is no more
(remove |
@rpasche I confirm your issue and the fix for Debian repos. Thanks for this. Perhaps that you should create an issue if not already done ? @mcalmer Ah ok, thought you were talking about mine. Anyway, adding the proxy settings directly at the beginning of /usr/bin/spacewalk-repo-sync just after "import os" is a working workaround in my case: proxy = 'http://my_proxy_ip:my_proxy_port'
os.environ['http_proxy'] = proxy
os.environ['HTTP_PROXY'] = proxy
os.environ['https_proxy'] = proxy
os.environ['HTTPS_PROXY'] = proxy |
@rpasche Had to remove "md5" too in |
@phibid really? Have to check this... |
@phibid You're right. The buster-updates part does only contain |
@mcalmer
What seems interesting....this seems only to happen for repos (and channels), that are not handled via the "products". All SLES repos (handled by products) are using the proxy successfully. successfully. But I currently can not confirm this with some Ubuntu repos (that could be enabled). |
It looks the error is simply, that no proxies are given to the
The proxy should be defined an passed to
|
It also looks that the
|
Hi @rpasche Thank you for all these findings. We will have a look. Besides that, PRs are always welcome from the community. |
Not sure why this issue is closed, I have the same issue on Uyuni 2020.05: 1 - On file
To allow correct synchronization of Debian/Ubuntu repos 2 - Proxy settings are not taken for .DEB repos, I currently have to add this in file proxy = 'http://my_proxy_ip:my_proxy_port'
os.environ['http_proxy'] = proxy
os.environ['HTTP_PROXY'] = proxy
os.environ['https_proxy'] = proxy
os.environ['HTTPS_PROXY'] = proxy |
Ah ok, I guess that the PRs will be added in the next Uyuni maintenance release. Not better to let this ticket opened until we validate that this is solved in the next release ? |
@phibid I've split the issues. The first part about not using the proxy setting was merged to master and so this got closed. The second issue is this one. There is also a PR with a draft for that: #2290 Right! Everything that gets merged now will be in the next release. As soon as a change is tested and reviewed we close the issue. Otherwise we'd lose overview fast. But you can check the changelogs to see if there is something pending. |
Yes, will be part of 2020.06
No, we will alwas forget and the result is just a lot of open issues which are solved since ages. |
Understood, thank you both ! |
Uyuni installed version: 2020.03
All the RPM repositories are being correctly synced though the Web UI, which is not the case of the DEB repos. The synchronisation always ends up with:
2020/04/06 20:29:44 +02:00 Command: ['/usr/bin/spacewalk-repo-sync', '--channel', 'ubuntu-1804-amd64-main-uyuni', '--type', 'deb', '--non-interactive'] 2020/04/06 20:29:44 +02:00 Sync of channel started. 2020/04/06 20:34:06 +02:00 Unhandled error occurred: HTTPConnectionPool(host='archive.ubuntu.com', port=80): Max retries exceeded with url: /ubuntu/dists/bionic/main/binary-amd64/Packages.gz (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fba66f62358>: Failed to establish a new connection: [Errno 101] Network is unreachable',))
The execution of spacewalk-repo-sync directly through CLI is correctly working, so it seems that the http_proxy parameter specified in /etc/rhn/rhn.conf is not taken into account:
server.satellite.http_proxy = proxy.zig.zag:8080
The issue #1095 regarding this parameter and its implementation in the DEB module were solved, so not sure if there is another issue here.
The text was updated successfully, but these errors were encountered: