The metadata address mentioned in the preseed is wrong.
Bug #1081701 reported by
Raphaël Badin
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Raphaël Badin | ||
1.2 |
Fix Released
|
Critical
|
Julian Edwards | ||
maas (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The metadata address mentioned in the preseeds is built using MAAS_DEFAULT_URL. That host part of that address is wrong if the cluster controller is on a different machine than the region controller and is configured to reach the region controller through a different interface.
Same problem for the proxy address mentioned in the 'generic' preseed file.
Related branches
lp:~rvb/maas/bug-1081701-a
- Jeroen T. Vermeulen (community): Approve
-
Diff: 225 lines (+210/-0)2 files modifiedsrc/maasserver/migrations/0046_add_nodegroup_maas_url.py (+205/-0)
src/maasserver/models/nodegroup.py (+5/-0)
lp:~rvb/maas/bug-1081701-c
- Gavin Panella (community): Approve
-
Diff: 844 lines (+280/-155)13 files modifiedsrc/maasserver/api.py (+7/-5)
src/maasserver/compose_preseed.py (+9/-6)
src/maasserver/fields.py (+1/-25)
src/maasserver/preseed.py (+59/-32)
src/maasserver/testing/factory.py (+2/-1)
src/maasserver/tests/test_api.py (+32/-0)
src/maasserver/tests/test_fields.py (+0/-47)
src/maasserver/tests/test_forms.py (+0/-8)
src/maasserver/tests/test_preseed.py (+49/-17)
src/maasserver/utils/__init__.py (+30/-3)
src/maasserver/utils/tests/test_utils.py (+70/-9)
src/metadataserver/api.py (+5/-1)
src/metadataserver/tests/test_api.py (+16/-1)
lp:~rvb/maas/bug-1081701-d
- Gavin Panella (community): Approve
-
Diff: 62 lines (+26/-1)3 files modifiedsrc/maasserver/templates/maasserver/enlist_preseed.html (+1/-0)
src/maasserver/tests/test_views_nodes.py (+16/-0)
src/maasserver/views/nodes.py (+9/-1)
lp:~allenap/maas/bug-1081701-b
- Raphaël Badin (community): Approve
-
Diff: 125 lines (+90/-0)2 files modifiedsrc/maasserver/api.py (+8/-0)
src/maasserver/tests/test_api.py (+82/-0)
lp:~rvb/maas/enlistment-user-data
- Gavin Panella (community): Approve
-
Diff: 60 lines (+23/-3)2 files modifiedsrc/metadataserver/api.py (+3/-1)
src/metadataserver/tests/test_api.py (+20/-2)
lp:~rvb/maas/fix-origin-adr
- Gavin Panella (community): Approve
-
Diff: 202 lines (+18/-67)4 files modifiedsrc/maasserver/tests/test_api.py (+10/-7)
src/maasserver/utils/__init__.py (+4/-18)
src/maasserver/utils/tests/test_utils.py (+2/-40)
src/metadataserver/tests/test_api.py (+2/-2)
lp:~rvb/maas/1081701-c-bis
- Gavin Panella (community): Approve
-
Diff: 357 lines (+77/-39)8 files modifiedsrc/maasserver/api.py (+4/-4)
src/maasserver/preseed.py (+23/-17)
src/maasserver/tests/test_api.py (+26/-2)
src/maasserver/tests/test_dns.py (+2/-2)
src/maasserver/tests/test_preseed.py (+11/-9)
src/maasserver/tests/test_server_address.py (+3/-3)
src/maastesting/factory.py (+7/-0)
src/metadataserver/api.py (+1/-2)
lp:~julian-edwards/maas/backport-r1371
- Julian Edwards (community): Approve
-
Diff: 1902 lines (+939/-246)30 files modifiedsrc/maasserver/api.py (+17/-7)
src/maasserver/compose_preseed.py (+9/-6)
src/maasserver/dhcp.py (+1/-9)
src/maasserver/dns.py (+3/-4)
src/maasserver/fields.py (+1/-25)
src/maasserver/migrations/0045_add_tag_kernel_opts.py (+203/-0)
src/maasserver/migrations/0046_add_nodegroup_maas_url.py (+205/-0)
src/maasserver/models/nodegroup.py (+5/-0)
src/maasserver/preseed.py (+70/-37)
src/maasserver/server_address.py (+17/-11)
src/maasserver/templates/maasserver/enlist_preseed.html (+1/-0)
src/maasserver/testing/factory.py (+2/-1)
src/maasserver/tests/test_api.py (+143/-2)
src/maasserver/tests/test_dhcp.py (+16/-5)
src/maasserver/tests/test_dns.py (+12/-1)
src/maasserver/tests/test_fields.py (+0/-47)
src/maasserver/tests/test_forms.py (+0/-8)
src/maasserver/tests/test_preseed.py (+53/-15)
src/maasserver/tests/test_server_address.py (+17/-3)
src/maasserver/tests/test_views_nodes.py (+16/-0)
src/maasserver/utils/__init__.py (+27/-14)
src/maasserver/utils/tests/test_utils.py (+63/-40)
src/maasserver/views/nodes.py (+9/-1)
src/maastesting/factory.py (+7/-0)
src/metadataserver/api.py (+7/-2)
src/metadataserver/tests/test_api.py (+35/-2)
src/provisioningserver/dhcp/tests/test_config.py (+0/-2)
src/provisioningserver/tests/test_auth.py (+0/-2)
src/provisioningserver/tests/test_start_cluster_controller.py (+0/-1)
src/provisioningserver/tests/test_tasks.py (+0/-1)
Changed in maas: | |
milestone: | none → 12.10-stabilization |
Changed in maas (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Critical |
Changed in maas (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in maas (Ubuntu Quantal): | |
status: | New → Fix Released |
Changed in maas (Ubuntu Precise): | |
status: | New → Fix Released |
To post a comment you must log in.
I'm not sure how to approach this at the moment. The preseed is rendered on the region controller which has no knowledge of how each cluster accesses it. The only way I can see around this is for the cluster to send the region the API URL that it is using, which the region can then store on the nodegroup for later use.
Thoughts? Is there an easier way?