[1.9.1] trying to save an overlapping network in the cluster generates ugly 500

Bug #1576006 reported by David Britton
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Won't Fix
High
Unassigned

Bug Description

Plain text on the ui "internal server error" and I had to dig the error out of the log file:

2016-04-28 02:44:42 [HTTPChannel,1,127.0.0.1] 500 Error - /MAAS/clusters/a42ffe80-031a-4f5b-8ed2-dac71bbd26c0/interfaces/add/
        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 236, in get_response
            response = get_response(request)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/views.py", line 210, 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 112, in get_response
            response = wrapped_callback(request, *callback_args, **callback_kwargs)
          File "/usr/lib/python2.7/dist-packages/maasserver/utils/views.py", line 189, in view_atomic_with_post_commit_savepoint
            return view_atomic(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/db/transaction.py", line 339, in inner
            return func(*args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
            return view_func(request, *args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
            return self.dispatch(request, *args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
            return handler(request, *args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 205, in post
            return super(BaseCreateView, self).post(request, *args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 171, in post
            return self.form_valid(form)
          File "/usr/lib/python2.7/dist-packages/maasserver/views/clusters.py", line 178, in form_valid
            self.object = form.save()
          File "/usr/lib/python2.7/dist-packages/maasserver/forms.py", line 1723, in save
            interface.save()
          File "/usr/lib/python2.7/dist-packages/maasserver/models/cleansave.py", line 37, in save
            self.full_clean()
          File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 950, in full_clean
            raise ValidationError(errors)
        django.core.exceptions.ValidationError: {u'ip': [u"This interface's network must not overlap with other networks on this cluster."], u'subnet_mask': [u"This interface's network must not overlap with other networks on this cluster."]}

Tags: landscape
David Britton (dpb)
tags: added: landscape
Changed in maas:
milestone: none → 1.9.3
importance: Undecided → High
status: New → Triaged
summary: - 1.9.1: trying to save an overlapping network in the cluster generates
+ [1.9.1] trying to save an overlapping network in the cluster generates
ugly 500
Changed in maas:
milestone: 1.9.3 → 1.9.4
Changed in maas:
milestone: 1.9.4 → 1.9.5
Revision history for this message
Andres Rodriguez (andreserl) wrote :

We believe that this is not longer an issue in the latest releases of MAAS. If you believe this is still an issue, please re-open this bug report and target it accordingly.

Changed in maas:
status: Triaged → Won't Fix
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.