2015-04-02 01:49:56 |
Mike Pontillo |
description |
I saw the following exception when trying to set my boot image sync URL to a URL in the format:
http://host/maas/images/ephemeral-v2/releases/
Where 'host' was a valid hostname which would be resolved using the DNS search path (or hosts file).
When attempting to press "Save" on the settings screen, an internal server error was displayed, giving me no indication about what the problem was. The following exception was seen in the logs:
2015-04-01 18:35:58 [HTTPChannel,3,127.0.0.1] 500 Error - /MAAS/settings/
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 166, in get_response
response = get_response(request)
File "/usr/lib/python2.7/dist-packages/maasserver/utils/views.py", line 140, 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/django/contrib/auth/decorators.py", line 22, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/maasserver/views/settings.py", line 205, in settings
'boot_source', "Configuration updated.")
File "/usr/lib/python2.7/dist-packages/maasserver/views/__init__.py", line 219, in process_form
form.save()
File "/usr/lib/python2.7/dist-packages/maasserver/forms.py", line 1408, in save
boot_source.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: {'url': [u'Enter a valid URL.']} |
I saw the following exception when trying to set my boot image sync URL to a URL in the format:
http://host/maas/images/ephemeral-v2/releases/
Where 'host' was a valid hostname which would be resolved using the DNS search path (or hosts file).
When attempting to press "Save" on the settings screen, an internal server error was displayed, giving me no indication about what the problem was. The following exception was seen in the logs:
2015-04-01 18:35:58 [HTTPChannel,3,127.0.0.1] 500 Error - /MAAS/settings/
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 166, in get_response
response = get_response(request)
File "/usr/lib/python2.7/dist-packages/maasserver/utils/views.py", line 140, 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/django/contrib/auth/decorators.py", line 22, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/maasserver/views/settings.py", line 205, in settings
'boot_source', "Configuration updated.")
File "/usr/lib/python2.7/dist-packages/maasserver/views/__init__.py", line 219, in process_form
form.save()
File "/usr/lib/python2.7/dist-packages/maasserver/forms.py", line 1408, in save
boot_source.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: {'url': [u'Enter a valid URL.']} |
|