[2.0b7, regression] maas-rack register makes up a new hostname
Bug #1592246 reported by
Mark Shuttleworth
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Lee Trager |
Bug Description
I just registered a new rack controller with my region:
sudo maas-rack register --url http://
The register succeeded and I see the new rack controller in the nodes listing, but it has a made-up name instead of its actual hostname.
The registration process should include the rack server telling the region the name it would prefer (with the region free to reject the registration if the name is not unique).
Related branches
lp://staging/~ltrager/maas/lp1592246
- Gavin Panella (community): Needs Fixing
- Blake Rouse (community): Approve
- Andres Rodriguez (community): Needs Information
-
Diff: 651 lines (+227/-56)11 files modifiedsrc/maasserver/models/node.py (+2/-2)
src/maasserver/models/tests/test_node.py (+30/-7)
src/maasserver/rpc/regionservice.py (+2/-1)
src/maasserver/start_up.py (+1/-1)
src/maasserver/tests/test_start_up.py (+22/-0)
src/provisioningserver/register_command.py (+19/-0)
src/provisioningserver/rpc/clusterservice.py (+1/-1)
src/provisioningserver/rpc/tests/test_clusterservice.py (+25/-1)
src/provisioningserver/tests/test_register_command.py (+29/-2)
src/provisioningserver/utils/env.py (+18/-4)
src/provisioningserver/utils/tests/test_env.py (+78/-37)
summary: |
- maas-rack register makes up a new hostname + [2.0b7] maas-rack register makes up a new hostname |
Changed in maas: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
milestone: | none → 2.0.0 |
summary: |
- [2.0b7] maas-rack register makes up a new hostname + [2.0b7, regression] maas-rack register makes up a new hostname |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Mark,
I was unable to reproduce what you were seeing. Here are the steps that I performed.
Steps:
1. Created two separate VMs (one for the region controller and one for the rack controller).
2. Installed region controller on region VM:
$ sudo apt install maas-cli maas-region- controller
3. Created superuser to login into MAAS UI on region VM.
4. Installed rack controller on the rack VM:
$ sudo apt install maas-rack- controller
5. Registered the rack on the rack VM using the url and secret of the region:
$ sudo maas-rack register --url http:// .../MAAS --secret ...
In the MAAS UI there are two controllers and they have the hostnames of the VMs.
If your steps were different than the above can you please provide them so we can try and reproduce the issue?
The above steps were performed with MAAS Version 2.0.0 (beta7+bzr5112)