Public bug reported:
=== VERSIONS ===
landscape-client 24.04-0landscape0
landscape-server 24.04.10-0landscape0
=== SUMMARY ===
If the http{,s}_proxy environment variables are set, landscape-config
will force you to configure a proxy. If ran interactively, it will
preload the proxy values from the env and not allow you to set no proxy.
If you remove any http{,s}_proxy lines from /etc/landscape/client.conf
and try to force registration with that file using `landscape-config -c
/etc/landscape/client.conf --silent`, it will add the proxy values to
the client.conf file and fail again.
A further complication of this issue is that landscape-client doesn't
respect the no_proxy value. It will communicate with landscape-server
over the proxy even if it is included in the global env's no_proxy.
=== EXPECTED BEHAVIOR ===
It is a common use-case to configure clients to reach external resources
via a proxy, but not be able to route through the proxy for internal
resources (like landscape). This setup is not currently possible on a
landscape client if the proxy does not permit access to the landscape-
server.
=== REPRODUCTION STEPS ===
1. Set proxy variables in /etc/environment:
no_proxy=10.10.2.194,landscape.lan
NO_PROXY=10.10.2.194,landscape.lan
http_proxy=http://squid.internal
HTTP_PROXY=http://squid.internal
https_proxy=http://squid.internal
HTTPS_PROXY=http://squid.internal
2. Reboot
3. Try to register:
sudo landscape-config --account-name standalone --url
https://landscape.lan/message-system --ping-url http://landscape.lan/ping
At this point, landscape-config will force you to set a proxy.
** Affects: landscape-client (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2130678
Title:
Cannot set no proxy when *_proxy envs are set
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/2130678/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs