Comment 1 for bug 2022926

Revision history for this message
Anton Troyanov (troyanov) wrote :

Hello Michal!

Do you have MAAS running behind a loadbalancer or reverse proxy?

Or maybe your machine has multiple interfaces?

---
FTR
The function that templates this config starts here: src/maasserver/compose_preseed.py:661

def build_metadata_url(request, route, rack_controller, node=None, extra=""):
    host = _get_rackcontroller_host(request, node=node)
    if host is None and rack_controller is not None:
        host = rack_controller.fqdn
    return (
        request.build_absolute_uri(route) + extra
        if not host
        else f"{request.scheme}://{host}:{RACK_CONTROLLER_PORT}{route}{extra}"
    )