'APIErrorsMiddleware' object has no attribute 'RETRY_AFTER_SERVICE_UNAVAILABLE'

Bug #1433625 reported by Blake Rouse
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Raphaël Badin

Bug Description

This error was raised from bug 1433622. Needs to be fixed and have a test added to make sure it doesn't happen again.

015-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.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
2015-03-18 13:55:45 [HTTPChannel,0,127.0.0.1] /usr/lib/python2.7/dist-packages/django/http/response.py:330: exceptions.DeprecationWarning: Using mimetype keyword argument is deprecated, use content_type instead
2015-03-18 13:55:45 [HTTPChannel,0,127.0.0.1] No handlers could be found for logger "django.request"
2015-03-18 13:55:45 [HTTPChannel,0,127.0.0.1] 500 Error - /MAAS/api/1.0/nodes/node-761b65be-cd69-11e4-ae5d-001b21006d7f/
        Traceback (most recent call last):
          File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 206, in __call__
            response = self.get_response(request)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/views.py", line 124, in get_response
            response = get_response(request)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/views.py", line 105, in get_response
            return django_get_response(request)
          File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 194, in get_response
            response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
        --- <exception caught here> ---
          File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 118, in get_response
            response = middleware_method(request, e)
          File "/usr/lib/python2.7/dist-packages/maasserver/middleware.py", line 240, in process_exception
            self.RETRY_AFTER_SERVICE_UNAVAILABLE)
        exceptions.AttributeError: 'APIErrorsMiddleware' object has no attribute 'RETRY_AFTER_SERVICE_UNAVAILABLE'

Related branches

Changed in maas:
milestone: none → next
Changed in maas:
milestone: next → 1.8.0
Raphaël Badin (rvb)
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Raphaël Badin (rvb)
Raphaël Badin (rvb)
Changed in maas:
status: In Progress → Fix Committed
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.

Other bug subscribers

Remote bug watches

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