Avoid picking the wrong IP for MAAS_URL and DEFAULT_MAAS_URL
Bug #1418044 reported by
Christian Reis
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Mike Pontillo |
Bug Description
On multi-homed hosts MAAS seems to always pick the wrong IP address for DEFAULT_MAAS_URL. The classic case is the laptop use case which is many users' first introduction to MAAS. The IP should be one the same network as the nodes are attached to, for the obvious reason, but it's not possible to determine that before a cluster is configured.
Could we provide the user with a choice when installing MAAS? I realize a choice often reduces usability but in this case the benefit should outweigh that downside.
(I was sure I had reported this in another bug, but I can't seem to find it. Perhaps I only mentioned the issue.)
Related branches
~mpontillo/maas:better-default-maas-url--bug-1418044
Merged
into
maas:master
- Lee Trager (community): Approve
- MAAS Lander: Needs Fixing
-
Diff: 1158 lines (+322/-117)11 files modifiedsrc/maasserver/compose_preseed.py (+66/-35)
src/maasserver/preseed.py (+62/-35)
src/maasserver/rpc/boot.py (+9/-3)
src/maasserver/rpc/tests/test_boot.py (+7/-3)
src/maasserver/server_address.py (+5/-1)
src/maasserver/tests/test_compose_preseed.py (+101/-16)
src/maasserver/tests/test_preseed.py (+8/-5)
src/maasserver/utils/__init__.py (+14/-6)
src/metadataserver/api.py (+28/-8)
src/metadataserver/tests/test_api.py (+19/-3)
src/provisioningserver/utils/url.py (+3/-2)
Changed in maas: | |
milestone: | none → 1.7.2 |
summary: |
- Avoid picking the wrong interface and IP for DEFAULT_MAAS_URL + Avoid picking the wrong IP for MAAS_URL and DEFAULT_MAAS_URL |
description: | updated |
Changed in maas: | |
milestone: | 1.7.2 → 1.7.3 |
Changed in maas: | |
milestone: | 1.7.3 → 1.9.0 |
status: | New → Triaged |
Changed in maas: | |
milestone: | 1.9.0 → none |
Changed in maas: | |
milestone: | none → 2.3.0 |
Changed in maas: | |
milestone: | 2.3.0 → 2.3.0beta2 |
Changed in maas: | |
milestone: | 2.3.0beta2 → 2.3.0beta3 |
Changed in maas: | |
milestone: | 2.3.0beta3 → 2.3.0beta4 |
Changed in maas: | |
milestone: | 2.3.0beta4 → 2.3.0rc1 |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Mike Pontillo (mpontillo) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
We also get MAAS_URL in maas_cluster.conf wrong. I think we should ask the user for both at install time, and for the installer ISO we can probably preseed the answer. I'll investigate futher.