CNAME not added if PXE iface is different from first one in DB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Jeroen T. Vermeulen | ||
1.2 |
Fix Released
|
Critical
|
Jeroen T. Vermeulen |
Bug Description
So on maas 1.2 auto generated hostnames are no longer MAC based. Both when adding a node *without* specifying a hostname through maas-enlist or the WebUI, the hostname generated is in the form of:
nmewt.<domain>
where nmewt is a random generated name.
What is even worse, is that no CNAME gets created for such hostname, causing that sthings such as juju, can't address to these nodes.
If we change the hostname to spomething not random... the new hostname does NOT get added as a CNAME on DNS.
However, DNS works by addressing to the hosts in the way of 'X-Y-Z-A.domian' being x.y.z.a the ip.
Some more info (which is additional/
=== Tue, 05 Feb 2013 22:34:55 +0000: successfully enlisted to 'http://
10/MAAS/
{
"status": 0,
"macaddress
{
},
{
},
{
}
],
"netboot": true,
"hostname": "qgre8.domain",
"power_type": "ipmi",
"system_id": "node-3a8865ae-
So it seems that if it tries to register itself with a hostname equal to a DNS name already in MAAS based on the IP, it will also generate a a random hostname.
Note that the random hostname is also generated if NO hostname is sent during enlistment.
=======
this appears in celery.log don't know if related.
Traceback (most recent call last):
File "/usr/lib/
return cls(states.SUCCESS, retval=fun(*args, **kwargs))
File "/usr/lib/
return self.run(*args, **kwargs)
File "/usr/lib/
return fun(*args, **kwargs)
File "/usr/lib/
omshell.
File "/usr/lib/
raise CalledProcessEr
Related branches
- Raphaël Badin (community): Approve
-
Diff: 111 lines (+43/-32)2 files modifiedsrc/maasserver/models/dhcplease.py (+24/-24)
src/maasserver/tests/test_dhcplease.py (+19/-8)
- Jeroen T. Vermeulen (community): Approve
-
Diff: 111 lines (+43/-32)2 files modifiedsrc/maasserver/models/dhcplease.py (+24/-24)
src/maasserver/tests/test_dhcplease.py (+19/-8)
Changed in maas: | |
importance: | Undecided → Critical |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- MAAS 1.2 no longer auto generates a MAC based hostname + MAAS doesn't add CNAME if PXE iface is different from first one in DB |
summary: |
- MAAS doesn't add CNAME if PXE iface is different from first one in DB + CNAME not added if PXE iface is different from first one in DB |
This ought to work, I personally tested this (and it was tested in the QA lab). Can you look at the region celery log for errors.