[packaging] dpkg-reconfigure for region controller refers to an incorrect network topology assumption
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:/
"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:/
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:/
Proxy server also does not require being on the same L2 for hosts:
https:/
Therefore, this message is correct only for rackd instances, not for regiond instances.
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 17 lines (+3/-3)1 file modifieddebian/maas-region-controller.templates (+3/-3)
Changed in maas: | |
milestone: | none → 2.3.0 |
importance: | Undecided → Low |
status: | New → Triaged |
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 |
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 /github. com/maas/ maas/blob/ 2.2.0/src/ maasserver/ server_ address. py#L20- L33 .url. .url: tion.open( ) as config:
maas_ url = config.maas_url
https:/
: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
"""
if rack_controller is None or not rack_controller
with RegionConfigura
else:
maas_url = rack_controller.url