MAAS not respecting proxy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am using debian package maas/focal 1:2.9.2-
I am attempting to enlist and commission physical nodes in MAAS that are UCSM power type in the MAAS UI.
MAAS fails commissioning with a "No rack controllers can access the BMC of node <node>" I have added the CA for UCS and am able to curl successfully to the UCS endpoint. Also, I can pass the authentication information with curl to the UCS endpoint and authenticate successfully. Looking at the MAAS logs, it appears to timeout on the UCS login.
This environment currently requires routing through a proxy to get to the UCS endpoint. The proxy is set in the /etc/environment file found here:
PATH="/
games:/
LC_ALL=
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
EDITOR="vim"
HTTP_PROXY=http://
http_proxy=http://
HTTPS_PROXY=http://
https_proxy=http://
No_proxy does not include the UCS endpoint. Here is the no_proxy variable set in /etc/profile.
printf -v no_proxy '%s,' 10.145.
export no_proxy=
export NO_PROXY=
Looking at the tcpdump, MAAS is not respecting the proxy and is trying to directly connect to the UCS endpoint which is being firewalled off. Here is a tcpdump sample:
13:14:13.926729 IP (tos 0x0, ttl 64, id 44899, offset 0, flags [DF], proto TCP (6), length 60)
10.
13:14:15.942719 IP (tos 0x0, ttl 64, id 44900, offset 0, flags [DF], proto TCP (6), length 60)
10.
13:14:20.166717 IP (tos 0x0, ttl 64, id 44901, offset 0, flags [DF], proto TCP (6), length 60)
10.
MAAS uses urllib.request to create the requests for use with UCS. From the docs it looks like this should be handled automatically by being pulled from the environmental variables:
In addition, if proxy settings are detected (for example, when a *_proxy environment variable like http_proxy is set), ProxyHandler is default installed and makes sure the requests are handled through the proxy.
Here are the rackd logs: https:/
Changed in maas: | |
status: | Incomplete → Invalid |
tags: | added: epmo-test |
tags: | removed: epmo-test |
subscribed field-critical