
Dear all, I'm testing the buildserver 2.10 to only connect, via a squid, proxy. I've nearly got it working completely. I've add to /etc/apache2/vhosts.d/obs.conf obs:~ # head /etc/apache2/vhosts.d/obs.conf setenv http_proxy "http://172.16.0.2:3128/" setenv https_proxy "http://172.16.0.2:3128/" setenv ftp_proxy "http://172.16.0.2:3128/" setenv no_proxy "localhost, 127.0.0.1" Listen 82 # May needed on old distributions or after an update from them. #Listen 443 # Passenger defaults obs:~ # and to: /srv/obs/run/worker/boot/BSConfig.pm obs:~ # tail /srv/obs/run/worker/boot/BSConfig.pm # our $geminabox_container = ''; # # public cloud uploader configuration # our $cloudupload_pubkey = "/etc/obs/cloudupload/_pubkey"; # default setting our $proxy = "http://172.16.0.2:3128/"; our $noproxy = "localhost, 127.0.0.1"; 1; obs:~ # One issue is still left. If I add a repo to a Project. https://obs/project/add_repository_from_default_list/test i.e. https://obs/project/add_repository_from_default_list/<project> Select a Repositry, OBS (I don't know which module) directly connects to: api.opensuse.org Can you please point me to te direction where I have to look. I'm willing to fix the issue. Regards, Joop.

Dear all, I've found the code that "causes" the bypass of the proxy. It's: /usr/lib/obs/server/bs_srcserver But I didn't find the location of the failure yet. If some is more familiar with the code, can you please let me which part might cause the issue. The proxy value "is known by" /usr/lib/obs/server/bs_srcserver I've optimized the code, and created the pushrequest. On 2021-12-04 13:13, Joop Boonen wrote:
Dear all,
I'm testing the buildserver 2.10 to only connect, via a squid, proxy.
I've nearly got it working completely. I've add to /etc/apache2/vhosts.d/obs.conf
obs:~ # head /etc/apache2/vhosts.d/obs.conf setenv http_proxy "http://172.16.0.2:3128/" setenv https_proxy "http://172.16.0.2:3128/" setenv ftp_proxy "http://172.16.0.2:3128/" setenv no_proxy "localhost, 127.0.0.1"
Listen 82 # May needed on old distributions or after an update from them. #Listen 443
# Passenger defaults obs:~ #
and to: /srv/obs/run/worker/boot/BSConfig.pm
obs:~ # tail /srv/obs/run/worker/boot/BSConfig.pm # our $geminabox_container = ''; #
# public cloud uploader configuration # our $cloudupload_pubkey = "/etc/obs/cloudupload/_pubkey"; # default setting
our $proxy = "http://172.16.0.2:3128/"; our $noproxy = "localhost, 127.0.0.1";
1; obs:~ #
One issue is still left.
If I add a repo to a Project. https://obs/project/add_repository_from_default_list/test i.e. https://obs/project/add_repository_from_default_list/<project> Select a Repositry, OBS (I don't know which module) directly connects to: api.opensuse.org
Can you please point me to te direction where I have to look. I'm willing to fix the issue.
Regards,
Joop.

On Montag, 6. Dezember 2021, 23:30:03 CET Joop Boonen wrote:
Dear all,
I've found the code that "causes" the bypass of the proxy. It's: /usr/lib/obs/server/bs_srcserver
But I didn't find the location of the failure yet. If some is more familiar with the code, can you please let me which part might cause the issue. The proxy value "is known by" /usr/lib/obs/server/bs_srcserver
hm, have you tried to set http_proxy element via osc api -e /configuration ?
I've optimized the code, and created the pushrequest.
we have too many places to configure the proxy unfortunatly ... I need to discuss this ... bye adrian
On 2021-12-04 13:13, Joop Boonen wrote:
Dear all,
I'm testing the buildserver 2.10 to only connect, via a squid, proxy.
I've nearly got it working completely. I've add to /etc/apache2/vhosts.d/obs.conf
obs:~ # head /etc/apache2/vhosts.d/obs.conf setenv http_proxy "http://172.16.0.2:3128/" setenv https_proxy "http://172.16.0.2:3128/" setenv ftp_proxy "http://172.16.0.2:3128/" setenv no_proxy "localhost, 127.0.0.1"
Listen 82 # May needed on old distributions or after an update from them. #Listen 443
# Passenger defaults obs:~ #
and to: /srv/obs/run/worker/boot/BSConfig.pm
obs:~ # tail /srv/obs/run/worker/boot/BSConfig.pm # our $geminabox_container = ''; #
# public cloud uploader configuration # our $cloudupload_pubkey = "/etc/obs/cloudupload/_pubkey"; # default setting
our $proxy = "http://172.16.0.2:3128/"; our $noproxy = "localhost, 127.0.0.1";
1; obs:~ #
One issue is still left.
If I add a repo to a Project. https://obs/project/add_repository_from_default_list/test i.e. https://obs/project/add_repository_from_default_list/<project> Select a Repositry, OBS (I don't know which module) directly connects to: api.opensuse.org
Can you please point me to te direction where I have to look. I'm willing to fix the issue.
Regards,
Joop.
-- Adrian Schroeter <adrian@suse.de> Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev
participants (2)
-
Adrian Schröter
-
Joop Boonen