maas cluster name should not / can not have trailing '.'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Mike Pontillo |
Bug Description
A user installed a maas and configured cluster zone name to be: 'cluster.mallards.'
that caused many issues, one such as shown in regiond.log like this:
2015-03-18 13:55:45 [maas.dns] INFO: Generating new DNS zone file for cluster.mallards.
2015-03-18 13:55:45 [maas.dns] ERROR: Reloading BIND zone u'cluster.
rndc: 'reload' failed: empty label
2015-03-18 13:55:45 [HTTPChannel,
2015-03-18 13:55:45 [HTTPChannel,
2015-03-18 13:55:45 [HTTPChannel,
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
return django_
File "/usr/lib/
--- <exception caught here> ---
File "/usr/lib/
File "/usr/lib/
2015-03-18 13:55:45 [-] 127.0.0.1 - - [18/Mar/
the api request that showed this would look like:
$ maas admin node delete node-761b65be-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
<html xmlns="http://
<head>
<title>Error: Internal server error</title>
</head>
<body>
<h2>
Internal server error.
</h2>
</body>
</html>
Related branches
- Blake Rouse (community): Approve
- Andres Rodriguez (community): Needs Information
-
Diff: 251 lines (+113/-17)5 files modifiedsrc/maasserver/api/tests/test_node.py (+1/-1)
src/maasserver/models/nodegroup.py (+27/-1)
src/maasserver/models/tests/test_nodegroup.py (+30/-0)
src/maasserver/utils/dns.py (+35/-15)
src/maasserver/utils/tests/test_dns.py (+20/-0)
summary: |
- maas cluster name with ending '.' breaks dns + maas cluster name should not / can not have trailing '.' |
Changed in maas: | |
assignee: | nobody → Ricardo Bánffy (rbanffy) |
Changed in maas: | |
assignee: | Ricardo Bánffy (rbanffy) → nobody |
assignee: | nobody → Mike Pontillo (mpontillo) |
Changed in maas: | |
milestone: | next → 1.8.0 |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
The actual error here is this:
2015-03-18 13:55:45 [maas.dns] ERROR: Reloading BIND zone u'cluster. mallards. ' failed: Command `rndc -c /etc/bind/ maas/rndc. conf.maas reload cluster.mallards.` returned non-zero exit status 1:
rndc: 'reload' failed: empty label
The other error bug is 1433625.