[packaging] dpkg-reconfigure for region controller refers to an incorrect network topology assumption

Bug #1718294 reported by Dmitrii Shcherbakov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Low
Unassigned

Bug Description

When one dpkg-reconfigures a region controller a confusing message is presented about "being on the same L2 with nodes" requirement.

https://github.com/maas/maas/blob/packaging/debian/maas-region-controller.templates#L15-L22
"Ubuntu MAAS PXE/Provisioning network address: The Ubuntu MAAS Server automatically detects the IP address that is used for PXE and provisioning. However, it needs to be in the same network as the clients. If the automatically detected address is not in the same network as the clients, it must be changed."

However, MAAS rack controller only needs L3 connectivity to a region controller:

https://github.com/CanonicalLtd/maas-docs/blame/2.2/en/installconfig-rack.md#L10-L18

Nodes themselves need to be able to communicate with a region controller to fetch metadata which is done via HTTP so no L2 connectivity is needed. If they use MAAS' bind9 as a DNS server they will also need to connect to that.
https://github.com/maas/maas/blame/2.2/docs/development/metadata.rst#L4-L7

Proxy server also does not require being on the same L2 for hosts:
https://github.com/CanonicalLtd/maas-docs/blame/2.2/en/installconfig-network-proxy.md#L27-L29

Therefore, this message is correct only for rackd instances, not for regiond instances.

Related branches

Changed in maas:
milestone: none → 2.3.0
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Also, maas_url on a Region controller is only used for the case when a rack controller URL for a host is not known and a fallback is needed:

https://github.com/maas/maas/blob/2.2.0/src/maasserver/config.py#L31-L37
https://github.com/maas/maas/blob/2.2.0/src/maasserver/server_address.py#L20-L33
    :param rack_controller: The `RackController` from the point of view of
        which the server host should be computed.
    :return: Hostname or IP address, as configured in the MAAS URL config
        setting or as configured on rack_controller.url.
    """
    if rack_controller is None or not rack_controller.url:
        with RegionConfiguration.open() as config:
            maas_url = config.maas_url
    else:
        maas_url = rack_controller.url

Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
milestone: 2.3.0 → 2.3.0beta1
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.