Internal server error saving the clusters interfaces

Bug #1446840 reported by Blake Rouse
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

On a fresh package installation of trunk on trusty, a internal server error is raised when saving the clusters interface.

Seems to be related to permissions and bind.

2015-04-21 16:09:20 [HTTPChannel,0,] 500 Error - /MAAS/clusters/cc3b1d99-6002-45bc-9132-320f66cf7c70/interfaces/eth0/edit/
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/twisted/web/", line 315, in run
     appIterator = self.application(self.environ, self.startResponse)
   File "/usr/lib/python2.7/dist-packages/django/core/handlers/", line 206, in __call__
     response = self.get_response(request)
   File "/usr/lib/python2.7/dist-packages/maasserver/utils/", line 213, in get_response
     response = get_response(request)
   File "/usr/lib/python2.7/dist-packages/maasserver/utils/", line 202, in get_response
     request, get_resolver(None), sys.exc_info())
 --- <exception caught here> ---
   File "/usr/lib/python2.7/dist-packages/maasserver/utils/", line 187, in get_response
     return django_get_response(request)
   File "/usr/lib/python2.7/dist-packages/maasserver/utils/", line 331, in __exit__
   File "/usr/lib/python2.7/dist-packages/provisioningserver/utils/", line 151, in wrapper
     return func(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/maasserver/utils/", line 180, in fire
   File "/usr/lib/python2.7/dist-packages/crochet/", line 219, in wait
   File "<string>", line 2, in raiseException

 exceptions.OSError: [Errno 1] Operation not permitted: '/etc/bind/maas/.named.conf.options.inside.maas.NfTF4f.tmp'

Related branches

Revision history for this message
Raphaël Badin (rvb) wrote :

This is apparently a regression caused by landing
CI has been failing since 3832. See for details.
I've tried reverting this change and running the CI: works.

Revision history for this message
Raphaël Badin (rvb) wrote :

Here are the permissions you get when installing a package:

ls -l /etc/bind/maas
total 16
-rw-r--r-- 1 maas root 234 Apr 22 12:11 named.conf.maas
-rw-r--r-- 1 maas root 85 Apr 22 12:11 named.conf.options.inside.maas
-rw-r----- 1 maas bind 257 Apr 22 12:11 named.conf.rndc.maas
-rw------- 1 maas root 539 Apr 22 12:11 rndc.conf.maas

I'm guessing that the fact that the group is 'root' for named.conf.options.inside.maas is the source of the problem we're seeing.

Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers