[xenial,1.10] Error when updating network interface

Bug #1524482 reported by Ricardo Bánffy
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Blake Rouse

Bug Description

On a Xenial/1.10 clean install (patched /usr/bin/twistd3 and with plugins in /usr/lib/python3/dist-packages/twisted/plugins), through the MAAS UI, I added DNS/DHCP information to a cluster interface. The machine has two interfaces, ens3 connected to the host network and ens9 connected to the MAAS internal network. Update returned a plain non-templated error page and generated a traceback in regiond.log

The log transcript is below:

==> /var/log/maas/regiond.log <==
2015-12-09 17:42:16 [HTTPChannel,7,127.0.0.1] 500 Error - /MAAS/clusters/0b733a83-2de4-4ac6-8d73-472ea60f54cc/interfa
ces/ens9/edit/
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/provisioningserver/twisted/web/wsgi.py", line 459, in run
            appIterator = self.application(self.environ, self.startResponse)
          File "/usr/lib/python3/dist-packages/django/core/handlers/wsgi.py", line 189, in __call__
            response = self.get_response(request)
          File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 227, in get_response
            response = get_response(request)
          File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 216, in get_response
            request, get_resolver(None), sys.exc_info())
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 201, in get_response
            return django_get_response(request)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 369, in __exit__
            self.fire()
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 197, in wrapper
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/async.py", line 195, in fire
            self._fire_in_reactor(hook).wait(LONGTIME)
          File "/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 231, in wait
            result.raiseException()
          File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 368, in raiseException
            raise self.value.with_traceback(self.tb)
        provisioningserver.twisted.protocols.amp.UnhandledCommand: (b'UNHANDLED', 'Unknown Error [xenial-maas-110-tes
t:pid=3731:cmd=ConfigureDHCPv4:ask=6]')

Tags: python3

Related branches

Revision history for this message
Ricardo Bánffy (rbanffy) wrote :
description: updated
Revision history for this message
Andres Rodriguez (andreserl) wrote :

might be related to not creating dhcpd.conf anymore.. as I don't see it being created.

tags: added: python3
Changed in maas:
assignee: nobody → Blake Rouse (blake-rouse)
milestone: none → next
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Revision history for this message
Ricardo Bánffy (rbanffy) wrote :

Still happening on 1.10.0~alpha1+bzr4545-0ubuntu1~xenial2. From http://paste.ubuntu.com/13891333/:

2015-12-10 09:40:55 [HTTPChannel,27,127.0.0.1] 500 Error - /MAAS/clusters/9fcabc2e-cdfa-4b89-a4b2-36bf1fa44bc5/interfaces/ens9/edit/
        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/provisioningserver/twisted/web/wsgi.py", line 459, in run
            appIterator = self.application(self.environ, self.startResponse)
          File "/usr/lib/python3/dist-packages/django/core/handlers/wsgi.py", line 189, in __call__
            response = self.get_response(request)
          File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 227, in get_response
            response = get_response(request)
          File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 216, in get_response
            request, get_resolver(None), sys.exc_info())
        --- <exception caught here> ---
          File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 201, in get_response
            return django_get_response(request)
          File "/usr/lib/python3/dist-packages/maasserver/utils/orm.py", line 369, in __exit__
            self.fire()
          File "/usr/lib/python3/dist-packages/provisioningserver/utils/twisted.py", line 197, in wrapper
            return func(*args, **kwargs)
          File "/usr/lib/python3/dist-packages/maasserver/utils/async.py", line 195, in fire
            self._fire_in_reactor(hook).wait(LONGTIME)
          File "/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 231, in wait
            result.raiseException()
          File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 368, in raiseException
            raise self.value.with_traceback(self.tb)
        provisioningserver.twisted.protocols.amp.UnhandledCommand: (b'UNHANDLED', 'Unknown Error [xenial-maas-110-test:pid=29678:cmd=ConfigureDHCPv4:ask=9b]')

I am testing with 1.10.0~alpha1+bzr4548-0ubuntu1~xenial1 now.

Revision history for this message
Blake Rouse (blake-rouse) wrote :

Check clusterd.log it should have the stack trace that is needed.

Revision history for this message
Ricardo Bánffy (rbanffy) wrote :

Did not happen with 1.10.0~alpha1+bzr4548-0ubuntu1~xenial1

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.